public class TileEntityStructure extends TileEntity
Modifier and Type | Class and Description |
---|---|
static class |
TileEntityStructure.Mode |
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 TileEntityStructure.Mode |
mode |
private java.lang.String |
name |
private BlockPos |
position |
private boolean |
powered |
private Rotation |
rotation |
private long |
seed |
private boolean |
showAir |
private boolean |
showBoundingBox |
private BlockPos |
size |
blockType, INFINITE_EXTENT_AABB, pos, tileEntityInvalid, world
Constructor and Description |
---|
TileEntityStructure() |
addInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getCapability, getDistanceSq, getKey, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getWorld, handleUpdateTag, hasCapability, hasFastRenderer, hasWorld, invalidate, isInvalid, markDirty, mirror, onChunkUnload, onDataPacket, onLoad, onlyOpsCanSetNbt, receiveClientEvent, register, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, setWorldCreate, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validate
private java.lang.String name
private java.lang.String author
private java.lang.String metadata
private BlockPos position
private BlockPos size
private Mirror mirror
private Rotation rotation
private TileEntityStructure.Mode mode
private boolean ignoreEntities
private boolean powered
private boolean showAir
private boolean showBoundingBox
private float integrity
private long seed
public NBTTagCompound writeToNBT(NBTTagCompound compound)
writeToNBT
in class TileEntity
public void readFromNBT(NBTTagCompound compound)
readFromNBT
in class TileEntity
private void updateBlockState()
@Nullable public SPacketUpdateTileEntity getUpdatePacket()
getUpdatePacket
in class TileEntity
public NBTTagCompound getUpdateTag()
getUpdateTag
in class TileEntity
public boolean usedBy(EntityPlayer player)
public java.lang.String getName()
public void setName(java.lang.String nameIn)
public void createdBy(EntityLivingBase 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 void setRotation(Rotation rotationIn)
public void setMetadata(java.lang.String metadataIn)
public Rotation getRotation()
public java.lang.String getMetadata()
public TileEntityStructure.Mode getMode()
public void setMode(TileEntityStructure.Mode modeIn)
public void setIgnoresEntities(boolean ignoreEntitiesIn)
public void setIntegrity(float integrityIn)
public void setSeed(long seedIn)
public void nextMode()
public boolean ignoresEntities()
public float getIntegrity()
public long getSeed()
public boolean detectSize()
private java.util.List<TileEntityStructure> filterRelatedCornerBlocks(java.util.List<TileEntityStructure> p_184415_1_)
private java.util.List<TileEntityStructure> getNearbyCornerBlocks(BlockPos p_184418_1_, BlockPos p_184418_2_)
private StructureBoundingBox calculateEnclosingBoundingBox(BlockPos p_184416_1_, java.util.List<TileEntityStructure> p_184416_2_)
public void writeCoordinates(io.netty.buffer.ByteBuf buf)
public boolean save()
public boolean save(boolean writeToDisk)
public boolean load()
public boolean load(boolean requireMatchingSize)
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)
@Nullable public ITextComponent getDisplayName()
getDisplayName
in class TileEntity