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 named net/minecraft/structure/StructureStart
intermediary net/minecraft/class_3449
official eor
-
Field Summary
Modifier and TypeFieldDescriptionprivate final StructurePiecesList
static final StructureStart
static final String
private static final Logger
private final ChunkPos
private int
The number of chunks that intersect the structures bounding box, and have stored references to its starting chunk.private final Structure
-
Constructor Summary
ConstructorDescriptionStructureStart
(Structure structure, ChunkPos pos, int references, StructurePiecesList children) -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable StructureStart
fromNbt
(StructureContext context, NbtCompound nbt, long seed) protected int
getPos()
int
boolean
void
boolean
void
place
(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 named INVALID
Lnet/minecraft/structure/StructureStart;INVALID:Ljava/lang/String;
intermediary field_31662
Lnet/minecraft/class_3449;field_31662:Ljava/lang/String;
official a
Leor;a:Ljava/lang/String;
-
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULT
Lnet/minecraft/structure/StructureStart;DEFAULT:Lnet/minecraft/structure/StructureStart;
intermediary field_16713
Lnet/minecraft/class_3449;field_16713:Lnet/minecraft/class_3449;
official b
Leor;b:Leor;
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/structure/StructureStart;LOGGER:Lorg/slf4j/Logger;
intermediary field_37751
Lnet/minecraft/class_3449;field_37751:Lorg/slf4j/Logger;
official c
Leor;c:Lorg/slf4j/Logger;
-
structure
- Mappings:
Namespace Name Mixin selector named structure
Lnet/minecraft/structure/StructureStart;structure:Lnet/minecraft/world/gen/structure/Structure;
intermediary field_16714
Lnet/minecraft/class_3449;field_16714:Lnet/minecraft/class_3195;
official d
Leor;d:Leoj;
-
children
- Mappings:
Namespace Name Mixin selector named children
Lnet/minecraft/structure/StructureStart;children:Lnet/minecraft/structure/StructurePiecesList;
intermediary field_34940
Lnet/minecraft/class_3449;field_34940:Lnet/minecraft/class_6624;
official e
Leor;e:Leoy;
-
pos
- Mappings:
Namespace Name Mixin selector named pos
Lnet/minecraft/structure/StructureStart;pos:Lnet/minecraft/util/math/ChunkPos;
intermediary field_29070
Lnet/minecraft/class_3449;field_29070:Lnet/minecraft/class_1923;
official f
Leor;f:Ldgn;
-
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 named references
Lnet/minecraft/structure/StructureStart;references:I
intermediary field_15326
Lnet/minecraft/class_3449;field_15326:I
official g
Leor;g:I
-
boundingBox
- Mappings:
Namespace Name Mixin selector named boundingBox
Lnet/minecraft/structure/StructureStart;boundingBox:Lnet/minecraft/util/math/BlockBox;
intermediary field_31663
Lnet/minecraft/class_3449;field_31663:Lnet/minecraft/class_3341;
official h
Leor;h:Leob;
-
-
Constructor Details
-
StructureStart
public StructureStart(Structure structure, ChunkPos pos, int references, StructurePiecesList children) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/structure/StructureStart;<init>(Lnet/minecraft/world/gen/structure/Structure;Lnet/minecraft/util/math/ChunkPos;ILnet/minecraft/structure/StructurePiecesList;)V
intermediary <init>
Lnet/minecraft/class_3449;<init>(Lnet/minecraft/class_3195;Lnet/minecraft/class_1923;ILnet/minecraft/class_6624;)V
official <init>
Leor;<init>(Leoj;Ldgn;ILeoy;)V
-
-
Method Details
-
fromNbt
@Nullable public static @Nullable StructureStart fromNbt(StructureContext context, NbtCompound nbt, long seed) - Mappings:
Namespace Name Mixin selector named fromNbt
Lnet/minecraft/structure/StructureStart;fromNbt(Lnet/minecraft/structure/StructureContext;Lnet/minecraft/nbt/NbtCompound;J)Lnet/minecraft/structure/StructureStart;
intermediary method_41621
Lnet/minecraft/class_3449;method_41621(Lnet/minecraft/class_6625;Lnet/minecraft/class_2487;J)Lnet/minecraft/class_3449;
official a
Leor;a(Leoz;Lux;J)Leor;
-
getBoundingBox
- Mappings:
Namespace Name Mixin selector named getBoundingBox
Lnet/minecraft/structure/StructureStart;getBoundingBox()Lnet/minecraft/util/math/BlockBox;
intermediary method_14969
Lnet/minecraft/class_3449;method_14969()Lnet/minecraft/class_3341;
official a
Leor;a()Leob;
-
place
public void place(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos) - Mappings:
Namespace Name Mixin selector named place
Lnet/minecraft/structure/StructureStart;place(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/util/math/ChunkPos;)V
intermediary method_14974
Lnet/minecraft/class_3449;method_14974(Lnet/minecraft/class_5281;Lnet/minecraft/class_5138;Lnet/minecraft/class_2794;Lnet/minecraft/class_5819;Lnet/minecraft/class_3341;Lnet/minecraft/class_1923;)V
official a
Leor;a(Ldif;Ldid;Ldzq;Lbam;Leob;Ldgn;)V
-
toNbt
- Mappings:
Namespace Name Mixin selector named toNbt
Lnet/minecraft/structure/StructureStart;toNbt(Lnet/minecraft/structure/StructureContext;Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/nbt/NbtCompound;
intermediary method_14972
Lnet/minecraft/class_3449;method_14972(Lnet/minecraft/class_6625;Lnet/minecraft/class_1923;)Lnet/minecraft/class_2487;
official a
Leor;a(Leoz;Ldgn;)Lux;
-
hasChildren
public boolean hasChildren()- Mappings:
Namespace Name Mixin selector named hasChildren
Lnet/minecraft/structure/StructureStart;hasChildren()Z
intermediary method_16657
Lnet/minecraft/class_3449;method_16657()Z
official b
Leor;b()Z
-
getPos
- Mappings:
Namespace Name Mixin selector named getPos
Lnet/minecraft/structure/StructureStart;getPos()Lnet/minecraft/util/math/ChunkPos;
intermediary method_34000
Lnet/minecraft/class_3449;method_34000()Lnet/minecraft/class_1923;
official c
Leor;c()Ldgn;
-
isNeverReferenced
public boolean isNeverReferenced()- Mappings:
Namespace Name Mixin selector named isNeverReferenced
Lnet/minecraft/structure/StructureStart;isNeverReferenced()Z
intermediary method_14979
Lnet/minecraft/class_3449;method_14979()Z
official d
Leor;d()Z
-
incrementReferences
public void incrementReferences()- Mappings:
Namespace Name Mixin selector named incrementReferences
Lnet/minecraft/structure/StructureStart;incrementReferences()V
intermediary method_14964
Lnet/minecraft/class_3449;method_14964()V
official e
Leor;e()V
-
getReferences
public int getReferences()- Mappings:
Namespace Name Mixin selector named getReferences
Lnet/minecraft/structure/StructureStart;getReferences()I
intermediary method_23676
Lnet/minecraft/class_3449;method_23676()I
official f
Leor;f()I
-
getMinReferencedStructureReferenceCount
protected int getMinReferencedStructureReferenceCount()- Mappings:
Namespace Name Mixin selector named getMinReferencedStructureReferenceCount
Lnet/minecraft/structure/StructureStart;getMinReferencedStructureReferenceCount()I
intermediary method_14970
Lnet/minecraft/class_3449;method_14970()I
official g
Leor;g()I
-
getStructure
- Mappings:
Namespace Name Mixin selector named getStructure
Lnet/minecraft/structure/StructureStart;getStructure()Lnet/minecraft/world/gen/structure/Structure;
intermediary method_16656
Lnet/minecraft/class_3449;method_16656()Lnet/minecraft/class_3195;
official h
Leor;h()Leoj;
-
getChildren
- Mappings:
Namespace Name Mixin selector named getChildren
Lnet/minecraft/structure/StructureStart;getChildren()Ljava/util/List;
intermediary method_14963
Lnet/minecraft/class_3449;method_14963()Ljava/util/List;
official i
Leor;i()Ljava/util/List;
-