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 ResourceLocation |
name |
private BlockPos |
position |
private boolean |
powered |
private Rotation |
rotation |
private long |
seed |
private boolean |
showAir |
private boolean |
showBoundingBox |
private BlockPos |
size |
pos, removed, world
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_) |
boolean |
detectSize() |
private java.util.List<StructureBlockTileEntity> |
filterRelatedCornerBlocks(java.util.List<StructureBlockTileEntity> p_184415_1_) |
private static java.util.Random |
func_214074_b(long p_214074_0_) |
java.lang.String |
func_227014_f_() |
float |
getIntegrity() |
java.lang.String |
getMetadata() |
Mirror |
getMirror() |
StructureMode |
getMode() |
java.lang.String |
getName() |
private java.util.List<StructureBlockTileEntity> |
getNearbyCornerBlocks(BlockPos p_184418_1_,
BlockPos p_184418_2_) |
BlockPos |
getPosition() |
Rotation |
getRotation() |
long |
getSeed() |
BlockPos |
getStructureSize() |
SUpdateTileEntityPacket |
getUpdatePacket() |
CompoundNBT |
getUpdateTag() |
boolean |
hasName() |
boolean |
ignoresEntities() |
boolean |
isPowered() |
boolean |
isStructureLoadable() |
boolean |
load() |
boolean |
load(boolean requireMatchingSize) |
boolean |
load(boolean requireMatchingSize,
Template templateIn) |
void |
nextMode() |
void |
read(CompoundNBT compound) |
boolean |
save() |
boolean |
save(boolean writeToDisk) |
void |
setIgnoresEntities(boolean ignoreEntitiesIn) |
void |
setIntegrity(float integrityIn) |
void |
setMetadata(java.lang.String metadataIn) |
void |
setMirror(Mirror mirrorIn) |
void |
setMode(StructureMode modeIn) |
void |
setName(ResourceLocation p_210163_1_) |
void |
setName(java.lang.String nameIn) |
void |
setPosition(BlockPos posIn) |
void |
setPowered(boolean poweredIn) |
void |
setRotation(Rotation rotationIn) |
void |
setSeed(long seedIn) |
void |
setShowAir(boolean showAirIn) |
void |
setShowBoundingBox(boolean showBoundingBoxIn) |
void |
setSize(BlockPos sizeIn) |
boolean |
showsAir() |
boolean |
showsBoundingBox() |
void |
unloadStructure() |
private void |
updateBlockState() |
boolean |
usedBy(PlayerEntity player) |
CompoundNBT |
write(CompoundNBT compound) |
addInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, receiveClientEvent, remove, rotate, setPos, setWorldAndPos, updateContainingBlockInfo, validate, warnInvalidBlock
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
getCapability, getCapability
private ResourceLocation name
private java.lang.String author
private java.lang.String metadata
private BlockPos position
private BlockPos size
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 CompoundNBT write(CompoundNBT compound)
write
in class TileEntity
public void read(CompoundNBT compound)
read
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 player)
public java.lang.String getName()
public java.lang.String func_227014_f_()
public boolean hasName()
public void setName(@Nullable java.lang.String nameIn)
public void setName(@Nullable ResourceLocation p_210163_1_)
public void createdBy(LivingEntity p_189720_1_)
public BlockPos getPosition()
public void setPosition(BlockPos posIn)
public BlockPos getStructureSize()
public void setSize(BlockPos sizeIn)
public Mirror getMirror()
public void setMirror(Mirror mirrorIn)
public Rotation getRotation()
public void setRotation(Rotation rotationIn)
public java.lang.String getMetadata()
public void setMetadata(java.lang.String metadataIn)
public StructureMode getMode()
public void setMode(StructureMode modeIn)
public void nextMode()
public boolean ignoresEntities()
public void setIgnoresEntities(boolean ignoreEntitiesIn)
public float getIntegrity()
public void setIntegrity(float integrityIn)
public long getSeed()
public void setSeed(long seedIn)
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 save()
public boolean save(boolean writeToDisk)
public boolean load()
private static java.util.Random func_214074_b(long p_214074_0_)
public boolean load(boolean requireMatchingSize)
public boolean load(boolean requireMatchingSize, Template templateIn)
public void unloadStructure()
public boolean isStructureLoadable()
public boolean isPowered()
public void setPowered(boolean poweredIn)
public boolean showsAir()
public void setShowAir(boolean showAirIn)
public boolean showsBoundingBox()
public void setShowBoundingBox(boolean showBoundingBoxIn)