net.minecraft.structure

public abstract class SimpleStructurePiece

extends StructurePiece

net.minecraft.world.level.levelgen.structure.TemplateStructurePiece
net.minecraft.world.level.levelgen.structure.TemplateStructurePiece
net.minecraft.class_3470
net.minecraft.structure.SimpleStructurePiece

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
LOGGER
field_16586
LOGGER
protected final String
templateName
templateName
field_31664
templateIdString
protected final StructureTemplate
template
template
field_15433
template
protected final StructurePlacementData
placeSettings
placeSettings
field_15434
placementData
protected BlockPos
templatePosition
templatePosition
field_15432
pos

Constructor summary

ModifierConstructor
public (StructurePieceType type, int length, StructureTemplateManager structureTemplateManager, Identifier id, String template, StructurePlacementData placementData, BlockPos pos)
public (StructurePieceType type, NbtCompound nbt, StructureTemplateManager structureTemplateManager, Function<Identifier, StructurePlacementData> placementDataGetter)

Method summary

Modifier and TypeMethod
protected Identifier
makeTemplateLocation()
makeTemplateLocation()
method_35470()
getId()
protected void
addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag)
addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag)
method_14943(class_6625 arg0, class_2487 arg1)
writeNbt(StructureContext arg0, NbtCompound arg1)
public void
postProcess(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox chunkBB, ChunkPos chunkPos, BlockPos referencePos)
postProcess(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox chunkBB, ChunkPos chunkPos, BlockPos referencePos)
method_14931(class_5281 arg0, class_5138 arg1, class_2794 arg2, class_5819 arg3, class_3341 arg4, class_1923 arg5, class_2338 arg6)
generate(StructureWorldAccess arg0, StructureAccessor arg1, ChunkGenerator arg2, Random arg3, BlockBox arg4, ChunkPos arg5, BlockPos arg6)
protected abstract void
handleDataMarker(String markerId, BlockPos position, ServerLevelAccessor level, RandomSource random, BoundingBox chunkBB)
handleDataMarker(String markerId, BlockPos position, ServerLevelAccessor level, RandomSource random, BoundingBox chunkBB)
method_15026(String arg0, class_2338 arg1, class_5425 arg2, class_5819 arg3, class_3341 arg4)
handleMetadata(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox)
public void
move(int dx, int dy, int dz)
move(int dx, int dy, int dz)
method_14922(int arg0, int arg1, int arg2)
translate(int arg0, int arg1, int arg2)
public BlockRotation
getRotation()
getRotation()
method_16888()
getRotation()
public StructureTemplate
template()
template()
method_41624()
getTemplate()
public BlockPos
templatePosition()
templatePosition()
method_41625()
getPos()
public StructurePlacementData
placeSettings()
placeSettings()
method_41626()
getPlacementData()