public class TileEntityAphorismTile extends TileEntityBase
TileEntityBase.UpgradeHandler| Modifier and Type | Field and Description |
|---|---|
int |
currentRedstonePower |
int |
cursorX |
int |
cursorY |
static java.lang.String |
NBT_BACKGROUND_COLOR |
static java.lang.String |
NBT_BORDER_COLOR |
static java.lang.String |
NBT_MARGIN |
static java.lang.String |
NBT_TEXT_LINES |
int |
textRotation |
| Constructor and Description |
|---|
TileEntityAphorismTile() |
| Modifier and Type | Method and Description |
|---|---|
int |
getBackgroundColor() |
int |
getBorderColor() |
org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.Integer> |
getCursorPos() |
net.minecraft.item.ItemStack |
getIconAt(int line) |
byte |
getMarginSize() |
int |
getMaxLineWidth(boolean editing) |
net.minecraftforge.items.IItemHandler |
getPrimaryInventory() |
java.lang.String[] |
getTextLines() |
boolean |
isInvisible() |
boolean |
isRedstoneLine(int line) |
void |
needMaxLineWidthRecalc() |
int |
pollRedstone() |
void |
readFromPacket(net.minecraft.nbt.CompoundNBT tag)
Encoded into the description packet.
|
void |
serializeExtraItemData(net.minecraft.nbt.CompoundNBT blockEntityTag,
boolean preserveState)
Get any extra data to be serialized onto a dropped item stack.
|
void |
setBackgroundColor(int color) |
void |
setBorderColor(int color) |
void |
setCursorPos(int cursorX,
int cursorY) |
void |
setInvisible(boolean invisible) |
void |
setMarginSize(byte marginSize) |
void |
setTextLines(java.lang.String[] textLines) |
void |
setTextLines(java.lang.String[] textLines,
boolean notifyClient) |
boolean |
shouldPreserveStateOnBreak()
Should this tile entity preserve its state (currently: upgrades and stored air) when broken?
By default this is true when sneak-wrenched, and false when broken by pick.
|
void |
writeToPacket(net.minecraft.nbt.CompoundNBT tag)
Encoded into the description packet.
|
addLuaMethods, clearCache, countPlayersUsing, getApplicableUpgrades, getCachedNeighbor, getCapability, getContentsToDrop, getCurrentRecipeIdSynced, getCustomName, getDescriptionFields, getDisplayName, getHeatCap, getInventoryCap, getLuaMethodRegistry, getModelData, getName, getPeripheralType, getPosition, getRotation, getSpeedMultiplierFromUpgrades, getSpeedUsageMultiplierFromUpgrades, getUpdateTag, getUpgradeAcceptorTranslationKey, getUpgradeCache, getUpgradeHandler, getUpgrades, handleGUIButtonPress, handleUpdateTag, isGuiUseableByPlayer, load, onBlockRotated, onDescUpdate, onFirstServerTick, onGuiUpdate, onNeighborBlockUpdate, onNeighborTileUpdate, onUpgradesChanged, requestModelDataUpdate, save, sendDescriptionPacket, setCustomName, setPreserveStateOnBreak, setRemoved, shouldRerenderChunkOnDescUpdate, shouldSyncField, updateNeighboursclearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getUpdatePacket, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setChanged, setLevelAndPosition, setPosition, triggerEventareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final java.lang.String NBT_BORDER_COLOR
public static final java.lang.String NBT_BACKGROUND_COLOR
public static final java.lang.String NBT_TEXT_LINES
public static final java.lang.String NBT_MARGIN
public int textRotation
public int currentRedstonePower
public int cursorX
public int cursorY
public net.minecraftforge.items.IItemHandler getPrimaryInventory()
getPrimaryInventory in class TileEntityBasepublic boolean shouldPreserveStateOnBreak()
TileEntityBaseshouldPreserveStateOnBreak in class TileEntityBasepublic void serializeExtraItemData(net.minecraft.nbt.CompoundNBT blockEntityTag,
boolean preserveState)
TileEntityBaseTileEntity#read(BlockState, CompoundNBT) method) when the itemblock is next placed.serializeExtraItemData in class TileEntityBaseblockEntityTag - the existing "BlockEntityTag" subtag to add data topreserveState - true when dropped with a wrench, false when broken with a pickaxe etc.public void writeToPacket(net.minecraft.nbt.CompoundNBT tag)
TileEntityBaseTileEntityBase#write(CompoundNBT)
Prefer to use @DescSynced where possible - use this either for complex fields not handled by @DescSynced,
or for non-ticking tile entities.writeToPacket in interface IDescSyncedwriteToPacket in class TileEntityBasetag - NBT tagpublic void readFromPacket(net.minecraft.nbt.CompoundNBT tag)
TileEntityBaseTileEntityBase#read(BlockState, CompoundNBT).
Prefer to use @DescSynced where possible - use this either for complex fields not handled by @DescSynced,
or for non-ticking tile entities.readFromPacket in interface IDescSyncedreadFromPacket in class TileEntityBasetag - NBT tagpublic java.lang.String[] getTextLines()
public void setTextLines(java.lang.String[] textLines)
public void setTextLines(java.lang.String[] textLines,
boolean notifyClient)
public net.minecraft.item.ItemStack getIconAt(int line)
public boolean isRedstoneLine(int line)
public void setBorderColor(int color)
public int getBorderColor()
public int getBackgroundColor()
public void setBackgroundColor(int color)
public byte getMarginSize()
public void setMarginSize(byte marginSize)
public boolean isInvisible()
public void setInvisible(boolean invisible)
public int getMaxLineWidth(boolean editing)
public void needMaxLineWidthRecalc()
public int pollRedstone()
public org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.Integer> getCursorPos()
public void setCursorPos(int cursorX,
int cursorY)