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;
|
2020-06-04 11:50:13 -04:00
|
|
|
FIELD field_24851 SWAMP_HUT Lnet/minecraft/class_3197;
|
2020-08-12 03:20:28 -04:00
|
|
|
FIELD field_24861 JIGSAW_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;
|
2020-08-12 03:20:28 -04:00
|
|
|
FIELD field_26362 JIGSAW_ID Lnet/minecraft/class_2960;
|
|
|
|
METHOD <init> (Lcom/mojang/serialization/Codec;)V
|
|
|
|
ARG 1 codec
|
2020-05-20 12:12:58 -04:00
|
|
|
METHOD method_13149 getMonsterSpawns ()Ljava/util/List;
|
|
|
|
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
|
2020-08-12 03:20:28 -04:00
|
|
|
ARG 1 world
|
|
|
|
ARG 2 structureAccessor
|
2020-07-09 13:44:24 -04:00
|
|
|
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
|
2020-07-09 13:44:24 -04:00
|
|
|
ARG 6 worldSeed
|
|
|
|
ARG 8 config
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_14016 getStructureStartFactory ()Lnet/minecraft/class_3195$class_3774;
|
|
|
|
METHOD method_14019 getName ()Ljava/lang/String;
|
2020-05-20 12:12:58 -04:00
|
|
|
METHOD method_14026 shouldStartAt (Lnet/minecraft/class_2794;Lnet/minecraft/class_1966;JLnet/minecraft/class_2919;IILnet/minecraft/class_1959;Lnet/minecraft/class_1923;Lnet/minecraft/class_3037;)Z
|
2020-07-09 13:44:24 -04:00
|
|
|
COMMENT Checks if this structure can <em>actually</em> be placed at a potential structure position determined via
|
2020-07-19 10:06:04 -04:00
|
|
|
COMMENT {@link #getStartChunk}. Specific structures override this method to reduce the spawn probability or
|
2020-07-09 13:44:24 -04:00
|
|
|
COMMENT restrict the spawn in some other way.
|
2020-10-02 14:36:19 -04:00
|
|
|
ARG 1 chunkGenerator
|
|
|
|
ARG 2 biomeSource
|
2020-07-09 13:44:24 -04:00
|
|
|
ARG 3 worldSeed
|
2020-10-02 14:36:19 -04:00
|
|
|
ARG 5 random
|
2020-07-09 13:44:24 -04:00
|
|
|
ARG 6 chunkX
|
|
|
|
ARG 7 chunkZ
|
2020-10-02 14:36:19 -04:00
|
|
|
ARG 8 biome
|
2020-07-09 13:44:24 -04:00
|
|
|
ARG 9 chunkPos
|
2020-10-02 14:36:19 -04:00
|
|
|
ARG 10 config
|
2020-05-20 12:12:58 -04:00
|
|
|
METHOD method_16140 getCreatureSpawns ()Ljava/util/List;
|
2020-07-09 13:44:24 -04:00
|
|
|
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 {@see #isUniformDistribution()},
|
|
|
|
COMMENT then this also moves the center towards the origin.
|
|
|
|
ARG 1 config
|
|
|
|
ARG 2 worldSeed
|
|
|
|
ARG 4 placementRandom
|
|
|
|
ARG 5 chunkX
|
|
|
|
ARG 6 chunkY
|
|
|
|
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.
|
|
|
|
METHOD method_28656 createStart (IILnet/minecraft/class_3341;IJ)Lnet/minecraft/class_3449;
|
|
|
|
ARG 1 chunkX
|
|
|
|
ARG 2 chunkZ
|
|
|
|
ARG 3 boundingBox
|
|
|
|
ARG 4 referenceCount
|
|
|
|
ARG 5 worldSeed
|
|
|
|
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_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 5 worldSeed
|
|
|
|
ARG 9 referenceCount
|
2020-05-25 06:46:53 -04:00
|
|
|
METHOD method_28659 configure (Lnet/minecraft/class_3037;)Lnet/minecraft/class_5312;
|
|
|
|
ARG 1 config
|
2020-07-09 13:44:24 -04:00
|
|
|
METHOD method_28660 readStructureStart (Lnet/minecraft/class_3485;Lnet/minecraft/class_2487;J)Lnet/minecraft/class_3449;
|
2020-08-12 03:20:28 -04:00
|
|
|
ARG 0 manager
|
2020-07-09 13:44:24 -04:00
|
|
|
ARG 1 tag
|
|
|
|
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.
|
2020-07-08 13:36:16 -04:00
|
|
|
METHOD method_28665 getCodec ()Lcom/mojang/serialization/Codec;
|
2019-12-02 08:55:18 -05:00
|
|
|
CLASS class_3774 StructureStartFactory
|
|
|
|
METHOD create (Lnet/minecraft/class_3195;IILnet/minecraft/class_3341;IJ)Lnet/minecraft/class_3449;
|
|
|
|
ARG 1 feature
|
2020-07-09 13:44:24 -04:00
|
|
|
ARG 2 chunkX
|
|
|
|
ARG 3 chunkZ
|
2020-03-10 12:34:02 -04:00
|
|
|
ARG 4 box
|
2020-07-09 13:44:24 -04:00
|
|
|
ARG 5 referenceCount
|
|
|
|
ARG 6 worldSeed
|