Package net.minecraft.structure
Class StructureStart<C extends FeatureConfig>
java.lang.Object
net.minecraft.structure.StructureStart<C>
- All Implemented Interfaces:
class_6130
- 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,SwampHutFeature.Start,WoodlandMansionFeature.Start
public abstract class StructureStart<C extends FeatureConfig> extends Object implements class_6130
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 damintermediary net/minecraft/class_3449named net/minecraft/structure/StructureStart
-
Field Summary
Fields Modifier and Type Field Description protected List<StructurePiece>childrenstatic StructureStart<?>DEFAULTprivate StructureFeature<C>featureprivate static Loggerfield_29328static Stringfield_31662private @Nullable BlockBoxfield_31663private ChunkPosposprotected 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, ChunkPos pos, int int2, long long2) -
Method Summary
-
Field Details
-
field_29328
- Mappings:
Namespace Name Mixin selector official eLdam;e:Lorg/apache/logging/log4j/Logger;intermediary field_29328Lnet/minecraft/class_3449;field_29328:Lorg/apache/logging/log4j/Logger;named field_29328Lnet/minecraft/structure/StructureStart;field_29328:Lorg/apache/logging/log4j/Logger;
-
field_31662
- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official aLdam;a:Ljava/lang/String;intermediary field_31662Lnet/minecraft/class_3449;field_31662:Ljava/lang/String;named field_31662Lnet/minecraft/structure/StructureStart;field_31662:Ljava/lang/String;
-
DEFAULT
- Mappings:
Namespace Name Mixin selector official bLdam;b:Ldam;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 fLdam;f:Lcsv;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 cLdam;c:Ljava/util/List;intermediary field_15325Lnet/minecraft/class_3449;field_15325:Ljava/util/List;named childrenLnet/minecraft/structure/StructureStart;children:Ljava/util/List;
-
pos
- Mappings:
Namespace Name Mixin selector official gLdam;g:Lbuw;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 hLdam;h:Iintermediary field_15326Lnet/minecraft/class_3449;field_15326:Inamed referencesLnet/minecraft/structure/StructureStart;references:I
-
random
- Mappings:
Namespace Name Mixin selector official dLdam;d:Lcph;intermediary field_16715Lnet/minecraft/class_3449;field_16715:Lnet/minecraft/class_2919;named randomLnet/minecraft/structure/StructureStart;random:Lnet/minecraft/world/gen/ChunkRandom;
-
field_31663
- Mappings:
Namespace Name Mixin selector official iLdam;i:Lczp;intermediary field_31663Lnet/minecraft/class_3449;field_31663:Lnet/minecraft/class_3341;named field_31663Lnet/minecraft/structure/StructureStart;field_31663:Lnet/minecraft/util/math/BlockBox;
-
-
Constructor Details
-
StructureStart
- Mappings:
Namespace Name Mixin selector official <init>Ldam;<init>(Lcsv;Lbuw;IJ)Vintermediary <init>Lnet/minecraft/class_3449;<init>(Lnet/minecraft/class_3195;Lnet/minecraft/class_1923;IJ)Vnamed <init>Lnet/minecraft/structure/StructureStart;<init>(Lnet/minecraft/world/gen/feature/StructureFeature;Lnet/minecraft/util/math/ChunkPos;IJ)V
-
-
Method Details
-
init
public abstract void init(DynamicRegistryManager registryManager, ChunkGenerator chunkGenerator, StructureManager manager, ChunkPos pos, Biome biome, C config, HeightLimitView world)- Mappings:
Namespace Name Mixin selector official aLdam;a(Lgs;Lclm;Ldbn;Lbuw;Lbwq;Lcua;Lbvt;)Vintermediary method_16655Lnet/minecraft/class_3449;method_16655(Lnet/minecraft/class_5455;Lnet/minecraft/class_2794;Lnet/minecraft/class_3485;Lnet/minecraft/class_1923;Lnet/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;Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/biome/Biome;Lnet/minecraft/world/gen/feature/FeatureConfig;Lnet/minecraft/world/HeightLimitView;)V
-
setBoundingBoxFromChildren
- Mappings:
Namespace Name Mixin selector official bLdam;b()Lczp;intermediary method_14969Lnet/minecraft/class_3449;method_14969()Lnet/minecraft/class_3341;named setBoundingBoxFromChildrenLnet/minecraft/structure/StructureStart;setBoundingBoxFromChildren()Lnet/minecraft/util/math/BlockBox;
-
getChildren
- Mappings:
Namespace Name Mixin selector official cLdam;c()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 aLdam;a(Lbwm;Lbwi;Lclm;Ljava/util/Random;Lczp;Lbuw;)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
-
toNbt
- Mappings:
Namespace Name Mixin selector official aLdam;a(Labj;Lbuw;)Lmv;intermediary method_14972Lnet/minecraft/class_3449;method_14972(Lnet/minecraft/class_3218;Lnet/minecraft/class_1923;)Lnet/minecraft/class_2487;named toNbtLnet/minecraft/structure/StructureStart;toNbt(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/nbt/NbtCompound;
-
randomUpwardTranslation
- Mappings:
Namespace Name Mixin selector official aLdam;a(IILjava/util/Random;I)Vintermediary method_14978Lnet/minecraft/class_3449;method_14978(IILjava/util/Random;I)Vnamed randomUpwardTranslationLnet/minecraft/structure/StructureStart;randomUpwardTranslation(IILjava/util/Random;I)V
-
randomUpwardTranslation
- Mappings:
Namespace Name Mixin selector official aLdam;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
-
method_35463
protected void method_35463(int int2)- Mappings:
Namespace Name Mixin selector official aLdam;a(I)Vintermediary method_35463Lnet/minecraft/class_3449;method_35463(I)Vnamed method_35463Lnet/minecraft/structure/StructureStart;method_35463(I)V
-
method_35468
private void method_35468()- Mappings:
Namespace Name Mixin selector official mLdam;m()Vintermediary method_35468Lnet/minecraft/class_3449;method_35468()Vnamed method_35468Lnet/minecraft/structure/StructureStart;method_35468()V
-
hasChildren
public boolean hasChildren()- Mappings:
Namespace Name Mixin selector official dLdam;d()Zintermediary method_16657Lnet/minecraft/class_3449;method_16657()Znamed hasChildrenLnet/minecraft/structure/StructureStart;hasChildren()Z
-
getPos
- Mappings:
Namespace Name Mixin selector official eLdam;e()Lbuw;intermediary method_34000Lnet/minecraft/class_3449;method_34000()Lnet/minecraft/class_1923;named getPosLnet/minecraft/structure/StructureStart;getPos()Lnet/minecraft/util/math/ChunkPos;
-
getBlockPos
- Mappings:
Namespace Name Mixin selector official aLdam;a()Lgb;intermediary method_14962Lnet/minecraft/class_3449;method_14962()Lnet/minecraft/class_2338;named getBlockPosLnet/minecraft/structure/StructureStart;getBlockPos()Lnet/minecraft/util/math/BlockPos;
-
isInExistingChunk
public boolean isInExistingChunk()- Mappings:
Namespace Name Mixin selector official fLdam;f()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 gLdam;g()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 hLdam;h()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 iLdam;i()Iintermediary method_14970Lnet/minecraft/class_3449;method_14970()Inamed getReferenceCountToBeInExistingChunkLnet/minecraft/structure/StructureStart;getReferenceCountToBeInExistingChunk()I
-
getFeature
- Mappings:
Namespace Name Mixin selector official jLdam;j()Lcsv;intermediary method_16656Lnet/minecraft/class_3449;method_16656()Lnet/minecraft/class_3195;named getFeatureLnet/minecraft/structure/StructureStart;getFeature()Lnet/minecraft/world/gen/feature/StructureFeature;
-
method_35462
- Specified by:
method_35462in interfaceclass_6130- Mappings:
Namespace Name Mixin selector official aLdal;a(Ldak;)Vintermediary method_35462Lnet/minecraft/class_6130;method_35462(Lnet/minecraft/class_3443;)Vnamed method_35462Lnet/minecraft/class_6130;method_35462(Lnet/minecraft/structure/StructurePiece;)V
-
method_35461
- Specified by:
method_35461in interfaceclass_6130- Mappings:
Namespace Name Mixin selector official aLdal;a(Lczp;)Ldak;intermediary method_35461Lnet/minecraft/class_6130;method_35461(Lnet/minecraft/class_3341;)Lnet/minecraft/class_3443;named method_35461Lnet/minecraft/class_6130;method_35461(Lnet/minecraft/util/math/BlockBox;)Lnet/minecraft/structure/StructurePiece;
-
method_35466
public void method_35466()- Mappings:
Namespace Name Mixin selector official kLdam;k()Vintermediary method_35466Lnet/minecraft/class_3449;method_35466()Vnamed method_35466Lnet/minecraft/structure/StructureStart;method_35466()V
-
method_35467
public boolean method_35467()- Mappings:
Namespace Name Mixin selector official lLdam;l()Zintermediary method_35467Lnet/minecraft/class_3449;method_35467()Znamed method_35467Lnet/minecraft/structure/StructureStart;method_35467()Z
-
method_35465
@Nullable public static @Nullable StructurePiece method_35465(List<StructurePiece> list, BlockBox blockBox)- Mappings:
Namespace Name Mixin selector official aLdam;a(Ljava/util/List;Lczp;)Ldak;intermediary method_35465Lnet/minecraft/class_3449;method_35465(Ljava/util/List;Lnet/minecraft/class_3341;)Lnet/minecraft/class_3443;named method_35465Lnet/minecraft/structure/StructureStart;method_35465(Ljava/util/List;Lnet/minecraft/util/math/BlockBox;)Lnet/minecraft/structure/StructurePiece;
-
method_35464
- Mappings:
Namespace Name Mixin selector official aLdam;a(Lgb;)Zintermediary method_35464Lnet/minecraft/class_3449;method_35464(Lnet/minecraft/class_2338;)Znamed method_35464Lnet/minecraft/structure/StructureStart;method_35464(Lnet/minecraft/util/math/BlockPos;)Z
-