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, worldINFINITE_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, warnInvalidBlockareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBTgetCapability, getCapabilitypublic 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 TileEntitypublic void read(CompoundNBT compound)
read in class TileEntitypublic 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 TileEntitypublic CompoundNBT getUpdateTag()
getUpdateTag in class TileEntitypublic boolean onlyOpsCanSetNbt()
onlyOpsCanSetNbt in class TileEntitypublic 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)