public class StructureBlockTileEntity extends TileEntity
Modifier and Type | Class and Description |
---|---|
static class |
StructureBlockTileEntity.UpdateCommand |
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
author |
private boolean |
ignoreEntities |
private float |
integrity |
private java.lang.String |
metaData |
private Mirror |
mirror |
private StructureMode |
mode |
private boolean |
powered |
private Rotation |
rotation |
private long |
seed |
private boolean |
showAir |
private boolean |
showBoundingBox |
private ResourceLocation |
structureName |
private BlockPos |
structurePos |
private BlockPos |
structureSize |
level, remove, worldPosition
INFINITE_EXTENT_AABB
Constructor and Description |
---|
StructureBlockTileEntity() |
Modifier and Type | Method and Description |
---|---|
private MutableBoundingBox |
calculateEnclosingBoundingBox(BlockPos p_184416_1_,
java.util.List<StructureBlockTileEntity> p_184416_2_) |
void |
createdBy(LivingEntity p_189720_1_) |
private static java.util.Random |
createRandom(long p_214074_0_) |
boolean |
detectSize() |
private java.util.List<StructureBlockTileEntity> |
filterRelatedCornerBlocks(java.util.List<StructureBlockTileEntity> p_184415_1_) |
float |
getIntegrity() |
java.lang.String |
getMetaData() |
Mirror |
getMirror() |
StructureMode |
getMode() |
private java.util.List<StructureBlockTileEntity> |
getNearbyCornerBlocks(BlockPos p_184418_1_,
BlockPos p_184418_2_) |
Rotation |
getRotation() |
long |
getSeed() |
boolean |
getShowAir() |
boolean |
getShowBoundingBox() |
java.lang.String |
getStructureName() |
java.lang.String |
getStructurePath() |
BlockPos |
getStructurePos() |
BlockPos |
getStructureSize() |
SUpdateTileEntityPacket |
getUpdatePacket() |
CompoundNBT |
getUpdateTag() |
double |
getViewDistance() |
boolean |
hasStructureName() |
boolean |
isIgnoreEntities() |
boolean |
isPowered() |
boolean |
isStructureLoadable() |
void |
load(BlockState p_230337_1_,
CompoundNBT p_230337_2_) |
boolean |
loadStructure(ServerWorld p_242687_1_) |
boolean |
loadStructure(ServerWorld p_242688_1_,
boolean p_242688_2_) |
boolean |
loadStructure(ServerWorld p_242689_1_,
boolean p_242689_2_,
Template p_242689_3_) |
void |
nextMode() |
CompoundNBT |
save(CompoundNBT p_189515_1_) |
boolean |
saveStructure() |
boolean |
saveStructure(boolean p_189712_1_) |
void |
setIgnoreEntities(boolean p_184406_1_) |
void |
setIntegrity(float p_189718_1_) |
void |
setMetaData(java.lang.String p_184410_1_) |
void |
setMirror(Mirror p_184411_1_) |
void |
setMode(StructureMode p_184405_1_) |
void |
setPowered(boolean p_189723_1_) |
void |
setRotation(Rotation p_184408_1_) |
void |
setSeed(long p_189725_1_) |
void |
setShowAir(boolean p_189703_1_) |
void |
setShowBoundingBox(boolean p_189710_1_) |
void |
setStructureName(ResourceLocation p_210163_1_) |
void |
setStructureName(java.lang.String p_184404_1_) |
void |
setStructurePos(BlockPos p_184414_1_) |
void |
setStructureSize(BlockPos p_184409_1_) |
void |
unloadStructure() |
private void |
updateBlockState() |
boolean |
usedBy(PlayerEntity p_189701_1_) |
clearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setChanged, setLevelAndPosition, setPosition, setRemoved, triggerEvent
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deserializeNBT, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
getCapability, getCapability
private ResourceLocation structureName
private java.lang.String author
private java.lang.String metaData
private BlockPos structurePos
private BlockPos structureSize
private Mirror mirror
private Rotation rotation
private StructureMode mode
private boolean ignoreEntities
private boolean powered
private boolean showAir
private boolean showBoundingBox
private float integrity
private long seed
public double getViewDistance()
getViewDistance
in class TileEntity
public CompoundNBT save(CompoundNBT p_189515_1_)
save
in class TileEntity
public void load(BlockState p_230337_1_, CompoundNBT p_230337_2_)
load
in class TileEntity
private void updateBlockState()
@Nullable public SUpdateTileEntityPacket getUpdatePacket()
getUpdatePacket
in class TileEntity
public CompoundNBT getUpdateTag()
getUpdateTag
in class TileEntity
public boolean usedBy(PlayerEntity p_189701_1_)
public java.lang.String getStructureName()
public java.lang.String getStructurePath()
public boolean hasStructureName()
public void setStructureName(@Nullable java.lang.String p_184404_1_)
public void setStructureName(@Nullable ResourceLocation p_210163_1_)
public void createdBy(LivingEntity p_189720_1_)
public BlockPos getStructurePos()
public void setStructurePos(BlockPos p_184414_1_)
public BlockPos getStructureSize()
public void setStructureSize(BlockPos p_184409_1_)
public Mirror getMirror()
public void setMirror(Mirror p_184411_1_)
public Rotation getRotation()
public void setRotation(Rotation p_184408_1_)
public java.lang.String getMetaData()
public void setMetaData(java.lang.String p_184410_1_)
public StructureMode getMode()
public void setMode(StructureMode p_184405_1_)
public void nextMode()
public boolean isIgnoreEntities()
public void setIgnoreEntities(boolean p_184406_1_)
public float getIntegrity()
public void setIntegrity(float p_189718_1_)
public long getSeed()
public void setSeed(long p_189725_1_)
public boolean detectSize()
private java.util.List<StructureBlockTileEntity> filterRelatedCornerBlocks(java.util.List<StructureBlockTileEntity> p_184415_1_)
private java.util.List<StructureBlockTileEntity> getNearbyCornerBlocks(BlockPos p_184418_1_, BlockPos p_184418_2_)
private MutableBoundingBox calculateEnclosingBoundingBox(BlockPos p_184416_1_, java.util.List<StructureBlockTileEntity> p_184416_2_)
public boolean saveStructure()
public boolean saveStructure(boolean p_189712_1_)
public boolean loadStructure(ServerWorld p_242687_1_)
private static java.util.Random createRandom(long p_214074_0_)
public boolean loadStructure(ServerWorld p_242688_1_, boolean p_242688_2_)
public boolean loadStructure(ServerWorld p_242689_1_, boolean p_242689_2_, Template p_242689_3_)
public void unloadStructure()
public boolean isStructureLoadable()
public boolean isPowered()
public void setPowered(boolean p_189723_1_)
public boolean getShowAir()
public void setShowAir(boolean p_189703_1_)
public boolean getShowBoundingBox()
public void setShowBoundingBox(boolean p_189710_1_)