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 WorldOptions
-
Constructor Summary
ConstructorDescriptionStructureManager
(LevelAccessor p_249675_, WorldOptions p_248820_, StructureCheck p_249103_) -
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_, StructurePlacement p_321768_, 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_, Predicate<Holder<Structure>> p_332144_) getStructureWithPieceAt
(BlockPos p_331369_, HolderSet<Structure> p_330290_) 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
-
worldOptions
-
structureCheck
-
-
Constructor Details
-
StructureManager
-
-
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
public StructureStart getStructureWithPieceAt(BlockPos p_220489_, Predicate<Holder<Structure>> p_332144_) -
getStructureWithPieceAt
-
structureHasPieceAt
-
hasAnyStructureAt
-
getAllStructuresAt
-
checkStructurePresence
public StructureCheckResult checkStructurePresence(ChunkPos p_220474_, Structure p_220475_, StructurePlacement p_321768_, boolean p_220476_) -
addReference
-
registryAccess
-