public class TileEntityStructure extends TileEntity
Modifier and Type | Class and Description |
---|---|
static class |
TileEntityStructure.Mode |
blockType, INFINITE_EXTENT_AABB, pos, tileEntityInvalid, world
Constructor and Description |
---|
TileEntityStructure() |
Modifier and Type | Method and Description |
---|---|
void |
createdBy(EntityLivingBase p_189720_1_) |
boolean |
detectSize() |
ITextComponent |
getDisplayName()
Get the formatted ChatComponent that will be used for the sender's username in chat
|
float |
getIntegrity() |
java.lang.String |
getMetadata() |
Mirror |
getMirror() |
TileEntityStructure.Mode |
getMode() |
java.lang.String |
getName() |
BlockPos |
getPosition() |
Rotation |
getRotation() |
long |
getSeed() |
BlockPos |
getStructureSize() |
SPacketUpdateTileEntity |
getUpdatePacket() |
NBTTagCompound |
getUpdateTag() |
boolean |
ignoresEntities() |
boolean |
isPowered() |
boolean |
isStructureLoadable() |
boolean |
load()
Loads the given template, both into this structure block and into the world, aborting if the size of the template
does not match the size in this structure block.
|
boolean |
load(boolean requireMatchingSize)
Loads the given template, both into this structure block and into the world.
|
void |
nextMode() |
void |
readFromNBT(NBTTagCompound compound) |
boolean |
save()
Saves the template, writing it to disk.
|
boolean |
save(boolean writeToDisk)
Saves the template, either updating the local version or writing it to disk.
|
void |
setIgnoresEntities(boolean ignoreEntitiesIn) |
void |
setIntegrity(float integrityIn) |
void |
setMetadata(java.lang.String metadataIn) |
void |
setMirror(Mirror mirrorIn) |
void |
setMode(TileEntityStructure.Mode modeIn) |
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() |
boolean |
usedBy(EntityPlayer player) |
void |
writeCoordinates(ByteBuf buf) |
NBTTagCompound |
writeToNBT(NBTTagCompound compound) |
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
public NBTTagCompound writeToNBT(NBTTagCompound compound)
writeToNBT
in class TileEntity
public void readFromNBT(NBTTagCompound compound)
readFromNBT
in class TileEntity
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()
public void writeCoordinates(ByteBuf buf)
public boolean save()
public boolean save(boolean writeToDisk)
writeToDisk
- If true, TemplateManager.writeTemplate(net.minecraft.server.MinecraftServer, net.minecraft.util.ResourceLocation)
will be called with the template, and its
return value will dictate the return value of this method. If false, the template will be updated but not written
to disk.public boolean load()
public boolean load(boolean requireMatchingSize)
requireMatchingSize
- If true, and the size of the loaded template does not match the size in this structure
block, the structure will not be loaded into the world and false will be returned. Regardless of the value of
this parameter, the size in the structure block will be updated after calling this method.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)
public ITextComponent getDisplayName()
getDisplayName
in class TileEntity