类 StructureManager
java.lang.Object
net.minecraft.world.level.StructureManager
-
字段概要
字段 -
构造器概要
构造器构造器说明StructureManager
(LevelAccessor pLevel, WorldOptions pWorldOptions, StructureCheck pStructureCheck) -
方法概要
修饰符和类型方法说明void
addReference
(StructureStart pStructureStart) void
addReferenceForStructure
(SectionPos pSectionPos, Structure pStructure, long pReference, StructureAccess pStructureAccess) checkStructurePresence
(ChunkPos pChunkPos, Structure pStructure, boolean pSkipKnownStructures) void
fillStartsForStructure
(Structure pStructure, it.unimi.dsi.fastutil.longs.LongSet pStructureRefs, Consumer<StructureStart> pStartConsumer) forWorldGenRegion
(WorldGenRegion pRegion) getAllStructuresAt
(BlockPos pPos) getStartForStructure
(SectionPos pSectionPos, Structure pStructure, StructureAccess pStructureAccess) getStructureAt
(BlockPos pPos, Structure pStructure) getStructureWithPieceAt
(BlockPos pPos, ResourceKey<Structure> pStructureKey) getStructureWithPieceAt
(BlockPos pPos, TagKey<Structure> pStructureTag) getStructureWithPieceAt
(BlockPos pPos, Structure pStructure) boolean
hasAnyStructureAt
(BlockPos pPos) void
setStartForStructure
(SectionPos pSectionPos, Structure pStructure, StructureStart pStructureStart, StructureAccess pStructureAccess) boolean
startsForStructure
(SectionPos pSectionPos, Structure pStructure) startsForStructure
(ChunkPos pChunkPos, Predicate<Structure> pStructurePredicate) boolean
structureHasPieceAt
(BlockPos pPos, StructureStart pStructureStart)
-
字段详细资料
-
level
-
worldOptions
-
structureCheck
-
-
构造器详细资料
-
StructureManager
public StructureManager(LevelAccessor pLevel, WorldOptions pWorldOptions, StructureCheck pStructureCheck)
-
-
方法详细资料
-
forWorldGenRegion
-
startsForStructure
public List<StructureStart> startsForStructure(ChunkPos pChunkPos, Predicate<Structure> pStructurePredicate) -
startsForStructure
-
fillStartsForStructure
public void fillStartsForStructure(Structure pStructure, it.unimi.dsi.fastutil.longs.LongSet pStructureRefs, Consumer<StructureStart> pStartConsumer) -
getStartForStructure
@Nullable public StructureStart getStartForStructure(SectionPos pSectionPos, Structure pStructure, StructureAccess pStructureAccess) -
setStartForStructure
public void setStartForStructure(SectionPos pSectionPos, Structure pStructure, StructureStart pStructureStart, StructureAccess pStructureAccess) -
addReferenceForStructure
public void addReferenceForStructure(SectionPos pSectionPos, Structure pStructure, long pReference, StructureAccess pStructureAccess) -
shouldGenerateStructures
public boolean shouldGenerateStructures() -
getStructureAt
-
getStructureWithPieceAt
-
getStructureWithPieceAt
-
getStructureWithPieceAt
-
structureHasPieceAt
-
hasAnyStructureAt
-
getAllStructuresAt
-
checkStructurePresence
public StructureCheckResult checkStructurePresence(ChunkPos pChunkPos, Structure pStructure, boolean pSkipKnownStructures) -
addReference
-
registryAccess
-