public class SignTileEntity extends TileEntity
Modifier and Type | Field and Description |
---|---|
private boolean |
isEditable |
private PlayerEntity |
player |
private java.lang.String[] |
renderText |
ITextComponent[] |
signText |
private DyeColor |
textColor |
pos, removed, world
INFINITE_EXTENT_AABB
Constructor and Description |
---|
SignTileEntity() |
Modifier and Type | Method and Description |
---|---|
boolean |
executeCommand(PlayerEntity playerIn) |
CommandSource |
getCommandSource(ServerPlayerEntity playerIn) |
boolean |
getIsEditable() |
PlayerEntity |
getPlayer() |
java.lang.String |
getRenderText(int line,
java.util.function.Function<ITextComponent,java.lang.String> p_212364_2_) |
ITextComponent |
getText(int line) |
DyeColor |
getTextColor() |
SUpdateTileEntityPacket |
getUpdatePacket() |
CompoundNBT |
getUpdateTag() |
boolean |
onlyOpsCanSetNbt() |
void |
read(CompoundNBT compound) |
void |
setEditable(boolean isEditableIn) |
void |
setPlayer(PlayerEntity playerIn) |
void |
setText(int line,
ITextComponent p_212365_2_) |
boolean |
setTextColor(DyeColor newColor) |
CompoundNBT |
write(CompoundNBT compound) |
addInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getWorld, hasWorld, isRemoved, markDirty, mirror, 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
public final ITextComponent[] signText
private boolean isEditable
private PlayerEntity player
private final java.lang.String[] renderText
private DyeColor textColor
public CompoundNBT write(CompoundNBT compound)
write
in class TileEntity
public void read(CompoundNBT compound)
read
in class TileEntity
public ITextComponent getText(int line)
public void setText(int line, ITextComponent p_212365_2_)
@Nullable public java.lang.String getRenderText(int line, java.util.function.Function<ITextComponent,java.lang.String> p_212364_2_)
@Nullable public SUpdateTileEntityPacket getUpdatePacket()
getUpdatePacket
in class TileEntity
public CompoundNBT getUpdateTag()
getUpdateTag
in class TileEntity
public boolean onlyOpsCanSetNbt()
onlyOpsCanSetNbt
in class TileEntity
public boolean getIsEditable()
public void setEditable(boolean isEditableIn)
public void setPlayer(PlayerEntity playerIn)
public PlayerEntity getPlayer()
public boolean executeCommand(PlayerEntity playerIn)
public CommandSource getCommandSource(@Nullable ServerPlayerEntity playerIn)
public DyeColor getTextColor()
public boolean setTextColor(DyeColor newColor)