Class Template
java.lang.Object
net.minecraft.world.gen.feature.template.Template
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
static class
static class
static final class
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
private final List<Template.EntityInfo>
private final List<Template.Palette>
private BlockPos
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
addEntitiesToWorld
(IServerWorld p_237143_1_, BlockPos p_237143_2_, PlacementSettings placementIn) private static void
addToLists
(Template.BlockInfo p_237149_0_, List<Template.BlockInfo> p_237149_1_, List<Template.BlockInfo> p_237149_2_, List<Template.BlockInfo> p_237149_3_) private static List<Template.BlockInfo>
buildInfoList
(List<Template.BlockInfo> p_237151_0_, List<Template.BlockInfo> p_237151_1_, List<Template.BlockInfo> p_237151_2_) calculateConnectedPosition
(PlacementSettings p_186262_1_, BlockPos p_186262_2_, PlacementSettings p_186262_3_, BlockPos p_186262_4_) static BlockPos
calculateRelativePosition
(PlacementSettings p_186266_0_, BlockPos p_186266_1_) createEntityIgnoreException
(IServerWorld p_215382_0_, CompoundNBT p_215382_1_) private void
fillEntityList
(World p_186255_1_, BlockPos p_186255_2_, BlockPos p_186255_3_) void
fillFromWorld
(World p_186254_1_, BlockPos p_186254_2_, BlockPos p_186254_3_, boolean p_186254_4_, Block p_186254_5_) filterBlocks
(BlockPos p_215381_1_, PlacementSettings p_215381_2_, Block p_215381_3_) filterBlocks
(BlockPos p_215386_1_, PlacementSettings p_215386_2_, Block p_215386_3_, boolean p_215386_4_) getBoundingBox
(BlockPos p_237150_1_, Rotation p_237150_2_, BlockPos p_237150_3_, Mirror p_237150_4_) getBoundingBox
(PlacementSettings p_215388_1_, BlockPos p_215388_2_) getSize()
getZeroPositionWithTransform
(BlockPos p_189961_1_, Mirror p_189961_2_, Rotation p_189961_3_) static BlockPos
getZeroPositionWithTransform
(BlockPos p_191157_0_, Mirror p_191157_1_, Rotation p_191157_2_, int p_191157_3_, int p_191157_4_) void
load
(CompoundNBT p_186256_1_) private void
loadPalette
(ListNBT p_204768_1_, ListNBT p_204768_2_) private void
mirrorAABB
(Rotation p_215385_1_, int p_215385_2_, int p_215385_3_, MutableBoundingBox p_215385_4_, Direction p_215385_5_, Direction p_215385_6_) private ListNBT
newDoubleList
(double... p_186264_1_) private ListNBT
newIntegerList
(int... p_186267_1_) boolean
placeInWorld
(IServerWorld p_237146_1_, BlockPos p_237146_2_, BlockPos p_237146_3_, PlacementSettings p_237146_4_, Random p_237146_5_, int p_237146_6_) void
placeInWorld
(IServerWorld p_237152_1_, BlockPos p_237152_2_, PlacementSettings p_237152_3_, Random p_237152_4_) void
placeInWorldChunk
(IServerWorld p_237144_1_, BlockPos p_237144_2_, PlacementSettings p_237144_3_, Random p_237144_4_) static List<Template.BlockInfo>
processBlockInfos
(IWorld p_237145_0_, BlockPos p_237145_1_, BlockPos p_237145_2_, PlacementSettings p_237145_3_, List<Template.BlockInfo> p_237145_4_) Deprecated.static List<Template.BlockInfo>
processBlockInfos
(IWorld p_237145_0_, BlockPos p_237145_1_, BlockPos p_237145_2_, PlacementSettings p_237145_3_, List<Template.BlockInfo> p_237145_4_, Template template) static List<Template.EntityInfo>
processEntityInfos
(Template template, IWorld p_215387_0_, BlockPos p_215387_1_, PlacementSettings p_215387_2_, List<Template.EntityInfo> p_215387_3_) save
(CompoundNBT p_189552_1_) void
static BlockPos
static Vector3d
static Vector3d
transformedVec3d
(PlacementSettings placementIn, Vector3d pos) static void
updateShapeAtEdge
(IWorld p_222857_0_, int p_222857_1_, VoxelShapePart p_222857_2_, int p_222857_3_, int p_222857_4_, int p_222857_5_)
-
Field Details
-
palettes
-
entityInfoList
-
size
-
author
-
-
Constructor Details
-
Template
public Template()
-
-
Method Details
-
getSize
-
setAuthor
-
getAuthor
-
fillFromWorld
-
addToLists
private static void addToLists(Template.BlockInfo p_237149_0_, List<Template.BlockInfo> p_237149_1_, List<Template.BlockInfo> p_237149_2_, List<Template.BlockInfo> p_237149_3_) -
buildInfoList
private static List<Template.BlockInfo> buildInfoList(List<Template.BlockInfo> p_237151_0_, List<Template.BlockInfo> p_237151_1_, List<Template.BlockInfo> p_237151_2_) -
fillEntityList
-
filterBlocks
public List<Template.BlockInfo> filterBlocks(BlockPos p_215381_1_, PlacementSettings p_215381_2_, Block p_215381_3_) -
filterBlocks
public List<Template.BlockInfo> filterBlocks(BlockPos p_215386_1_, PlacementSettings p_215386_2_, Block p_215386_3_, boolean p_215386_4_) -
calculateConnectedPosition
public BlockPos calculateConnectedPosition(PlacementSettings p_186262_1_, BlockPos p_186262_2_, PlacementSettings p_186262_3_, BlockPos p_186262_4_) -
calculateRelativePosition
public static BlockPos calculateRelativePosition(PlacementSettings p_186266_0_, BlockPos p_186266_1_) -
transformedVec3d
-
placeInWorldChunk
public void placeInWorldChunk(IServerWorld p_237144_1_, BlockPos p_237144_2_, PlacementSettings p_237144_3_, Random p_237144_4_) -
placeInWorld
public void placeInWorld(IServerWorld p_237152_1_, BlockPos p_237152_2_, PlacementSettings p_237152_3_, Random p_237152_4_) -
placeInWorld
public boolean placeInWorld(IServerWorld p_237146_1_, BlockPos p_237146_2_, BlockPos p_237146_3_, PlacementSettings p_237146_4_, Random p_237146_5_, int p_237146_6_) -
updateShapeAtEdge
public static void updateShapeAtEdge(IWorld p_222857_0_, int p_222857_1_, VoxelShapePart p_222857_2_, int p_222857_3_, int p_222857_4_, int p_222857_5_) -
processBlockInfos
@Deprecated public static List<Template.BlockInfo> processBlockInfos(IWorld p_237145_0_, BlockPos p_237145_1_, BlockPos p_237145_2_, PlacementSettings p_237145_3_, List<Template.BlockInfo> p_237145_4_) Deprecated. -
processBlockInfos
public static List<Template.BlockInfo> processBlockInfos(IWorld p_237145_0_, BlockPos p_237145_1_, BlockPos p_237145_2_, PlacementSettings p_237145_3_, List<Template.BlockInfo> p_237145_4_, @Nullable Template template) -
processEntityInfos
public static List<Template.EntityInfo> processEntityInfos(@Nullable Template template, IWorld p_215387_0_, BlockPos p_215387_1_, PlacementSettings p_215387_2_, List<Template.EntityInfo> p_215387_3_) -
addEntitiesToWorld
private void addEntitiesToWorld(IServerWorld p_237143_1_, BlockPos p_237143_2_, PlacementSettings placementIn) -
createEntityIgnoreException
private static Optional<Entity> createEntityIgnoreException(IServerWorld p_215382_0_, CompoundNBT p_215382_1_) -
getSize
-
transform
-
transform
-
getZeroPositionWithTransform
-
getZeroPositionWithTransform
-
getBoundingBox
-
getBoundingBox
public MutableBoundingBox getBoundingBox(BlockPos p_237150_1_, Rotation p_237150_2_, BlockPos p_237150_3_, Mirror p_237150_4_) -
mirrorAABB
private void mirrorAABB(Rotation p_215385_1_, int p_215385_2_, int p_215385_3_, MutableBoundingBox p_215385_4_, Direction p_215385_5_, Direction p_215385_6_) -
save
-
load
-
loadPalette
-
newIntegerList
-
newDoubleList
-