public class Template
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
Template.BasicPalette |
static class |
Template.BlockInfo |
static class |
Template.EntityInfo |
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
author |
private java.util.List<java.util.List<Template.BlockInfo>> |
blocks |
private java.util.List<Template.EntityInfo> |
entities |
private BlockPos |
size |
Constructor and Description |
---|
Template() |
Modifier and Type | Method and Description |
---|---|
void |
addBlocksToWorld(IWorld worldIn,
BlockPos pos,
PlacementSettings placementIn) |
boolean |
addBlocksToWorld(IWorld worldIn,
BlockPos pos,
PlacementSettings placementIn,
int flags) |
void |
addBlocksToWorldChunk(IWorld worldIn,
BlockPos pos,
PlacementSettings placementIn) |
private void |
addEntitiesToWorld(IWorld worldIn,
BlockPos offsetPos,
Mirror mirrorIn,
Rotation rotationIn,
BlockPos centerOffset,
MutableBoundingBox boundsIn)
Deprecated.
|
private void |
addEntitiesToWorld(IWorld worldIn,
BlockPos offsetPos,
PlacementSettings placementIn,
Mirror mirrorIn,
Rotation rotationIn,
BlockPos centerOffset,
MutableBoundingBox boundsIn) |
BlockPos |
calculateConnectedPos(PlacementSettings placementIn,
BlockPos p_186262_2_,
PlacementSettings p_186262_3_,
BlockPos p_186262_4_) |
java.util.List<Template.BlockInfo> |
func_215381_a(BlockPos p_215381_1_,
PlacementSettings p_215381_2_,
Block p_215381_3_) |
private void |
func_215385_a(Rotation rotationIn,
int offsetFront,
int p_215385_3_,
MutableBoundingBox p_215385_4_,
Direction p_215385_5_,
Direction p_215385_6_) |
java.util.List<Template.BlockInfo> |
func_215386_a(BlockPos p_215386_1_,
PlacementSettings p_215386_2_,
Block p_215386_3_,
boolean p_215386_4_) |
static void |
func_222857_a(IWorld worldIn,
int p_222857_1_,
VoxelShapePart voxelShapePartIn,
int xIn,
int yIn,
int zIn) |
java.lang.String |
getAuthor() |
MutableBoundingBox |
getMutableBoundingBox(PlacementSettings p_215388_1_,
BlockPos p_215388_2_) |
BlockPos |
getSize() |
static BlockPos |
getTransformedPos(BlockPos targetPos,
Mirror mirrorIn,
Rotation rotationIn,
BlockPos offset) |
private static Vec3d |
getTransformedPos(Vec3d target,
Mirror mirrorIn,
Rotation rotationIn,
BlockPos centerOffset) |
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_) |
private static java.util.Optional<Entity> |
loadEntity(IWorld worldIn,
CompoundNBT nbt) |
static java.util.List<Template.BlockInfo> |
processBlockInfos(IWorld worldIn,
BlockPos offsetPos,
PlacementSettings placementSettingsIn,
java.util.List<Template.BlockInfo> blockInfos)
Deprecated.
|
static java.util.List<Template.BlockInfo> |
processBlockInfos(Template template,
IWorld worldIn,
BlockPos offsetPos,
PlacementSettings placementSettingsIn,
java.util.List<Template.BlockInfo> blockInfos) |
static java.util.List<Template.EntityInfo> |
processEntityInfos(Template template,
IWorld worldIn,
BlockPos offsetPos,
PlacementSettings placementSettingsIn,
java.util.List<Template.EntityInfo> blockInfos) |
void |
read(CompoundNBT compound) |
private void |
readPalletesAndBlocks(ListNBT palletesNBT,
ListNBT blocksNBT) |
void |
setAuthor(java.lang.String authorIn) |
void |
takeBlocksFromWorld(World worldIn,
BlockPos startPos,
BlockPos size,
boolean takeEntities,
Block toIgnore) |
private void |
takeEntitiesFromWorld(World worldIn,
BlockPos startPos,
BlockPos endPos) |
static BlockPos |
transformedBlockPos(PlacementSettings placementIn,
BlockPos pos) |
BlockPos |
transformedSize(Rotation rotationIn) |
static Vec3d |
transformedVec3d(PlacementSettings placementIn,
Vec3d pos) |
private ListNBT |
writeDoubles(double... values) |
private ListNBT |
writeInts(int... values) |
CompoundNBT |
writeToNBT(CompoundNBT nbt) |
private final java.util.List<java.util.List<Template.BlockInfo>> blocks
private final java.util.List<Template.EntityInfo> entities
private BlockPos size
private java.lang.String author
public BlockPos getSize()
public void setAuthor(java.lang.String authorIn)
public java.lang.String getAuthor()
public void takeBlocksFromWorld(World worldIn, BlockPos startPos, BlockPos size, boolean takeEntities, @Nullable Block toIgnore)
private void takeEntitiesFromWorld(World worldIn, BlockPos startPos, BlockPos endPos)
public java.util.List<Template.BlockInfo> func_215381_a(BlockPos p_215381_1_, PlacementSettings p_215381_2_, Block p_215381_3_)
public java.util.List<Template.BlockInfo> func_215386_a(BlockPos p_215386_1_, PlacementSettings p_215386_2_, Block p_215386_3_, boolean p_215386_4_)
public BlockPos calculateConnectedPos(PlacementSettings placementIn, BlockPos p_186262_2_, PlacementSettings p_186262_3_, BlockPos p_186262_4_)
public static BlockPos transformedBlockPos(PlacementSettings placementIn, BlockPos pos)
public static Vec3d transformedVec3d(PlacementSettings placementIn, Vec3d pos)
public void addBlocksToWorldChunk(IWorld worldIn, BlockPos pos, PlacementSettings placementIn)
public void addBlocksToWorld(IWorld worldIn, BlockPos pos, PlacementSettings placementIn)
public boolean addBlocksToWorld(IWorld worldIn, BlockPos pos, PlacementSettings placementIn, int flags)
public static void func_222857_a(IWorld worldIn, int p_222857_1_, VoxelShapePart voxelShapePartIn, int xIn, int yIn, int zIn)
@Deprecated public static java.util.List<Template.BlockInfo> processBlockInfos(IWorld worldIn, BlockPos offsetPos, PlacementSettings placementSettingsIn, java.util.List<Template.BlockInfo> blockInfos)
public static java.util.List<Template.BlockInfo> processBlockInfos(@Nullable Template template, IWorld worldIn, BlockPos offsetPos, PlacementSettings placementSettingsIn, java.util.List<Template.BlockInfo> blockInfos)
public static java.util.List<Template.EntityInfo> processEntityInfos(@Nullable Template template, IWorld worldIn, BlockPos offsetPos, PlacementSettings placementSettingsIn, java.util.List<Template.EntityInfo> blockInfos)
@Deprecated private void addEntitiesToWorld(IWorld worldIn, BlockPos offsetPos, Mirror mirrorIn, Rotation rotationIn, BlockPos centerOffset, @Nullable MutableBoundingBox boundsIn)
private void addEntitiesToWorld(IWorld worldIn, BlockPos offsetPos, PlacementSettings placementIn, Mirror mirrorIn, Rotation rotationIn, BlockPos centerOffset, @Nullable MutableBoundingBox boundsIn)
private static java.util.Optional<Entity> loadEntity(IWorld worldIn, CompoundNBT nbt)
public static BlockPos getTransformedPos(BlockPos targetPos, Mirror mirrorIn, Rotation rotationIn, BlockPos offset)
private static Vec3d getTransformedPos(Vec3d target, Mirror mirrorIn, Rotation rotationIn, BlockPos centerOffset)
public BlockPos getZeroPositionWithTransform(BlockPos p_189961_1_, Mirror p_189961_2_, Rotation p_189961_3_)
public static BlockPos getZeroPositionWithTransform(BlockPos p_191157_0_, Mirror p_191157_1_, Rotation p_191157_2_, int p_191157_3_, int p_191157_4_)
public MutableBoundingBox getMutableBoundingBox(PlacementSettings p_215388_1_, BlockPos p_215388_2_)
private void func_215385_a(Rotation rotationIn, int offsetFront, int p_215385_3_, MutableBoundingBox p_215385_4_, Direction p_215385_5_, Direction p_215385_6_)
public CompoundNBT writeToNBT(CompoundNBT nbt)
public void read(CompoundNBT compound)
private ListNBT writeInts(int... values)
private ListNBT writeDoubles(double... values)