public class StructureAccessor extends Object
Modifier and Type | Field and Description |
---|---|
private GeneratorOptions |
options |
private WorldAccess |
world |
Constructor and Description |
---|
StructureAccessor(WorldAccess world,
GeneratorOptions options) |
Modifier and Type | Method and 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() |
private final WorldAccess world
private final GeneratorOptions options
public StructureAccessor(WorldAccess world, GeneratorOptions options)
public StructureAccessor forRegion(ChunkRegion region)
public Stream<? extends StructureStart<?>> getStructuresWithChildren(ChunkSectionPos pos, StructureFeature<?> feature)
@Nullable public StructureStart<?> getStructureStart(ChunkSectionPos pos, StructureFeature<?> feature, StructureHolder holder)
public void setStructureStart(ChunkSectionPos pos, StructureFeature<?> feature, StructureStart<?> structureStart, StructureHolder holder)
public void addStructureReference(ChunkSectionPos pos, StructureFeature<?> feature, long reference, StructureHolder holder)
public boolean shouldGenerateStructures()
public StructureStart<?> getStructureAt(BlockPos pos, boolean matchChildren, StructureFeature<?> feature)