Class StructureStart<C extends FeatureConfig>

java.lang.Object
net.minecraft.structure.StructureStart<C>

public final 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 dfh
intermediary net/minecraft/class_3449
named net/minecraft/structure/StructureStart
  • Field Details

    • INVALID

      public static final String INVALID
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Ldfh;a:Ljava/lang/String;
      intermediary field_31662 Lnet/minecraft/class_3449;field_31662:Ljava/lang/String;
      named INVALID Lnet/minecraft/structure/StructureStart;INVALID:Ljava/lang/String;
    • DEFAULT

      public static final StructureStart<?> DEFAULT
      Mappings:
      Namespace Name Mixin selector
      official b Ldfh;b:Ldfh;
      intermediary field_16713 Lnet/minecraft/class_3449;field_16713:Lnet/minecraft/class_3449;
      named DEFAULT Lnet/minecraft/structure/StructureStart;DEFAULT:Lnet/minecraft/structure/StructureStart;
    • feature

      private final StructureFeature<C extends FeatureConfig> feature
      Mappings:
      Namespace Name Mixin selector
      official c Ldfh;c:Lcyi;
      intermediary field_16714 Lnet/minecraft/class_3449;field_16714:Lnet/minecraft/class_3195;
      named feature Lnet/minecraft/structure/StructureStart;feature:Lnet/minecraft/world/gen/feature/StructureFeature;
    • children

      private final StructurePiecesList children
      Mappings:
      Namespace Name Mixin selector
      official d Ldfh;d:Ldfo;
      intermediary field_34940 Lnet/minecraft/class_3449;field_34940:Lnet/minecraft/class_6624;
      named children Lnet/minecraft/structure/StructureStart;children:Lnet/minecraft/structure/StructurePiecesList;
    • pos

      private final ChunkPos pos
      Mappings:
      Namespace Name Mixin selector
      official e Ldfh;e:Lbzk;
      intermediary field_29070 Lnet/minecraft/class_3449;field_29070:Lnet/minecraft/class_1923;
      named pos Lnet/minecraft/structure/StructureStart;pos:Lnet/minecraft/util/math/ChunkPos;
    • references

      private int references
      The 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 f Ldfh;f:I
      intermediary field_15326 Lnet/minecraft/class_3449;field_15326:I
      named references Lnet/minecraft/structure/StructureStart;references:I
    • boundingBox

      @Nullable private volatile @Nullable BlockBox boundingBox
      Mappings:
      Namespace Name Mixin selector
      official g Ldfh;g:Ldeh;
      intermediary field_31663 Lnet/minecraft/class_3449;field_31663:Lnet/minecraft/class_3341;
      named boundingBox Lnet/minecraft/structure/StructureStart;boundingBox:Lnet/minecraft/util/math/BlockBox;
  • Constructor Details

    • StructureStart

      public StructureStart(StructureFeature<C> feature, ChunkPos pos, int references, StructurePiecesList children)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldfh;<init>(Lcyi;Lbzk;ILdfo;)V
      intermediary <init> Lnet/minecraft/class_3449;<init>(Lnet/minecraft/class_3195;Lnet/minecraft/class_1923;ILnet/minecraft/class_6624;)V
      named <init> Lnet/minecraft/structure/StructureStart;<init>(Lnet/minecraft/world/gen/feature/StructureFeature;Lnet/minecraft/util/math/ChunkPos;ILnet/minecraft/structure/StructurePiecesList;)V
  • Method Details

    • getBoundingBox

      public BlockBox getBoundingBox()
      Mappings:
      Namespace Name Mixin selector
      official a Ldfh;a()Ldeh;
      intermediary method_14969 Lnet/minecraft/class_3449;method_14969()Lnet/minecraft/class_3341;
      named getBoundingBox Lnet/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 a Ldfh;a(Lcav;Lcau;Lcpz;Ljava/util/Random;Ldeh;Lbzk;)V
      intermediary method_14974 Lnet/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;)V
      named place Lnet/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

      public NbtCompound toNbt(StructureContext context, ChunkPos chunkPos)
      Mappings:
      Namespace Name Mixin selector
      official a Ldfh;a(Ldfp;Lbzk;)Loc;
      intermediary method_14972 Lnet/minecraft/class_3449;method_14972(Lnet/minecraft/class_6625;Lnet/minecraft/class_1923;)Lnet/minecraft/class_2487;
      named toNbt Lnet/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 b Ldfh;b()Z
      intermediary method_16657 Lnet/minecraft/class_3449;method_16657()Z
      named hasChildren Lnet/minecraft/structure/StructureStart;hasChildren()Z
    • getPos

      public ChunkPos getPos()
      Mappings:
      Namespace Name Mixin selector
      official c Ldfh;c()Lbzk;
      intermediary method_34000 Lnet/minecraft/class_3449;method_34000()Lnet/minecraft/class_1923;
      named getPos Lnet/minecraft/structure/StructureStart;getPos()Lnet/minecraft/util/math/ChunkPos;
    • isInExistingChunk

      public boolean isInExistingChunk()
      Mappings:
      Namespace Name Mixin selector
      official d Ldfh;d()Z
      intermediary method_14979 Lnet/minecraft/class_3449;method_14979()Z
      named isInExistingChunk Lnet/minecraft/structure/StructureStart;isInExistingChunk()Z
    • incrementReferences

      public void incrementReferences()
      Mappings:
      Namespace Name Mixin selector
      official e Ldfh;e()V
      intermediary method_14964 Lnet/minecraft/class_3449;method_14964()V
      named incrementReferences Lnet/minecraft/structure/StructureStart;incrementReferences()V
    • getReferences

      public int getReferences()
      Mappings:
      Namespace Name Mixin selector
      official f Ldfh;f()I
      intermediary method_23676 Lnet/minecraft/class_3449;method_23676()I
      named getReferences Lnet/minecraft/structure/StructureStart;getReferences()I
    • getReferenceCountToBeInExistingChunk

      protected int getReferenceCountToBeInExistingChunk()
      Mappings:
      Namespace Name Mixin selector
      official g Ldfh;g()I
      intermediary method_14970 Lnet/minecraft/class_3449;method_14970()I
      named getReferenceCountToBeInExistingChunk Lnet/minecraft/structure/StructureStart;getReferenceCountToBeInExistingChunk()I
    • getFeature

      public StructureFeature<?> getFeature()
      Mappings:
      Namespace Name Mixin selector
      official h Ldfh;h()Lcyi;
      intermediary method_16656 Lnet/minecraft/class_3449;method_16656()Lnet/minecraft/class_3195;
      named getFeature Lnet/minecraft/structure/StructureStart;getFeature()Lnet/minecraft/world/gen/feature/StructureFeature;
    • getChildren

      public List<StructurePiece> getChildren()
      Mappings:
      Namespace Name Mixin selector
      official i Ldfh;i()Ljava/util/List;
      intermediary method_14963 Lnet/minecraft/class_3449;method_14963()Ljava/util/List;
      named getChildren Lnet/minecraft/structure/StructureStart;getChildren()Ljava/util/List;