yarn/mappings/net/minecraft/world/gen/feature/StructureFeature.mapping

93 lines
4.8 KiB
Plaintext
Raw Normal View History

2019-06-28 17:55:20 -04:00
CLASS net/minecraft/class_3195 net/minecraft/world/gen/feature/StructureFeature
FIELD field_13879 LOGGER Lorg/apache/logging/log4j/Logger;
2020-05-25 06:46:53 -04:00
FIELD field_24842 STRUCTURES Lcom/google/common/collect/BiMap;
2021-09-23 12:35:53 -04:00
FIELD field_24851 SWAMP_HUT Lnet/minecraft/class_3195;
FIELD field_24861 LAND_MODIFYING_STRUCTURES Ljava/util/List;
2020-05-25 06:46:53 -04:00
FIELD field_24862 STRUCTURE_TO_GENERATION_STEP Ljava/util/Map;
2020-07-08 13:36:16 -04:00
FIELD field_24863 codec Lcom/mojang/serialization/Codec;
2021-11-17 11:49:31 -05:00
FIELD field_34929 piecesGenerator Lnet/minecraft/class_6834;
Structure stuff, based on liach's PR (#2829) * Structure stuff Signed-off-by: liach <liach@users.noreply.github.com> * This is post placement, not generation (addition of pieces) * docs * Update mappings/net/minecraft/structure/StructurePlacementData.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Update mappings/net/minecraft/structure/PostPlacementProcessor.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Merge branch '1.18-pre1' of https://github.com/FabricMC/yarn into pr-2729-structure * Drop invalid mappings * Re-add dropped mappings * PostPlacementProcessor: map lambda arg, rename args * Structure: bring mapping from my branch * StructurePiecesGenerator: follow convention of naming every World superinterface `world` * StructurePoolBasedGenerator: follow naming conventions * ChunkGenerator: follow naming conventions * ConfiguredStructureFeature: follow naming conventions * EndCityFeature: follow naming conventions * StructureFeature: fix naming, follow naming conventions * WoodlandMansionFeature: follow naming conventions * StructureFeature: remove invalid javadoc * Apply suggestions from code review Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> Co-authored-by: liach <liach@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>
2021-11-15 20:31:21 -05:00
FIELD field_34930 postProcessor Lnet/minecraft/class_6621;
2021-11-17 11:49:31 -05:00
METHOD <init> (Lcom/mojang/serialization/Codec;Lnet/minecraft/class_6834;)V
Structure stuff, based on liach's PR (#2829) * Structure stuff Signed-off-by: liach <liach@users.noreply.github.com> * This is post placement, not generation (addition of pieces) * docs * Update mappings/net/minecraft/structure/StructurePlacementData.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Update mappings/net/minecraft/structure/PostPlacementProcessor.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Merge branch '1.18-pre1' of https://github.com/FabricMC/yarn into pr-2729-structure * Drop invalid mappings * Re-add dropped mappings * PostPlacementProcessor: map lambda arg, rename args * Structure: bring mapping from my branch * StructurePiecesGenerator: follow convention of naming every World superinterface `world` * StructurePoolBasedGenerator: follow naming conventions * ChunkGenerator: follow naming conventions * ConfiguredStructureFeature: follow naming conventions * EndCityFeature: follow naming conventions * StructureFeature: fix naming, follow naming conventions * WoodlandMansionFeature: follow naming conventions * StructureFeature: remove invalid javadoc * Apply suggestions from code review Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> Co-authored-by: liach <liach@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>
2021-11-15 20:31:21 -05:00
ARG 1 configCodec
ARG 2 piecesGenerator
2021-11-17 11:49:31 -05:00
METHOD <init> (Lcom/mojang/serialization/Codec;Lnet/minecraft/class_6834;Lnet/minecraft/class_6621;)V
Structure stuff, based on liach's PR (#2829) * Structure stuff Signed-off-by: liach <liach@users.noreply.github.com> * This is post placement, not generation (addition of pieces) * docs * Update mappings/net/minecraft/structure/StructurePlacementData.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Update mappings/net/minecraft/structure/PostPlacementProcessor.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Merge branch '1.18-pre1' of https://github.com/FabricMC/yarn into pr-2729-structure * Drop invalid mappings * Re-add dropped mappings * PostPlacementProcessor: map lambda arg, rename args * Structure: bring mapping from my branch * StructurePiecesGenerator: follow convention of naming every World superinterface `world` * StructurePoolBasedGenerator: follow naming conventions * ChunkGenerator: follow naming conventions * ConfiguredStructureFeature: follow naming conventions * EndCityFeature: follow naming conventions * StructureFeature: fix naming, follow naming conventions * WoodlandMansionFeature: follow naming conventions * StructureFeature: remove invalid javadoc * Apply suggestions from code review Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> Co-authored-by: liach <liach@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>
2021-11-15 20:31:21 -05:00
ARG 1 configCodec
ARG 2 piecesGenerator
ARG 3 postPlacementProcessor
2020-05-20 12:12:58 -04:00
METHOD method_14015 locateStructure (Lnet/minecraft/class_4538;Lnet/minecraft/class_5138;Lnet/minecraft/class_2338;IZJLnet/minecraft/class_5314;)Lnet/minecraft/class_2338;
COMMENT Tries to find the closest structure of this type near a given block.
COMMENT <p>
COMMENT This method relies on the given world generation settings (seed and placement configuration)
COMMENT to match the time at which the structure was generated, otherwise it will not be found.
COMMENT <p>
COMMENT New chunks will only be generated up to the {@link net.minecraft.world.chunk.ChunkStatus#STRUCTURE_STARTS} phase by this method.
COMMENT
COMMENT @return {@code null} if no structure could be found within the given search radius
ARG 2 structureAccessor
ARG 3 searchStartPos
ARG 4 searchRadius
COMMENT the search radius in chunks around the chunk the given block position is in; a radius of 0 will only search in the given chunk
2019-01-30 05:53:59 -05:00
ARG 5 skipExistingChunks
ARG 6 worldSeed
ARG 8 config
2019-06-28 17:55:20 -04:00
METHOD method_14019 getName ()Ljava/lang/String;
2021-11-11 13:05:24 -05:00
METHOD method_27218 getStartChunk (Lnet/minecraft/class_5314;JII)Lnet/minecraft/class_1923;
COMMENT Determines the cell of the structure placement grid a chunk belongs to, and
COMMENT returns the chunk within that cell, that this structure will actually be placed at.
Structure stuff, based on liach's PR (#2829) * Structure stuff Signed-off-by: liach <liach@users.noreply.github.com> * This is post placement, not generation (addition of pieces) * docs * Update mappings/net/minecraft/structure/StructurePlacementData.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Update mappings/net/minecraft/structure/PostPlacementProcessor.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Merge branch '1.18-pre1' of https://github.com/FabricMC/yarn into pr-2729-structure * Drop invalid mappings * Re-add dropped mappings * PostPlacementProcessor: map lambda arg, rename args * Structure: bring mapping from my branch * StructurePiecesGenerator: follow convention of naming every World superinterface `world` * StructurePoolBasedGenerator: follow naming conventions * ChunkGenerator: follow naming conventions * ConfiguredStructureFeature: follow naming conventions * EndCityFeature: follow naming conventions * StructureFeature: fix naming, follow naming conventions * WoodlandMansionFeature: follow naming conventions * StructureFeature: remove invalid javadoc * Apply suggestions from code review Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> Co-authored-by: liach <liach@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>
2021-11-15 20:31:21 -05:00
COMMENT
COMMENT <p>If the {@link StructureConfig} uses a separation setting greater than 0, the
COMMENT placement will be constrained to [0, spacing - separation] within the grid cell.
COMMENT If a non-uniform distribution is used for placement, then this also moves
COMMENT the center towards the origin.
COMMENT
COMMENT @see #isUniformDistribution()
ARG 1 config
Structure stuff, based on liach's PR (#2829) * Structure stuff Signed-off-by: liach <liach@users.noreply.github.com> * This is post placement, not generation (addition of pieces) * docs * Update mappings/net/minecraft/structure/StructurePlacementData.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Update mappings/net/minecraft/structure/PostPlacementProcessor.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Merge branch '1.18-pre1' of https://github.com/FabricMC/yarn into pr-2729-structure * Drop invalid mappings * Re-add dropped mappings * PostPlacementProcessor: map lambda arg, rename args * Structure: bring mapping from my branch * StructurePiecesGenerator: follow convention of naming every World superinterface `world` * StructurePoolBasedGenerator: follow naming conventions * ChunkGenerator: follow naming conventions * ConfiguredStructureFeature: follow naming conventions * EndCityFeature: follow naming conventions * StructureFeature: fix naming, follow naming conventions * WoodlandMansionFeature: follow naming conventions * StructureFeature: remove invalid javadoc * Apply suggestions from code review Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> Co-authored-by: liach <liach@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>
2021-11-15 20:31:21 -05:00
ARG 2 seed
ARG 4 x
ARG 5 z
METHOD method_27219 isUniformDistribution ()Z
COMMENT If true, this structure's start position will be uniformly distributed within
COMMENT a placement grid cell. If false, the structure's starting point will be biased
COMMENT towards the center of the cell.
2021-11-11 13:05:24 -05:00
METHOD method_28657 tryPlaceStart (Lnet/minecraft/class_5455;Lnet/minecraft/class_2794;Lnet/minecraft/class_1966;Lnet/minecraft/class_3485;JLnet/minecraft/class_1923;ILnet/minecraft/class_5314;Lnet/minecraft/class_3037;Lnet/minecraft/class_5539;Ljava/util/function/Predicate;)Lnet/minecraft/class_3449;
COMMENT Tries to place a starting point for this type of structure in the given chunk.
COMMENT <p>
COMMENT If this structure doesn't have a starting point in the chunk, {@link StructureStart#DEFAULT}
COMMENT will be returned.
Structure stuff, based on liach's PR (#2829) * Structure stuff Signed-off-by: liach <liach@users.noreply.github.com> * This is post placement, not generation (addition of pieces) * docs * Update mappings/net/minecraft/structure/StructurePlacementData.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Update mappings/net/minecraft/structure/PostPlacementProcessor.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Merge branch '1.18-pre1' of https://github.com/FabricMC/yarn into pr-2729-structure * Drop invalid mappings * Re-add dropped mappings * PostPlacementProcessor: map lambda arg, rename args * Structure: bring mapping from my branch * StructurePiecesGenerator: follow convention of naming every World superinterface `world` * StructurePoolBasedGenerator: follow naming conventions * ChunkGenerator: follow naming conventions * ConfiguredStructureFeature: follow naming conventions * EndCityFeature: follow naming conventions * StructureFeature: fix naming, follow naming conventions * WoodlandMansionFeature: follow naming conventions * StructureFeature: remove invalid javadoc * Apply suggestions from code review Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> Co-authored-by: liach <liach@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>
2021-11-15 20:31:21 -05:00
ARG 1 registryManager
ARG 2 chunkGenerator
ARG 3 biomeSource
Structure stuff, based on liach's PR (#2829) * Structure stuff Signed-off-by: liach <liach@users.noreply.github.com> * This is post placement, not generation (addition of pieces) * docs * Update mappings/net/minecraft/structure/StructurePlacementData.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Update mappings/net/minecraft/structure/PostPlacementProcessor.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Merge branch '1.18-pre1' of https://github.com/FabricMC/yarn into pr-2729-structure * Drop invalid mappings * Re-add dropped mappings * PostPlacementProcessor: map lambda arg, rename args * Structure: bring mapping from my branch * StructurePiecesGenerator: follow convention of naming every World superinterface `world` * StructurePoolBasedGenerator: follow naming conventions * ChunkGenerator: follow naming conventions * ConfiguredStructureFeature: follow naming conventions * EndCityFeature: follow naming conventions * StructureFeature: fix naming, follow naming conventions * WoodlandMansionFeature: follow naming conventions * StructureFeature: remove invalid javadoc * Apply suggestions from code review Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> Co-authored-by: liach <liach@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>
2021-11-15 20:31:21 -05:00
ARG 4 structureManager
ARG 5 worldSeed
ARG 7 pos
Structure stuff, based on liach's PR (#2829) * Structure stuff Signed-off-by: liach <liach@users.noreply.github.com> * This is post placement, not generation (addition of pieces) * docs * Update mappings/net/minecraft/structure/StructurePlacementData.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Update mappings/net/minecraft/structure/PostPlacementProcessor.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Merge branch '1.18-pre1' of https://github.com/FabricMC/yarn into pr-2729-structure * Drop invalid mappings * Re-add dropped mappings * PostPlacementProcessor: map lambda arg, rename args * Structure: bring mapping from my branch * StructurePiecesGenerator: follow convention of naming every World superinterface `world` * StructurePoolBasedGenerator: follow naming conventions * ChunkGenerator: follow naming conventions * ConfiguredStructureFeature: follow naming conventions * EndCityFeature: follow naming conventions * StructureFeature: fix naming, follow naming conventions * WoodlandMansionFeature: follow naming conventions * StructureFeature: remove invalid javadoc * Apply suggestions from code review Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> Co-authored-by: liach <liach@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>
2021-11-15 20:31:21 -05:00
ARG 8 structureReferences
ARG 9 structureConfig
ARG 10 config
ARG 11 world
ARG 12 biomeLimit
2020-05-25 06:46:53 -04:00
METHOD method_28659 configure (Lnet/minecraft/class_3037;)Lnet/minecraft/class_5312;
ARG 1 config
2021-09-23 12:35:53 -04:00
METHOD method_28660 readStructureStart (Lnet/minecraft/class_6625;Lnet/minecraft/class_2487;J)Lnet/minecraft/class_3449;
Structure stuff, based on liach's PR (#2829) * Structure stuff Signed-off-by: liach <liach@users.noreply.github.com> * This is post placement, not generation (addition of pieces) * docs * Update mappings/net/minecraft/structure/StructurePlacementData.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Update mappings/net/minecraft/structure/PostPlacementProcessor.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Merge branch '1.18-pre1' of https://github.com/FabricMC/yarn into pr-2729-structure * Drop invalid mappings * Re-add dropped mappings * PostPlacementProcessor: map lambda arg, rename args * Structure: bring mapping from my branch * StructurePiecesGenerator: follow convention of naming every World superinterface `world` * StructurePoolBasedGenerator: follow naming conventions * ChunkGenerator: follow naming conventions * ConfiguredStructureFeature: follow naming conventions * EndCityFeature: follow naming conventions * StructureFeature: fix naming, follow naming conventions * WoodlandMansionFeature: follow naming conventions * StructureFeature: remove invalid javadoc * Apply suggestions from code review Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> Co-authored-by: liach <liach@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>
2021-11-15 20:31:21 -05:00
ARG 0 context
ARG 1 nbt
ARG 2 worldSeed
2020-05-25 06:46:53 -04:00
METHOD method_28661 register (Ljava/lang/String;Lnet/minecraft/class_3195;Lnet/minecraft/class_2893$class_2895;)Lnet/minecraft/class_3195;
ARG 0 name
ARG 1 structureFeature
ARG 2 step
METHOD method_28663 getGenerationStep ()Lnet/minecraft/class_2893$class_2895;
COMMENT Gets the step during which this structure will participate in world generation.
COMMENT Structures will generate before other features in the same generation step.
METHOD method_28664 init ()V
2020-07-08 13:36:16 -04:00
METHOD method_28665 getCodec ()Lcom/mojang/serialization/Codec;
2021-09-23 12:35:53 -04:00
METHOD method_36217 calculateBoundingBox (Lnet/minecraft/class_3341;)Lnet/minecraft/class_3341;
Structure stuff, based on liach's PR (#2829) * Structure stuff Signed-off-by: liach <liach@users.noreply.github.com> * This is post placement, not generation (addition of pieces) * docs * Update mappings/net/minecraft/structure/StructurePlacementData.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Update mappings/net/minecraft/structure/PostPlacementProcessor.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Merge branch '1.18-pre1' of https://github.com/FabricMC/yarn into pr-2729-structure * Drop invalid mappings * Re-add dropped mappings * PostPlacementProcessor: map lambda arg, rename args * Structure: bring mapping from my branch * StructurePiecesGenerator: follow convention of naming every World superinterface `world` * StructurePoolBasedGenerator: follow naming conventions * ChunkGenerator: follow naming conventions * ConfiguredStructureFeature: follow naming conventions * EndCityFeature: follow naming conventions * StructureFeature: fix naming, follow naming conventions * WoodlandMansionFeature: follow naming conventions * StructureFeature: remove invalid javadoc * Apply suggestions from code review Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> Co-authored-by: liach <liach@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>
2021-11-15 20:31:21 -05:00
ARG 1 box
METHOD method_38671 getLocatedPos (Lnet/minecraft/class_1923;)Lnet/minecraft/class_2338;
COMMENT {@return a block position for feature location}
ARG 1 chunkPos
METHOD method_38688 (Lnet/minecraft/class_5312;)Lnet/minecraft/class_3037;
ARG 0 configuredFeature
METHOD method_38689 (Lnet/minecraft/class_3037;)Lnet/minecraft/class_5312;
ARG 1 config
METHOD method_38690 getPostProcessor ()Lnet/minecraft/class_6621;