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 GeneratorOptions
options
private WorldAccess
world
-
Constructor Summary
Constructors Constructor Description StructureAccessor(WorldAccess world, GeneratorOptions options)
-
Method Summary
Modifier and Type Method Description void
addStructureReference(ChunkSectionPos pos, StructureFeature<?> feature, long reference, StructureHolder holder)
StructureAccessor
forRegion(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)
void
setStructureStart(ChunkSectionPos pos, StructureFeature<?> feature, StructureStart<?> structureStart, StructureHolder holder)
boolean
shouldGenerateStructures()
-
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)
-