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

104 lines
5.3 KiB
Plaintext

CLASS net/minecraft/class_3195 net/minecraft/world/gen/feature/StructureFeature
FIELD field_13879 LOGGER Lorg/slf4j/Logger;
FIELD field_24842 STRUCTURES Lcom/google/common/collect/BiMap;
FIELD field_24851 SWAMP_HUT Lnet/minecraft/class_3195;
FIELD field_24861 LAND_MODIFYING_STRUCTURES Ljava/util/List;
FIELD field_24862 STRUCTURE_TO_GENERATION_STEP Ljava/util/Map;
FIELD field_24863 codec Lcom/mojang/serialization/Codec;
FIELD field_34929 piecesGenerator Lnet/minecraft/class_6834;
FIELD field_34930 postProcessor Lnet/minecraft/class_6621;
METHOD <init> (Lcom/mojang/serialization/Codec;Lnet/minecraft/class_6834;)V
ARG 1 configCodec
ARG 2 piecesGenerator
METHOD <init> (Lcom/mojang/serialization/Codec;Lnet/minecraft/class_6834;Lnet/minecraft/class_6621;)V
ARG 1 configCodec
ARG 2 piecesGenerator
ARG 3 postPlacementProcessor
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 1 world
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
ARG 5 skipExistingChunks
ARG 6 worldSeed
ARG 8 config
METHOD method_14019 getName ()Ljava/lang/String;
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.
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
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.
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.
ARG 1 registryManager
ARG 2 chunkGenerator
ARG 3 biomeSource
ARG 4 structureManager
ARG 5 worldSeed
ARG 7 pos
ARG 8 structureReferences
ARG 9 structureConfig
ARG 10 config
ARG 11 world
ARG 12 biomePredicate
METHOD method_28659 configure (Lnet/minecraft/class_3037;)Lnet/minecraft/class_5312;
ARG 1 config
METHOD method_28660 readStructureStart (Lnet/minecraft/class_6625;Lnet/minecraft/class_2487;J)Lnet/minecraft/class_3449;
ARG 0 context
ARG 1 nbt
ARG 2 worldSeed
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
METHOD method_28665 getCodec ()Lcom/mojang/serialization/Codec;
METHOD method_36217 calculateBoundingBox (Lnet/minecraft/class_3341;)Lnet/minecraft/class_3341;
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;
METHOD method_39821 canGenerate (Lnet/minecraft/class_5455;Lnet/minecraft/class_2794;Lnet/minecraft/class_1966;Lnet/minecraft/class_3485;JLnet/minecraft/class_1923;Lnet/minecraft/class_3037;Lnet/minecraft/class_5539;Ljava/util/function/Predicate;)Z
ARG 1 registryManager
ARG 2 chunkGenerator
ARG 3 biomeSource
ARG 4 structureManager
ARG 5 worldSeed
ARG 7 pos
ARG 8 config
ARG 9 world
ARG 10 biomePredicate