Package net.minecraft.structure
Class StructureStart<C extends FeatureConfig>
java.lang.Object
net.minecraft.structure.StructureStart<C>
- Direct Known Subclasses:
BuriedTreasureFeature.Start,DesertPyramidFeature.Start,EndCityFeature.Start,IglooFeature.Start,JungleTempleFeature.Start,MarginedStructureStart,MineshaftFeature.Start,NetherFortressFeature.Start,OceanMonumentFeature.Start,OceanRuinFeature.Start,RuinedPortalFeature.Start,ShipwreckFeature.Start,StrongholdFeature.Start,SwampHutFeature.Start,WoodlandMansionFeature.Start
public abstract class StructureStart<C extends FeatureConfig> extends Object
A structure start is created to describe a structure that will be generated by
chunk generation. It contains a definition of its pieces and is associated
with the chunk that the structure originates from.
- Mappings:
Namespace Name official cxiintermediary net/minecraft/class_3449named net/minecraft/structure/StructureStart
-
Field Summary
Fields Modifier and Type Field Description protected BlockBoxboundingBoxprotected List<StructurePiece>childrenprivate intchunkXprivate intchunkZstatic StructureStart<?>DEFAULTprivate StructureFeature<C>featureprotected ChunkRandomrandomprivate intreferencesThe number of chunks that intersect the structures bounding box, and have stored references to its starting chunk. -
Constructor Summary
Constructors Constructor Description StructureStart(StructureFeature<C> feature, int chunkX, int chunkZ, BlockBox box, int references, long seed) -
Method Summary
Modifier and Type Method Description voidgenerateStructure(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox box, ChunkPos chunkPos)BlockBoxgetBoundingBox()List<StructurePiece>getChildren()intgetChunkX()intgetChunkZ()StructureFeature<?>getFeature()BlockPosgetPos()protected intgetReferenceCountToBeInExistingChunk()intgetReferences()booleanhasChildren()voidincrementReferences()abstract voidinit(DynamicRegistryManager registryManager, ChunkGenerator chunkGenerator, StructureManager manager, int chunkX, int chunkZ, Biome biome, C config, HeightLimitView heightLimitView)booleanisInExistingChunk()protected voidrandomUpwardTranslation(int seaLevel, Random random, int minSeaLevelDistance)protected voidrandomUpwardTranslation(Random random, int minY, int maxY)protected voidsetBoundingBoxFromChildren()CompoundTagtoTag(int chunkX, int chunkZ)
-
Field Details
-
DEFAULT
- Mappings:
Namespace Name Mixin selector official aLcxi;a:Lcxi;intermediary field_16713Lnet/minecraft/class_3449;field_16713:Lnet/minecraft/class_3449;named DEFAULTLnet/minecraft/structure/StructureStart;DEFAULT:Lnet/minecraft/structure/StructureStart;
-
feature
- Mappings:
Namespace Name Mixin selector official eLcxi;e:Lcqj;intermediary field_16714Lnet/minecraft/class_3449;field_16714:Lnet/minecraft/class_3195;named featureLnet/minecraft/structure/StructureStart;feature:Lnet/minecraft/world/gen/feature/StructureFeature;
-
children
- Mappings:
Namespace Name Mixin selector official bLcxi;b:Ljava/util/List;intermediary field_15325Lnet/minecraft/class_3449;field_15325:Ljava/util/List;named childrenLnet/minecraft/structure/StructureStart;children:Ljava/util/List;
-
boundingBox
- Mappings:
Namespace Name Mixin selector official cLcxi;c:Lcwn;intermediary field_15330Lnet/minecraft/class_3449;field_15330:Lnet/minecraft/class_3341;named boundingBoxLnet/minecraft/structure/StructureStart;boundingBox:Lnet/minecraft/util/math/BlockBox;
-
chunkX
private final int chunkX- Mappings:
Namespace Name Mixin selector official fLcxi;f:Iintermediary field_15329Lnet/minecraft/class_3449;field_15329:Inamed chunkXLnet/minecraft/structure/StructureStart;chunkX:I
-
chunkZ
private final int chunkZ- Mappings:
Namespace Name Mixin selector official gLcxi;g:Iintermediary field_15327Lnet/minecraft/class_3449;field_15327:Inamed chunkZLnet/minecraft/structure/StructureStart;chunkZ:I
-
references
private int referencesThe number of chunks that intersect the structures bounding box, and have stored references to its starting chunk.This number can be lower than the number of potential intersecting chunks, since it is only updated when an actual reference is created in such chunks (when they enter the corresponding chunk generation phase).
- Mappings:
Namespace Name Mixin selector official hLcxi;h:Iintermediary field_15326Lnet/minecraft/class_3449;field_15326:Inamed referencesLnet/minecraft/structure/StructureStart;references:I
-
random
- Mappings:
Namespace Name Mixin selector official dLcxi;d:Lcmz;intermediary field_16715Lnet/minecraft/class_3449;field_16715:Lnet/minecraft/class_2919;named randomLnet/minecraft/structure/StructureStart;random:Lnet/minecraft/world/gen/ChunkRandom;
-
-
Constructor Details
-
StructureStart
public StructureStart(StructureFeature<C> feature, int chunkX, int chunkZ, BlockBox box, int references, long seed)- Mappings:
Namespace Name Mixin selector official <init>Lcxi;<init>(Lcqj;IILcwn;IJ)Vintermediary <init>Lnet/minecraft/class_3449;<init>(Lnet/minecraft/class_3195;IILnet/minecraft/class_3341;IJ)Vnamed <init>Lnet/minecraft/structure/StructureStart;<init>(Lnet/minecraft/world/gen/feature/StructureFeature;IILnet/minecraft/util/math/BlockBox;IJ)V
-
-
Method Details
-
init
public abstract void init(DynamicRegistryManager registryManager, ChunkGenerator chunkGenerator, StructureManager manager, int chunkX, int chunkZ, Biome biome, C config, HeightLimitView heightLimitView)- Mappings:
Namespace Name Mixin selector official aLcxi;a(Lgo;Lcjn;Lcyj;IILbuu;Lcrk;Lbtx;)Vintermediary method_16655Lnet/minecraft/class_3449;method_16655(Lnet/minecraft/class_5455;Lnet/minecraft/class_2794;Lnet/minecraft/class_3485;IILnet/minecraft/class_1959;Lnet/minecraft/class_3037;Lnet/minecraft/class_5539;)Vnamed initLnet/minecraft/structure/StructureStart;init(Lnet/minecraft/util/registry/DynamicRegistryManager;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/structure/StructureManager;IILnet/minecraft/world/biome/Biome;Lnet/minecraft/world/gen/feature/FeatureConfig;Lnet/minecraft/world/HeightLimitView;)V
-
getBoundingBox
- Mappings:
Namespace Name Mixin selector official cLcxi;c()Lcwn;intermediary method_14968Lnet/minecraft/class_3449;method_14968()Lnet/minecraft/class_3341;named getBoundingBoxLnet/minecraft/structure/StructureStart;getBoundingBox()Lnet/minecraft/util/math/BlockBox;
-
getChildren
- Mappings:
Namespace Name Mixin selector official dLcxi;d()Ljava/util/List;intermediary method_14963Lnet/minecraft/class_3449;method_14963()Ljava/util/List;named getChildrenLnet/minecraft/structure/StructureStart;getChildren()Ljava/util/List;
-
generateStructure
public void generateStructure(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox box, ChunkPos chunkPos)- Mappings:
Namespace Name Mixin selector official aLcxi;a(Lbuq;Lbum;Lcjn;Ljava/util/Random;Lcwn;Lbta;)Vintermediary method_14974Lnet/minecraft/class_3449;method_14974(Lnet/minecraft/class_5281;Lnet/minecraft/class_5138;Lnet/minecraft/class_2794;Ljava/util/Random;Lnet/minecraft/class_3341;Lnet/minecraft/class_1923;)Vnamed generateStructureLnet/minecraft/structure/StructureStart;generateStructure(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Ljava/util/Random;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/util/math/ChunkPos;)V
-
setBoundingBoxFromChildren
protected void setBoundingBoxFromChildren()- Mappings:
Namespace Name Mixin selector official bLcxi;b()Vintermediary method_14969Lnet/minecraft/class_3449;method_14969()Vnamed setBoundingBoxFromChildrenLnet/minecraft/structure/StructureStart;setBoundingBoxFromChildren()V
-
toTag
- Mappings:
Namespace Name Mixin selector official aLcxi;a(II)Lmq;intermediary method_14972Lnet/minecraft/class_3449;method_14972(II)Lnet/minecraft/class_2487;named toTagLnet/minecraft/structure/StructureStart;toTag(II)Lnet/minecraft/nbt/CompoundTag;
-
randomUpwardTranslation
- Mappings:
Namespace Name Mixin selector official aLcxi;a(ILjava/util/Random;I)Vintermediary method_14978Lnet/minecraft/class_3449;method_14978(ILjava/util/Random;I)Vnamed randomUpwardTranslationLnet/minecraft/structure/StructureStart;randomUpwardTranslation(ILjava/util/Random;I)V
-
randomUpwardTranslation
- Mappings:
Namespace Name Mixin selector official aLcxi;a(Ljava/util/Random;II)Vintermediary method_14976Lnet/minecraft/class_3449;method_14976(Ljava/util/Random;II)Vnamed randomUpwardTranslationLnet/minecraft/structure/StructureStart;randomUpwardTranslation(Ljava/util/Random;II)V
-
hasChildren
public boolean hasChildren()- Mappings:
Namespace Name Mixin selector official eLcxi;e()Zintermediary method_16657Lnet/minecraft/class_3449;method_16657()Znamed hasChildrenLnet/minecraft/structure/StructureStart;hasChildren()Z
-
getChunkX
public int getChunkX()- Mappings:
Namespace Name Mixin selector official fLcxi;f()Iintermediary method_14967Lnet/minecraft/class_3449;method_14967()Inamed getChunkXLnet/minecraft/structure/StructureStart;getChunkX()I
-
getChunkZ
public int getChunkZ()- Mappings:
Namespace Name Mixin selector official gLcxi;g()Iintermediary method_14966Lnet/minecraft/class_3449;method_14966()Inamed getChunkZLnet/minecraft/structure/StructureStart;getChunkZ()I
-
getPos
- Mappings:
Namespace Name Mixin selector official aLcxi;a()Lfx;intermediary method_14962Lnet/minecraft/class_3449;method_14962()Lnet/minecraft/class_2338;named getPosLnet/minecraft/structure/StructureStart;getPos()Lnet/minecraft/util/math/BlockPos;
-
isInExistingChunk
public boolean isInExistingChunk()- Mappings:
Namespace Name Mixin selector official hLcxi;h()Zintermediary method_14979Lnet/minecraft/class_3449;method_14979()Znamed isInExistingChunkLnet/minecraft/structure/StructureStart;isInExistingChunk()Z
-
incrementReferences
public void incrementReferences()- Mappings:
Namespace Name Mixin selector official iLcxi;i()Vintermediary method_14964Lnet/minecraft/class_3449;method_14964()Vnamed incrementReferencesLnet/minecraft/structure/StructureStart;incrementReferences()V
-
getReferences
public int getReferences()- Mappings:
Namespace Name Mixin selector official jLcxi;j()Iintermediary method_23676Lnet/minecraft/class_3449;method_23676()Inamed getReferencesLnet/minecraft/structure/StructureStart;getReferences()I
-
getReferenceCountToBeInExistingChunk
protected int getReferenceCountToBeInExistingChunk()- Mappings:
Namespace Name Mixin selector official kLcxi;k()Iintermediary method_14970Lnet/minecraft/class_3449;method_14970()Inamed getReferenceCountToBeInExistingChunkLnet/minecraft/structure/StructureStart;getReferenceCountToBeInExistingChunk()I
-
getFeature
- Mappings:
Namespace Name Mixin selector official lLcxi;l()Lcqj;intermediary method_16656Lnet/minecraft/class_3449;method_16656()Lnet/minecraft/class_3195;named getFeatureLnet/minecraft/structure/StructureStart;getFeature()Lnet/minecraft/world/gen/feature/StructureFeature;
-