Package net.minecraft.world.level
Class StructureManager
java.lang.Object
net.minecraft.world.level.StructureManager
-
Field Summary
Modifier and TypeFieldDescriptionprivate final LevelAccessor
private final StructureCheck
private final WorldGenSettings
-
Constructor Summary
ConstructorDescriptionStructureManager
(LevelAccessor p_220464_, WorldGenSettings p_220465_, StructureCheck p_220466_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addReference
(StructureStart p_220485_) void
addReferenceForStructure
(SectionPos p_220508_, Structure p_220509_, long p_220510_, StructureAccess p_220511_) checkStructurePresence
(ChunkPos p_220474_, Structure p_220475_, boolean p_220476_) void
fillStartsForStructure
(Structure p_220481_, it.unimi.dsi.fastutil.longs.LongSet p_220482_, Consumer<StructureStart> p_220483_) forWorldGenRegion
(WorldGenRegion p_220469_) getAllStructuresAt
(BlockPos p_220523_) getStartForStructure
(SectionPos p_220513_, Structure p_220514_, StructureAccess p_220515_) getStructureAt
(BlockPos p_220495_, Structure p_220496_) getStructureWithPieceAt
(BlockPos p_220489_, ResourceKey<Structure> p_220490_) getStructureWithPieceAt
(BlockPos p_220492_, TagKey<Structure> p_220493_) getStructureWithPieceAt
(BlockPos p_220525_, Structure p_220526_) boolean
hasAnyStructureAt
(BlockPos p_220487_) void
setStartForStructure
(SectionPos p_220517_, Structure p_220518_, StructureStart p_220519_, StructureAccess p_220520_) boolean
startsForStructure
(SectionPos p_220505_, Structure p_220506_) startsForStructure
(ChunkPos p_220478_, Predicate<Structure> p_220479_) boolean
structureHasPieceAt
(BlockPos p_220498_, StructureStart p_220499_)
-
Field Details
-
level
-
worldGenSettings
-
structureCheck
-
-
Constructor Details
-
StructureManager
public StructureManager(LevelAccessor p_220464_, WorldGenSettings p_220465_, StructureCheck p_220466_)
-
-
Method Details
-
forWorldGenRegion
-
startsForStructure
-
startsForStructure
-
fillStartsForStructure
public void fillStartsForStructure(Structure p_220481_, it.unimi.dsi.fastutil.longs.LongSet p_220482_, Consumer<StructureStart> p_220483_) -
getStartForStructure
@Nullable public StructureStart getStartForStructure(SectionPos p_220513_, Structure p_220514_, StructureAccess p_220515_) -
setStartForStructure
public void setStartForStructure(SectionPos p_220517_, Structure p_220518_, StructureStart p_220519_, StructureAccess p_220520_) -
addReferenceForStructure
public void addReferenceForStructure(SectionPos p_220508_, Structure p_220509_, long p_220510_, StructureAccess p_220511_) -
shouldGenerateStructures
public boolean shouldGenerateStructures() -
getStructureAt
-
getStructureWithPieceAt
-
getStructureWithPieceAt
-
getStructureWithPieceAt
-
structureHasPieceAt
-
hasAnyStructureAt
-
getAllStructuresAt
-
checkStructurePresence
public StructureCheckResult checkStructurePresence(ChunkPos p_220474_, Structure p_220475_, boolean p_220476_) -
addReference
-
registryAccess
-