net.minecraft.world.level.levelgen.structure.templatesystem

public class StructureTemplate

dot
net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate
net.minecraft.class_3499
net.minecraft.structure.StructureTemplate
net.minecraft.src.C_2634_
net.minecraft.world.level.levelgen.structure.templatesystem.DefinedStructure

Field summary

Modifier and TypeField
public static final String
a
PALETTE_TAG
field_31687
PALETTE_KEY
f_163789_
public static final String
b
PALETTE_LIST_TAG
field_31688
PALETTES_KEY
f_163790_
public static final String
c
ENTITIES_TAG
field_31689
ENTITIES_KEY
f_163791_
public static final String
d
BLOCKS_TAG
field_31690
BLOCKS_KEY
f_163792_
public static final String
e
BLOCK_TAG_POS
field_31691
BLOCKS_POS_KEY
f_163793_
public static final String
f
BLOCK_TAG_STATE
field_31692
BLOCKS_STATE_KEY
f_163794_
public static final String
g
BLOCK_TAG_NBT
field_31693
BLOCKS_NBT_KEY
f_163795_
public static final String
h
ENTITY_TAG_POS
field_31694
ENTITIES_POS_KEY
f_163796_
public static final String
i
ENTITY_TAG_BLOCKPOS
field_31695
ENTITIES_BLOCK_POS_KEY
f_163797_
public static final String
j
ENTITY_TAG_NBT
field_31696
ENTITIES_NBT_KEY
f_163798_
public static final String
k
SIZE_TAG
field_31697
SIZE_KEY
f_163799_
static final int
l
CHUNK_SIZE
field_31698
field_31698
f_163800_
private final List<StructureTemplate$Palette>
m
palettes
field_15586
blockInfoLists
f_74482_
private final List<StructureTemplate$StructureEntityInfo>
n
entityInfoList
field_15589
entities
f_74483_
private Vec3i
o
size
field_15587
size
f_74484_
private String
p
author
field_15588
author
f_74485_

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public Vec3i
a()
getSize()
method_15160()
getSize()
m_163801_()
public void
a(String arg0)
setAuthor(String arg0)
method_15161(String arg0)
setAuthor(String author)
m_74612_(String arg0)
public String
b()
getAuthor()
method_15181()
getAuthor()
m_74627_()
public void
a(cgx arg0, gt arg1, hs arg2, boolean arg3, cjt arg4)
fillFromWorld(Level arg0, BlockPos arg1, Vec3i arg2, boolean arg3, Block arg4)
method_15174(class_1937 arg0, class_2338 arg1, class_2382 arg2, boolean arg3, class_2248 arg4)
saveFromWorld(World world, BlockPos start, Vec3i dimensions, boolean includeEntities, Block ignoredBlock)
m_163802_(C_1596_ p_163804_, C_4675_ p_163805_, C_4713_ p_163806_, boolean p_163807_, C_1706_ arg4)
private static void
a(dot$c arg0, List<dot$c> arg1, List<dot$c> arg2, List<dot$c> arg3)
addToLists(StructureTemplate$StructureBlockInfo arg0, List<StructureTemplate$StructureBlockInfo> arg1, List<StructureTemplate$StructureBlockInfo> arg2, List<StructureTemplate$StructureBlockInfo> arg3)
method_28054(class_3499$class_3501 arg0, List<class_3499$class_3501> arg1, List<class_3499$class_3501> arg2, List<class_3499$class_3501> arg3)
categorize(StructureTemplate$StructureBlockInfo blockInfo, List<StructureTemplate$StructureBlockInfo> fullBlocks, List<StructureTemplate$StructureBlockInfo> blocksWithNbt, List<StructureTemplate$StructureBlockInfo> otherBlocks)
m_74573_(C_2638_ p_74574_, List<C_2638_> p_74575_, List<C_2638_> p_74576_, List<C_2638_> p_74577_)
private static List<StructureTemplate$StructureBlockInfo>
a(List<dot$c> arg0, List<dot$c> arg1, List<dot$c> arg2)
buildInfoList(List<StructureTemplate$StructureBlockInfo> arg0, List<StructureTemplate$StructureBlockInfo> arg1, List<StructureTemplate$StructureBlockInfo> arg2)
method_28055(List<class_3499$class_3501> arg0, List<class_3499$class_3501> arg1, List<class_3499$class_3501> arg2)
combineSorted(List<StructureTemplate$StructureBlockInfo> fullBlocks, List<StructureTemplate$StructureBlockInfo> blocksWithNbt, List<StructureTemplate$StructureBlockInfo> otherBlocks)
m_74614_(List<C_2638_> p_74615_, List<C_2638_> p_74616_, List<C_2638_> p_74617_)
private void
a(cgx arg0, gt arg1, gt arg2)
fillEntityList(Level arg0, BlockPos arg1, BlockPos arg2)
method_15164(class_1937 arg0, class_2338 arg1, class_2338 arg2)
addEntitiesFromWorld(World world, BlockPos firstCorner, BlockPos secondCorner)
m_74500_(C_1596_ p_74502_, C_4675_ p_74503_, C_4675_ arg2)
public List<StructureTemplate$StructureBlockInfo>
a(gt arg0, dop arg1, cjt arg2)
filterBlocks(BlockPos arg0, StructurePlaceSettings arg1, Block arg2)
method_16445(class_2338 arg0, class_3492 arg1, class_2248 arg2)
getInfosForBlock(BlockPos pos, StructurePlacementData placementData, Block block)
m_74603_(C_4675_ p_74605_, C_2628_ p_74606_, C_1706_ arg2)
public it.unimi.dsi.fastutil.objects.ObjectArrayList<StructureTemplate$StructureBlockInfo>
a(gt arg0, dop arg1, cjt arg2, boolean arg3)
filterBlocks(BlockPos arg0, StructurePlaceSettings arg1, Block arg2, boolean arg3)
method_15165(class_2338 arg0, class_3492 arg1, class_2248 arg2, boolean arg3)
getInfosForBlock(BlockPos pos, StructurePlacementData placementData, Block block, boolean transformed)
m_230335_(C_4675_ p_230337_, C_2628_ p_230338_, C_1706_ p_230339_, boolean arg3)
public BlockPos
a(dop arg0, gt arg1, dop arg2, gt arg3)
calculateConnectedPosition(StructurePlaceSettings arg0, BlockPos arg1, StructurePlaceSettings arg2, BlockPos arg3)
method_15180(class_3492 arg0, class_2338 arg1, class_3492 arg2, class_2338 arg3)
transformBox(StructurePlacementData placementData1, BlockPos pos1, StructurePlacementData placementData2, BlockPos pos2)
m_74566_(C_2628_ p_74568_, C_4675_ p_74569_, C_2628_ p_74570_, C_4675_ arg3)
public static BlockPos
a(dop arg0, gt arg1)
calculateRelativePosition(StructurePlaceSettings arg0, BlockPos arg1)
method_15171(class_3492 arg0, class_2338 arg1)
transform(StructurePlacementData placementData, BlockPos pos)
m_74563_(C_2628_ p_74564_, C_4675_ p_74565_)
public boolean
a(chm arg0, gt arg1, gt arg2, dop arg3, amn arg4, int arg5)
placeInWorld(ServerLevelAccessor arg0, BlockPos arg1, BlockPos arg2, StructurePlaceSettings arg3, RandomSource arg4, int arg5)
method_15172(class_5425 arg0, class_2338 arg1, class_2338 arg2, class_3492 arg3, class_5819 arg4, int arg5)
place(ServerWorldAccess world, BlockPos pos, BlockPos pivot, StructurePlacementData placementData, Random random, int flags)
m_230328_(C_1618_ p_230330_, C_4675_ p_230331_, C_4675_ p_230332_, C_2628_ p_230333_, C_212974_ p_230334_, int arg5)
public static void
a(cgy arg0, int arg1, dwz arg2, int arg3, int arg4, int arg5)
updateShapeAtEdge(LevelAccessor arg0, int arg1, DiscreteVoxelShape arg2, int arg3, int arg4, int arg5)
method_20532(class_1936 arg0, int arg1, class_251 arg2, int arg3, int arg4, int arg5)
updateCorner(WorldAccess world, int flags, VoxelSet set, int startX, int startY, int startZ)
m_74510_(C_1598_ p_74511_, int p_74512_, C_3055_ p_74513_, int p_74514_, int p_74515_, int p_74516_)
public static List<StructureTemplate$StructureBlockInfo>
a(cgy arg0, gt arg1, gt arg2, dop arg3, List<dot$c> arg4)
processBlockInfos(LevelAccessor arg0, BlockPos arg1, BlockPos arg2, StructurePlaceSettings arg3, List<StructureTemplate$StructureBlockInfo> arg4)
method_16446(class_1936 arg0, class_2338 arg1, class_2338 arg2, class_3492 arg3, List<class_3499$class_3501> arg4)
process(WorldAccess world, BlockPos pos, BlockPos pivot, StructurePlacementData placementData, List<StructureTemplate$StructureBlockInfo> infos)
m_74517_(C_1598_ p_74518_, C_4675_ p_74519_, C_4675_ p_74520_, C_2628_ p_74521_, List<C_2638_> p_74522_)
private void
a(chm arg0, gt arg1, coh arg2, cpw arg3, gt arg4, dkt arg5, boolean arg6)
placeEntities(ServerLevelAccessor arg0, BlockPos arg1, Mirror arg2, Rotation arg3, BlockPos arg4, BoundingBox arg5, boolean arg6)
method_15179(class_5425 arg0, class_2338 arg1, class_2415 arg2, class_2470 arg3, class_2338 arg4, class_3341 arg5, boolean arg6)
spawnEntities(ServerWorldAccess world, BlockPos pos, BlockMirror mirror, BlockRotation rotation, BlockPos pivot, BlockBox area, boolean initializeMobs)
m_74523_(C_1618_ p_74525_, C_4675_ p_74526_, C_1838_ p_74527_, C_1886_ p_74528_, C_4675_ p_74529_, C_2478_ p_74530_, boolean arg6)
private static Optional<Entity>
a(chm arg0, pj arg1)
createEntityIgnoreException(ServerLevelAccessor arg0, CompoundTag arg1)
method_17916(class_5425 arg0, class_2487 arg1)
getEntity(ServerWorldAccess world, NbtCompound nbt)
m_74543_(C_1618_ p_74544_, C_4917_ p_74545_)
public Vec3i
a(cpw arg0)
getSize(Rotation arg0)
method_15166(class_2470 arg0)
getRotatedSize(BlockRotation rotation)
m_163808_(C_1886_ arg0)
public static BlockPos
a(gt arg0, coh arg1, cpw arg2, gt arg3)
transform(BlockPos arg0, Mirror arg1, Rotation arg2, BlockPos arg3)
method_15168(class_2338 arg0, class_2415 arg1, class_2470 arg2, class_2338 arg3)
transformAround(BlockPos pos, BlockMirror mirror, BlockRotation rotation, BlockPos pivot)
m_74593_(C_4675_ p_74594_, C_1838_ p_74595_, C_1886_ p_74596_, C_4675_ p_74597_)
public static Vec3
a(dwq arg0, coh arg1, cpw arg2, gt arg3)
transform(Vec3 arg0, Mirror arg1, Rotation arg2, BlockPos arg3)
method_15176(class_243 arg0, class_2415 arg1, class_2470 arg2, class_2338 arg3)
transformAround(Vec3d point, BlockMirror mirror, BlockRotation rotation, BlockPos pivot)
m_74578_(C_3046_ p_74579_, C_1838_ p_74580_, C_1886_ p_74581_, C_4675_ p_74582_)
public BlockPos
a(gt arg0, coh arg1, cpw arg2)
getZeroPositionWithTransform(BlockPos arg0, Mirror arg1, Rotation arg2)
method_15167(class_2338 arg0, class_2415 arg1, class_2470 arg2)
offsetByTransformedSize(BlockPos pos, BlockMirror mirror, BlockRotation rotation)
m_74583_(C_4675_ p_74585_, C_1838_ p_74586_, C_1886_ arg2)
public static BlockPos
a(gt arg0, coh arg1, cpw arg2, int arg3, int arg4)
getZeroPositionWithTransform(BlockPos arg0, Mirror arg1, Rotation arg2, int arg3, int arg4)
method_15162(class_2338 arg0, class_2415 arg1, class_2470 arg2, int arg3, int arg4)
applyTransformedOffset(BlockPos pos, BlockMirror mirror, BlockRotation rotation, int offsetX, int offsetZ)
m_74587_(C_4675_ p_74588_, C_1838_ p_74589_, C_1886_ p_74590_, int p_74591_, int p_74592_)
public BoundingBox
b(dop arg0, gt arg1)
getBoundingBox(StructurePlaceSettings arg0, BlockPos arg1)
method_16187(class_3492 arg0, class_2338 arg1)
calculateBoundingBox(StructurePlacementData placementData, BlockPos pos)
m_74633_(C_2628_ p_74635_, C_4675_ arg1)
public BoundingBox
a(gt arg0, cpw arg1, gt arg2, coh arg3)
getBoundingBox(BlockPos arg0, Rotation arg1, BlockPos arg2, Mirror arg3)
method_27267(class_2338 arg0, class_2470 arg1, class_2338 arg2, class_2415 arg3)
calculateBoundingBox(BlockPos pos, BlockRotation rotation, BlockPos pivot, BlockMirror mirror)
m_74598_(C_4675_ p_74600_, C_1886_ p_74601_, C_4675_ p_74602_, C_1838_ arg3)
protected static BoundingBox
a(gt arg0, cpw arg1, gt arg2, coh arg3, hs arg4)
getBoundingBox(BlockPos arg0, Rotation arg1, BlockPos arg2, Mirror arg3, Vec3i arg4)
method_34400(class_2338 arg0, class_2470 arg1, class_2338 arg2, class_2415 arg3, class_2382 arg4)
createBox(BlockPos pos, BlockRotation rotation, BlockPos pivot, BlockMirror mirror, Vec3i dimensions)
m_163810_(C_4675_ p_163811_, C_1886_ p_163812_, C_4675_ p_163813_, C_1838_ p_163814_, C_4713_ p_163815_)
public CompoundTag
a(pj arg0)
save(CompoundTag arg0)
method_15175(class_2487 arg0)
writeNbt(NbtCompound nbt)
m_74618_(C_4917_ arg0)
public void
b(pj arg0)
load(CompoundTag arg0)
method_15183(class_2487 arg0)
readNbt(NbtCompound nbt)
m_74638_(C_4917_ arg0)
private void
a(pp arg0, pp arg1)
loadPalette(ListTag arg0, ListTag arg1)
method_15177(class_2499 arg0, class_2499 arg1)
loadPalettedBlockInfo(NbtList paletteNbt, NbtList blocksNbt)
m_74620_(C_4930_ p_74622_, C_4930_ arg1)
private ListTag
a(int... arg0)
newIntegerList(int... arg0)
method_15169(int... arg0)
createNbtIntList(int... ints)
m_74625_(int... arg0)
private ListTag
a(double... arg0)
newDoubleList(double... arg0)
method_15184(double... arg0)
createNbtDoubleList(double... doubles)
m_74623_(double... arg0)