Package net.minecraft.structure
Class StructureStart
java.lang.Object
net.minecraft.structure.StructureStart
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 dgeintermediary net/minecraft/class_3449named net/minecraft/structure/StructureStart
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StructurePiecesListstatic final StructureStartprivate final StructureFeatureprivate static final org.slf4j.Loggerstatic final Stringprivate final ChunkPosprivate intThe number of chunks that intersect the structures bounding box, and have stored references to its starting chunk. -
Constructor Summary
ConstructorsConstructorDescriptionStructureStart(StructureFeature feature, ChunkPos pos, int references, StructurePiecesList children) -
Method Summary
Modifier and TypeMethodDescriptiongetPos()protected intintbooleanvoidbooleanstatic @Nullable StructureStartmethod_41621(StructureContext structureContext, NbtCompound nbtCompound, long long2) voidplace(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos) toNbt(StructureContext context, ChunkPos chunkPos)
-
Field Details
-
INVALID
- See Also:
- Mappings:
Namespace Name Mixin selector official aLdge;a:Ljava/lang/String;intermediary field_31662Lnet/minecraft/class_3449;field_31662:Ljava/lang/String;named INVALIDLnet/minecraft/structure/StructureStart;INVALID:Ljava/lang/String;
-
DEFAULT
- Mappings:
Namespace Name Mixin selector official bLdge;b:Ldge;intermediary field_16713Lnet/minecraft/class_3449;field_16713:Lnet/minecraft/class_3449;named DEFAULTLnet/minecraft/structure/StructureStart;DEFAULT:Lnet/minecraft/structure/StructureStart;
-
field_37751
private static final org.slf4j.Logger field_37751- Mappings:
Namespace Name Mixin selector official cLdge;c:Lorg/slf4j/Logger;intermediary field_37751Lnet/minecraft/class_3449;field_37751:Lorg/slf4j/Logger;named field_37751Lnet/minecraft/structure/StructureStart;field_37751:Lorg/slf4j/Logger;
-
feature
- Mappings:
Namespace Name Mixin selector official dLdge;d:Ldfw;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 eLdge;e:Ldgk;intermediary field_34940Lnet/minecraft/class_3449;field_34940:Lnet/minecraft/class_6624;named childrenLnet/minecraft/structure/StructureStart;children:Lnet/minecraft/structure/StructurePiecesList;
-
pos
- Mappings:
Namespace Name Mixin selector official fLdge;f:Lcbg;intermediary field_29070Lnet/minecraft/class_3449;field_29070:Lnet/minecraft/class_1923;named posLnet/minecraft/structure/StructureStart;pos:Lnet/minecraft/util/math/ChunkPos;
-
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 gLdge;g:Iintermediary field_15326Lnet/minecraft/class_3449;field_15326:Inamed referencesLnet/minecraft/structure/StructureStart;references:I
-
boundingBox
- Mappings:
Namespace Name Mixin selector official hLdge;h:Ldfo;intermediary field_31663Lnet/minecraft/class_3449;field_31663:Lnet/minecraft/class_3341;named boundingBoxLnet/minecraft/structure/StructureStart;boundingBox:Lnet/minecraft/util/math/BlockBox;
-
-
Constructor Details
-
StructureStart
public StructureStart(StructureFeature feature, ChunkPos pos, int references, StructurePiecesList children) - Mappings:
Namespace Name Mixin selector official <init>Ldge;<init>(Ldfw;Lcbg;ILdgk;)Vintermediary <init>Lnet/minecraft/class_3449;<init>(Lnet/minecraft/class_3195;Lnet/minecraft/class_1923;ILnet/minecraft/class_6624;)Vnamed <init>Lnet/minecraft/structure/StructureStart;<init>(Lnet/minecraft/world/gen/feature/StructureFeature;Lnet/minecraft/util/math/ChunkPos;ILnet/minecraft/structure/StructurePiecesList;)V
-
-
Method Details
-
method_41621
@Nullable public static @Nullable StructureStart method_41621(StructureContext structureContext, NbtCompound nbtCompound, long long2) - Mappings:
Namespace Name Mixin selector official aLdge;a(Ldgl;Lor;J)Ldge;intermediary method_41621Lnet/minecraft/class_3449;method_41621(Lnet/minecraft/class_6625;Lnet/minecraft/class_2487;J)Lnet/minecraft/class_3449;named method_41621Lnet/minecraft/structure/StructureStart;method_41621(Lnet/minecraft/structure/StructureContext;Lnet/minecraft/nbt/NbtCompound;J)Lnet/minecraft/structure/StructureStart;
-
getBoundingBox
- Mappings:
Namespace Name Mixin selector official aLdge;a()Ldfo;intermediary method_14969Lnet/minecraft/class_3449;method_14969()Lnet/minecraft/class_3341;named getBoundingBoxLnet/minecraft/structure/StructureStart;getBoundingBox()Lnet/minecraft/util/math/BlockBox;
-
place
public void place(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos) - Mappings:
Namespace Name Mixin selector official aLdge;a(Lccr;Lccq;Lcsi;Ljava/util/Random;Ldfo;Lcbg;)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 placeLnet/minecraft/structure/StructureStart;place(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
-
toNbt
- Mappings:
Namespace Name Mixin selector official aLdge;a(Ldgl;Lcbg;)Lor;intermediary method_14972Lnet/minecraft/class_3449;method_14972(Lnet/minecraft/class_6625;Lnet/minecraft/class_1923;)Lnet/minecraft/class_2487;named toNbtLnet/minecraft/structure/StructureStart;toNbt(Lnet/minecraft/structure/StructureContext;Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/nbt/NbtCompound;
-
hasChildren
public boolean hasChildren()- Mappings:
Namespace Name Mixin selector official bLdge;b()Zintermediary method_16657Lnet/minecraft/class_3449;method_16657()Znamed hasChildrenLnet/minecraft/structure/StructureStart;hasChildren()Z
-
getPos
- Mappings:
Namespace Name Mixin selector official cLdge;c()Lcbg;intermediary method_34000Lnet/minecraft/class_3449;method_34000()Lnet/minecraft/class_1923;named getPosLnet/minecraft/structure/StructureStart;getPos()Lnet/minecraft/util/math/ChunkPos;
-
isInExistingChunk
public boolean isInExistingChunk()- Mappings:
Namespace Name Mixin selector official dLdge;d()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 eLdge;e()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 fLdge;f()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 gLdge;g()Iintermediary method_14970Lnet/minecraft/class_3449;method_14970()Inamed getReferenceCountToBeInExistingChunkLnet/minecraft/structure/StructureStart;getReferenceCountToBeInExistingChunk()I
-
getFeature
- Mappings:
Namespace Name Mixin selector official hLdge;h()Ldfw;intermediary method_16656Lnet/minecraft/class_3449;method_16656()Lnet/minecraft/class_3195;named getFeatureLnet/minecraft/structure/StructureStart;getFeature()Lnet/minecraft/world/gen/feature/StructureFeature;
-
getChildren
- Mappings:
Namespace Name Mixin selector official iLdge;i()Ljava/util/List;intermediary method_14963Lnet/minecraft/class_3449;method_14963()Ljava/util/List;named getChildrenLnet/minecraft/structure/StructureStart;getChildren()Ljava/util/List;
-