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;
|
2021-07-05 11:32:02 -04:00
|
|
|
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;
|
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
|
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
|
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;
|
2020-07-09 13:44:24 -04:00
|
|
|
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
|
2020-07-19 10:06:04 -04:00
|
|
|
COMMENT @return {@code null} if no structure could be found within the given search radius
|
2021-11-22 10:31:34 -05:00
|
|
|
ARG 1 world
|
2020-08-12 03:20:28 -04:00
|
|
|
ARG 2 structureAccessor
|
2020-07-09 13:44:24 -04:00
|
|
|
ARG 3 searchStartPos
|
|
|
|
ARG 4 searchRadius
|
2021-04-13 07:59:43 -04:00
|
|
|
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
|
2020-07-09 13:44:24 -04:00
|
|
|
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;
|
2020-07-09 13:44:24 -04:00
|
|
|
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.
|
2021-11-15 20:31:21 -05:00
|
|
|
COMMENT
|
|
|
|
COMMENT <p>If the {@link StructureConfig} uses a separation setting greater than 0, the
|
2020-07-09 13:44:24 -04:00
|
|
|
COMMENT placement will be constrained to [0, spacing - separation] within the grid cell.
|
2020-11-20 12:31:04 -05:00
|
|
|
COMMENT If a non-uniform distribution is used for placement, then this also moves
|
|
|
|
COMMENT the center towards the origin.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #isUniformDistribution()
|
2020-07-09 13:44:24 -04:00
|
|
|
ARG 1 config
|
2021-11-15 20:31:21 -05:00
|
|
|
ARG 2 seed
|
|
|
|
ARG 4 x
|
|
|
|
ARG 5 z
|
2020-07-09 13:44:24 -04:00
|
|
|
METHOD method_27219 isUniformDistribution ()Z
|
2020-08-13 13:12:27 -04:00
|
|
|
COMMENT If true, this structure's start position will be uniformly distributed within
|
2020-07-09 13:44:24 -04:00
|
|
|
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;
|
2020-07-09 13:44:24 -04:00
|
|
|
COMMENT Tries to place a starting point for this type of structure in the given chunk.
|
|
|
|
COMMENT <p>
|
2020-11-20 12:31:04 -05:00
|
|
|
COMMENT If this structure doesn't have a starting point in the chunk, {@link StructureStart#DEFAULT}
|
2020-07-09 13:44:24 -04:00
|
|
|
COMMENT will be returned.
|
2021-11-15 20:31:21 -05:00
|
|
|
ARG 1 registryManager
|
|
|
|
ARG 2 chunkGenerator
|
2021-03-23 13:59:22 -04:00
|
|
|
ARG 3 biomeSource
|
2021-11-15 20:31:21 -05:00
|
|
|
ARG 4 structureManager
|
2020-07-09 13:44:24 -04:00
|
|
|
ARG 5 worldSeed
|
2021-03-23 13:59:22 -04:00
|
|
|
ARG 7 pos
|
2021-11-15 20:31:21 -05:00
|
|
|
ARG 8 structureReferences
|
|
|
|
ARG 9 structureConfig
|
|
|
|
ARG 10 config
|
|
|
|
ARG 11 world
|
2021-11-22 10:31:34 -05:00
|
|
|
ARG 12 biomePredicate
|
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;
|
2021-11-15 20:31:21 -05:00
|
|
|
ARG 0 context
|
2021-04-02 17:03:30 -04:00
|
|
|
ARG 1 nbt
|
2020-07-09 13:44:24 -04:00
|
|
|
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
|
2020-07-09 13:44:24 -04:00
|
|
|
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.
|
2021-03-23 13:59:22 -04:00
|
|
|
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;
|
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;
|
2021-11-22 11:08:36 -05:00
|
|
|
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
|
2021-11-22 10:31:34 -05:00
|
|
|
ARG 1 registryManager
|
|
|
|
ARG 2 chunkGenerator
|
|
|
|
ARG 3 biomeSource
|
|
|
|
ARG 4 structureManager
|
|
|
|
ARG 5 worldSeed
|
|
|
|
ARG 7 pos
|
|
|
|
ARG 8 config
|
2021-11-22 11:08:36 -05:00
|
|
|
ARG 9 world
|
2021-11-22 10:31:34 -05:00
|
|
|
ARG 10 biomePredicate
|