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) |
StructureStart<?> |
getStructureStart(ChunkSectionPos pos,
StructureFeature<?> feature,
StructureHolder holder) |
Stream<? extends StructureStart<?>> |
getStructuresWithChildren(ChunkSectionPos pos,
StructureFeature<?> feature) |
StructureStart<?> |
method_28388(BlockPos blockPos,
boolean bool,
StructureFeature<?> structureFeature) |
StructureAccessor |
method_29951(ChunkRegion region) |
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 method_29951(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<?> method_28388(BlockPos blockPos, boolean bool, StructureFeature<?> structureFeature)