net.minecraft.world.level.levelgen.structure

public abstract class TemplateStructurePiece

extends StructurePiece

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

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
h
LOGGER
field_16586
LOGGER
protected final String
a
templateName
field_31664
templateIdString
protected StructureTemplate
b
template
field_15433
template
protected StructurePlaceSettings
c
placeSettings
field_15434
placementData
protected BlockPos
d
templatePosition
field_15432
pos

Constructor summary

ModifierConstructor
public (StructurePieceType type, int length, StructureTemplateManager structureTemplateManager, ResourceLocation id, String template, StructurePlaceSettings placementData, BlockPos pos)
public (StructurePieceType type, CompoundTag nbt, StructureTemplateManager structureTemplateManager, Function<ResourceLocation, StructurePlaceSettings> placementDataGetter)

Method summary

Modifier and TypeMethod
protected ResourceLocation
b()
makeTemplateLocation()
method_35470()
getId()
protected void
a(eod arg0, tq arg1)
addAdditionalSaveData(StructurePieceSerializationContext arg0, CompoundTag arg1)
method_14943(class_6625 arg0, class_2487 arg1)
writeNbt(StructureContext arg0, NbtCompound arg1)
public void
a(dhh arg0, dhf arg1, dyu arg2, azh arg3, enf arg4, dfp arg5, ji arg6)
postProcess(WorldGenLevel arg0, StructureManager arg1, ChunkGenerator arg2, RandomSource arg3, BoundingBox arg4, ChunkPos arg5, BlockPos arg6)
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
a(String arg0, ji arg1, dha arg2, azh arg3, enf arg4)
handleDataMarker(String arg0, BlockPos arg1, ServerLevelAccessor arg2, RandomSource arg3, BoundingBox arg4)
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
a(int arg0, int arg1, int arg2)
move(int arg0, int arg1, int arg2)
method_14922(int arg0, int arg1, int arg2)
translate(int arg0, int arg1, int arg2)
public Rotation
a()
getRotation()
method_16888()
getRotation()
public StructureTemplate
c()
template()
method_41624()
getTemplate()
public BlockPos
d()
templatePosition()
method_41625()
getPos()
public StructurePlaceSettings
e()
placeSettings()
method_41626()
getPlacementData()