public class Template
extends java.lang.Object
修飾子とタイプ | クラスと説明 |
---|---|
static class |
Template.BlockInfo |
static class |
Template.EntityInfo |
コンストラクタと説明 |
---|
Template() |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addBlocksToWorld(IWorld worldIn,
BlockPos pos,
PlacementSettings placementIn)
This takes the data stored in this instance and puts them into the world.
|
boolean |
addBlocksToWorld(IWorld worldIn,
BlockPos pos,
PlacementSettings placementIn,
int flags)
Adds blocks and entities from this structure to the given world.
|
void |
addBlocksToWorldChunk(IWorld worldIn,
BlockPos pos,
PlacementSettings placementIn)
Add blocks and entities from this structure to the given world, restricting placement to within the chunk bounding
box.
|
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_) |
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) |
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_) |
static java.util.List<Template.BlockInfo> |
processBlockInfos(IWorld worldIn,
BlockPos offsetPos,
PlacementSettings placementSettingsIn,
java.util.List<Template.BlockInfo> blockInfos)
非推奨です。
|
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) |
void |
setAuthor(java.lang.String authorIn) |
void |
takeBlocksFromWorld(World worldIn,
BlockPos startPos,
BlockPos size,
boolean takeEntities,
Block toIgnore)
takes blocks from the world and puts the data them into this template
|
static BlockPos |
transformedBlockPos(PlacementSettings placementIn,
BlockPos pos) |
BlockPos |
transformedSize(Rotation rotationIn) |
static Vec3d |
transformedVec3d(PlacementSettings placementIn,
Vec3d pos) |
CompoundNBT |
writeToNBT(CompoundNBT nbt) |
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)
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)
public static BlockPos getTransformedPos(BlockPos targetPos, Mirror mirrorIn, Rotation rotationIn, BlockPos offset)
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_)
public CompoundNBT writeToNBT(CompoundNBT nbt)
public void read(CompoundNBT compound)