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

    • DEFAULT

      public static final StructureStart<?> DEFAULT
      Mappings:
      Namespace Name Mixin selector
      official a Lcxi;a:Lcxi;
      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 e Lcxi;e:Lcqj;
      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

      protected final List<StructurePiece> children
      Mappings:
      Namespace Name Mixin selector
      official b Lcxi;b:Ljava/util/List;
      intermediary field_15325 Lnet/minecraft/class_3449;field_15325:Ljava/util/List;
      named children Lnet/minecraft/structure/StructureStart;children:Ljava/util/List;
    • boundingBox

      protected BlockBox boundingBox
      Mappings:
      Namespace Name Mixin selector
      official c Lcxi;c:Lcwn;
      intermediary field_15330 Lnet/minecraft/class_3449;field_15330:Lnet/minecraft/class_3341;
      named boundingBox Lnet/minecraft/structure/StructureStart;boundingBox:Lnet/minecraft/util/math/BlockBox;
    • chunkX

      private final int chunkX
      Mappings:
      Namespace Name Mixin selector
      official f Lcxi;f:I
      intermediary field_15329 Lnet/minecraft/class_3449;field_15329:I
      named chunkX Lnet/minecraft/structure/StructureStart;chunkX:I
    • chunkZ

      private final int chunkZ
      Mappings:
      Namespace Name Mixin selector
      official g Lcxi;g:I
      intermediary field_15327 Lnet/minecraft/class_3449;field_15327:I
      named chunkZ Lnet/minecraft/structure/StructureStart;chunkZ:I
    • 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 h Lcxi;h:I
      intermediary field_15326 Lnet/minecraft/class_3449;field_15326:I
      named references Lnet/minecraft/structure/StructureStart;references:I
    • random

      protected final ChunkRandom random
      Mappings:
      Namespace Name Mixin selector
      official d Lcxi;d:Lcmz;
      intermediary field_16715 Lnet/minecraft/class_3449;field_16715:Lnet/minecraft/class_2919;
      named random Lnet/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)V
      intermediary <init> Lnet/minecraft/class_3449;<init>(Lnet/minecraft/class_3195;IILnet/minecraft/class_3341;IJ)V
      named <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 a Lcxi;a(Lgo;Lcjn;Lcyj;IILbuu;Lcrk;Lbtx;)V
      intermediary method_16655 Lnet/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;)V
      named init Lnet/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

      public BlockBox getBoundingBox()
      Mappings:
      Namespace Name Mixin selector
      official c Lcxi;c()Lcwn;
      intermediary method_14968 Lnet/minecraft/class_3449;method_14968()Lnet/minecraft/class_3341;
      named getBoundingBox Lnet/minecraft/structure/StructureStart;getBoundingBox()Lnet/minecraft/util/math/BlockBox;
    • getChildren

      public List<StructurePiece> getChildren()
      Mappings:
      Namespace Name Mixin selector
      official d Lcxi;d()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;
    • generateStructure

      public void generateStructure​(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox box, ChunkPos chunkPos)
      Mappings:
      Namespace Name Mixin selector
      official a Lcxi;a(Lbuq;Lbum;Lcjn;Ljava/util/Random;Lcwn;Lbta;)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 generateStructure Lnet/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 b Lcxi;b()V
      intermediary method_14969 Lnet/minecraft/class_3449;method_14969()V
      named setBoundingBoxFromChildren Lnet/minecraft/structure/StructureStart;setBoundingBoxFromChildren()V
    • toTag

      public CompoundTag toTag​(int chunkX, int chunkZ)
      Mappings:
      Namespace Name Mixin selector
      official a Lcxi;a(II)Lmq;
      intermediary method_14972 Lnet/minecraft/class_3449;method_14972(II)Lnet/minecraft/class_2487;
      named toTag Lnet/minecraft/structure/StructureStart;toTag(II)Lnet/minecraft/nbt/CompoundTag;
    • randomUpwardTranslation

      protected void randomUpwardTranslation​(int seaLevel, Random random, int minSeaLevelDistance)
      Mappings:
      Namespace Name Mixin selector
      official a Lcxi;a(ILjava/util/Random;I)V
      intermediary method_14978 Lnet/minecraft/class_3449;method_14978(ILjava/util/Random;I)V
      named randomUpwardTranslation Lnet/minecraft/structure/StructureStart;randomUpwardTranslation(ILjava/util/Random;I)V
    • randomUpwardTranslation

      protected void randomUpwardTranslation​(Random random, int minY, int maxY)
      Mappings:
      Namespace Name Mixin selector
      official a Lcxi;a(Ljava/util/Random;II)V
      intermediary method_14976 Lnet/minecraft/class_3449;method_14976(Ljava/util/Random;II)V
      named randomUpwardTranslation Lnet/minecraft/structure/StructureStart;randomUpwardTranslation(Ljava/util/Random;II)V
    • hasChildren

      public boolean hasChildren()
      Mappings:
      Namespace Name Mixin selector
      official e Lcxi;e()Z
      intermediary method_16657 Lnet/minecraft/class_3449;method_16657()Z
      named hasChildren Lnet/minecraft/structure/StructureStart;hasChildren()Z
    • getChunkX

      public int getChunkX()
      Mappings:
      Namespace Name Mixin selector
      official f Lcxi;f()I
      intermediary method_14967 Lnet/minecraft/class_3449;method_14967()I
      named getChunkX Lnet/minecraft/structure/StructureStart;getChunkX()I
    • getChunkZ

      public int getChunkZ()
      Mappings:
      Namespace Name Mixin selector
      official g Lcxi;g()I
      intermediary method_14966 Lnet/minecraft/class_3449;method_14966()I
      named getChunkZ Lnet/minecraft/structure/StructureStart;getChunkZ()I
    • getPos

      public BlockPos getPos()
      Mappings:
      Namespace Name Mixin selector
      official a Lcxi;a()Lfx;
      intermediary method_14962 Lnet/minecraft/class_3449;method_14962()Lnet/minecraft/class_2338;
      named getPos Lnet/minecraft/structure/StructureStart;getPos()Lnet/minecraft/util/math/BlockPos;
    • isInExistingChunk

      public boolean isInExistingChunk()
      Mappings:
      Namespace Name Mixin selector
      official h Lcxi;h()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 i Lcxi;i()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 j Lcxi;j()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 k Lcxi;k()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 l Lcxi;l()Lcqj;
      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;