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

99 lines
5.2 KiB
Plaintext

CLASS net/minecraft/class_3195 net/minecraft/world/gen/feature/StructureFeature
FIELD field_13879 LOGGER Lorg/apache/logging/log4j/Logger;
FIELD field_24842 STRUCTURES Lcom/google/common/collect/BiMap;
FIELD field_24851 SWAMP_HUT Lnet/minecraft/class_3197;
FIELD field_24861 JIGSAW_STRUCTURES Ljava/util/List;
FIELD field_24862 STRUCTURE_TO_GENERATION_STEP Ljava/util/Map;
FIELD field_24863 codec Lcom/mojang/serialization/Codec;
FIELD field_26362 JIGSAW_ID Lnet/minecraft/class_2960;
METHOD <init> (Lcom/mojang/serialization/Codec;)V
ARG 1 codec
METHOD method_13149 getMonsterSpawns ()Lnet/minecraft/class_6012;
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_14016 getStructureStartFactory ()Lnet/minecraft/class_3195$class_3774;
METHOD method_14019 getName ()Ljava/lang/String;
METHOD method_14026 shouldStartAt (Lnet/minecraft/class_2794;Lnet/minecraft/class_1966;JLnet/minecraft/class_2919;Lnet/minecraft/class_1923;Lnet/minecraft/class_1959;Lnet/minecraft/class_1923;Lnet/minecraft/class_3037;Lnet/minecraft/class_5539;)Z
COMMENT Checks if this structure can <em>actually</em> be placed at a potential structure position determined via
COMMENT {@link #getStartChunk}. Specific structures override this method to reduce the spawn probability or
COMMENT restrict the spawn in some other way.
ARG 1 chunkGenerator
ARG 2 biomeSource
ARG 3 worldSeed
ARG 5 random
ARG 6 pos
ARG 9 config
ARG 10 world
METHOD method_16140 getCreatureSpawns ()Lnet/minecraft/class_6012;
METHOD method_27218 getStartChunk (Lnet/minecraft/class_5314;JLnet/minecraft/class_2919;II)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 <p>
COMMENT 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 worldSeed
ARG 4 placementRandom
ARG 5 chunkX
ARG 6 chunkY
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_28656 createStart (Lnet/minecraft/class_1923;IJ)Lnet/minecraft/class_3449;
ARG 1 pos
METHOD method_28657 tryPlaceStart (Lnet/minecraft/class_5455;Lnet/minecraft/class_2794;Lnet/minecraft/class_1966;Lnet/minecraft/class_3485;JLnet/minecraft/class_1923;Lnet/minecraft/class_1959;ILnet/minecraft/class_2919;Lnet/minecraft/class_5314;Lnet/minecraft/class_3037;Lnet/minecraft/class_5539;)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 2 generator
ARG 3 biomeSource
ARG 4 manager
ARG 5 worldSeed
ARG 7 pos
ARG 8 biome
ARG 9 referenceCount
ARG 10 random
ARG 11 structureConfig
ARG 12 config
ARG 13 world
METHOD method_28659 configure (Lnet/minecraft/class_3037;)Lnet/minecraft/class_5312;
ARG 1 config
METHOD method_28660 readStructureStart (Lnet/minecraft/class_3218;Lnet/minecraft/class_2487;J)Lnet/minecraft/class_3449;
ARG 0 world
ARG 1 tag
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;
CLASS class_3774 StructureStartFactory
METHOD create (Lnet/minecraft/class_3195;Lnet/minecraft/class_1923;IJ)Lnet/minecraft/class_3449;
ARG 1 feature
ARG 2 pos