Class Template
- java.lang.Object
-
- net.minecraft.world.gen.feature.template.Template
-
public class Template extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
Template.BasicPalette
static class
Template.BlockInfo
static class
Template.EntityInfo
static class
Template.Palette
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
author
private java.util.List<Template.EntityInfo>
entityInfoList
private java.util.List<Template.Palette>
palettes
private BlockPos
size
-
Constructor Summary
Constructors Constructor Description Template()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private void
addEntitiesToWorld(IServerWorld p_237143_1_, BlockPos p_237143_2_, PlacementSettings placementIn)
private static void
addToLists(Template.BlockInfo p_237149_0_, java.util.List<Template.BlockInfo> p_237149_1_, java.util.List<Template.BlockInfo> p_237149_2_, java.util.List<Template.BlockInfo> p_237149_3_)
private static java.util.List<Template.BlockInfo>
buildInfoList(java.util.List<Template.BlockInfo> p_237151_0_, java.util.List<Template.BlockInfo> p_237151_1_, java.util.List<Template.BlockInfo> p_237151_2_)
BlockPos
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_)
private static java.util.Optional<Entity>
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_)
java.util.List<Template.BlockInfo>
filterBlocks(BlockPos p_215381_1_, PlacementSettings p_215381_2_, Block p_215381_3_)
java.util.List<Template.BlockInfo>
filterBlocks(BlockPos p_215386_1_, PlacementSettings p_215386_2_, Block p_215386_3_, boolean p_215386_4_)
java.lang.String
getAuthor()
MutableBoundingBox
getBoundingBox(BlockPos p_237150_1_, Rotation p_237150_2_, BlockPos p_237150_3_, Mirror p_237150_4_)
MutableBoundingBox
getBoundingBox(PlacementSettings p_215388_1_, BlockPos p_215388_2_)
BlockPos
getSize()
BlockPos
getSize(Rotation p_186257_1_)
BlockPos
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_, java.util.Random p_237146_5_, int p_237146_6_)
void
placeInWorld(IServerWorld p_237152_1_, BlockPos p_237152_2_, PlacementSettings p_237152_3_, java.util.Random p_237152_4_)
void
placeInWorldChunk(IServerWorld p_237144_1_, BlockPos p_237144_2_, PlacementSettings p_237144_3_, java.util.Random p_237144_4_)
static java.util.List<Template.BlockInfo>
processBlockInfos(IWorld p_237145_0_, BlockPos p_237145_1_, BlockPos p_237145_2_, PlacementSettings p_237145_3_, java.util.List<Template.BlockInfo> p_237145_4_)
Deprecated.static java.util.List<Template.BlockInfo>
processBlockInfos(IWorld p_237145_0_, BlockPos p_237145_1_, BlockPos p_237145_2_, PlacementSettings p_237145_3_, java.util.List<Template.BlockInfo> p_237145_4_, Template template)
static java.util.List<Template.EntityInfo>
processEntityInfos(Template template, IWorld p_215387_0_, BlockPos p_215387_1_, PlacementSettings p_215387_2_, java.util.List<Template.EntityInfo> p_215387_3_)
CompoundNBT
save(CompoundNBT p_189552_1_)
void
setAuthor(java.lang.String p_186252_1_)
static BlockPos
transform(BlockPos p_207669_0_, Mirror p_207669_1_, Rotation p_207669_2_, BlockPos p_207669_3_)
static Vector3d
transform(Vector3d p_207667_0_, Mirror p_207667_1_, Rotation p_207667_2_, BlockPos p_207667_3_)
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 Detail
-
palettes
private final java.util.List<Template.Palette> palettes
-
entityInfoList
private final java.util.List<Template.EntityInfo> entityInfoList
-
size
private BlockPos size
-
author
private java.lang.String author
-
-
Method Detail
-
getSize
public BlockPos getSize()
-
setAuthor
public void setAuthor(java.lang.String p_186252_1_)
-
getAuthor
public java.lang.String getAuthor()
-
fillFromWorld
public void fillFromWorld(World p_186254_1_, BlockPos p_186254_2_, BlockPos p_186254_3_, boolean p_186254_4_, @Nullable Block p_186254_5_)
-
addToLists
private static void addToLists(Template.BlockInfo p_237149_0_, java.util.List<Template.BlockInfo> p_237149_1_, java.util.List<Template.BlockInfo> p_237149_2_, java.util.List<Template.BlockInfo> p_237149_3_)
-
buildInfoList
private static java.util.List<Template.BlockInfo> buildInfoList(java.util.List<Template.BlockInfo> p_237151_0_, java.util.List<Template.BlockInfo> p_237151_1_, java.util.List<Template.BlockInfo> p_237151_2_)
-
fillEntityList
private void fillEntityList(World p_186255_1_, BlockPos p_186255_2_, BlockPos p_186255_3_)
-
filterBlocks
public java.util.List<Template.BlockInfo> filterBlocks(BlockPos p_215381_1_, PlacementSettings p_215381_2_, Block p_215381_3_)
-
filterBlocks
public java.util.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
public static Vector3d transformedVec3d(PlacementSettings placementIn, Vector3d pos)
-
placeInWorldChunk
public void placeInWorldChunk(IServerWorld p_237144_1_, BlockPos p_237144_2_, PlacementSettings p_237144_3_, java.util.Random p_237144_4_)
-
placeInWorld
public void placeInWorld(IServerWorld p_237152_1_, BlockPos p_237152_2_, PlacementSettings p_237152_3_, java.util.Random p_237152_4_)
-
placeInWorld
public boolean placeInWorld(IServerWorld p_237146_1_, BlockPos p_237146_2_, BlockPos p_237146_3_, PlacementSettings p_237146_4_, java.util.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 java.util.List<Template.BlockInfo> processBlockInfos(IWorld p_237145_0_, BlockPos p_237145_1_, BlockPos p_237145_2_, PlacementSettings p_237145_3_, java.util.List<Template.BlockInfo> p_237145_4_)
Deprecated.
-
processBlockInfos
public static java.util.List<Template.BlockInfo> processBlockInfos(IWorld p_237145_0_, BlockPos p_237145_1_, BlockPos p_237145_2_, PlacementSettings p_237145_3_, java.util.List<Template.BlockInfo> p_237145_4_, @Nullable Template template)
-
processEntityInfos
public static java.util.List<Template.EntityInfo> processEntityInfos(@Nullable Template template, IWorld p_215387_0_, BlockPos p_215387_1_, PlacementSettings p_215387_2_, java.util.List<Template.EntityInfo> p_215387_3_)
-
addEntitiesToWorld
private void addEntitiesToWorld(IServerWorld p_237143_1_, BlockPos p_237143_2_, PlacementSettings placementIn)
-
createEntityIgnoreException
private static java.util.Optional<Entity> createEntityIgnoreException(IServerWorld p_215382_0_, CompoundNBT p_215382_1_)
-
transform
public static BlockPos transform(BlockPos p_207669_0_, Mirror p_207669_1_, Rotation p_207669_2_, BlockPos p_207669_3_)
-
transform
public static Vector3d transform(Vector3d p_207667_0_, Mirror p_207667_1_, Rotation p_207667_2_, BlockPos p_207667_3_)
-
getZeroPositionWithTransform
public BlockPos getZeroPositionWithTransform(BlockPos p_189961_1_, Mirror p_189961_2_, Rotation p_189961_3_)
-
getZeroPositionWithTransform
public static BlockPos getZeroPositionWithTransform(BlockPos p_191157_0_, Mirror p_191157_1_, Rotation p_191157_2_, int p_191157_3_, int p_191157_4_)
-
getBoundingBox
public MutableBoundingBox getBoundingBox(PlacementSettings p_215388_1_, BlockPos p_215388_2_)
-
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
public CompoundNBT save(CompoundNBT p_189552_1_)
-
load
public void load(CompoundNBT p_186256_1_)
-
newIntegerList
private ListNBT newIntegerList(int... p_186267_1_)
-
newDoubleList
private ListNBT newDoubleList(double... p_186264_1_)
-
-