Package net.minecraft.world.gen
Class StructureAccessor
java.lang.Object
net.minecraft.world.gen.StructureAccessor
public class StructureAccessor extends Object
-
Field Summary
Fields Modifier and Type Field Description private GeneratorOptionsoptionsprivate WorldAccessworld -
Constructor Summary
Constructors Constructor Description StructureAccessor(WorldAccess world, GeneratorOptions options) -
Method Summary
Modifier and Type Method Description voidaddStructureReference(ChunkSectionPos pos, StructureFeature<?> feature, long reference, StructureHolder holder)StructureAccessorforRegion(ChunkRegion region)StructureStart<?>getStructureAt(BlockPos pos, boolean matchChildren, StructureFeature<?> feature)StructureStart<?>getStructureStart(ChunkSectionPos pos, StructureFeature<?> feature, StructureHolder holder)Stream<? extends StructureStart<?>>getStructuresWithChildren(ChunkSectionPos pos, StructureFeature<?> feature)voidsetStructureStart(ChunkSectionPos pos, StructureFeature<?> feature, StructureStart<?> structureStart, StructureHolder holder)booleanshouldGenerateStructures()
-
Field Details
-
world
-
options
-
-
Constructor Details
-
StructureAccessor
-
-
Method Details
-
forRegion
-
getStructuresWithChildren
public Stream<? extends StructureStart<?>> getStructuresWithChildren(ChunkSectionPos pos, StructureFeature<?> feature) -
getStructureStart
@Nullable public StructureStart<?> getStructureStart(ChunkSectionPos pos, StructureFeature<?> feature, StructureHolder holder) -
setStructureStart
public void setStructureStart(ChunkSectionPos pos, StructureFeature<?> feature, StructureStart<?> structureStart, StructureHolder holder) -
addStructureReference
public void addStructureReference(ChunkSectionPos pos, StructureFeature<?> feature, long reference, StructureHolder holder) -
shouldGenerateStructures
public boolean shouldGenerateStructures() -
getStructureAt
public StructureStart<?> getStructureAt(BlockPos pos, boolean matchChildren, StructureFeature<?> feature)
-