public class SignTileEntity extends TileEntity
修飾子とタイプ | フィールドと説明 |
---|---|
ITextComponent[] |
signText |
pos, removed, world
INFINITE_EXTENT_AABB
コンストラクタと説明 |
---|
SignTileEntity() |
修飾子とタイプ | メソッドと説明 |
---|---|
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()
Retrieves packet to send to the client whenever this Tile Entity is resynced via World.notifyBlockUpdate.
|
CompoundNBT |
getUpdateTag()
Get an NBT compound to sync to the client with SPacketChunkData, used for initial loading of the chunk or when
many blocks change at once.
|
boolean |
onlyOpsCanSetNbt()
Checks if players can use this tile entity to access operator (permission level 2) commands either directly or
indirectly, such as give or setblock.
|
void |
read(CompoundNBT compound) |
void |
setEditable(boolean isEditableIn)
Sets the sign's isEditable flag to the specified parameter.
|
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
public CompoundNBT write(CompoundNBT compound)
write
クラス内 TileEntity
public void read(CompoundNBT compound)
read
クラス内 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()
IForgeTileEntity.onDataPacket(net.minecraft.network.NetworkManager, net.minecraft.network.play.server.SUpdateTileEntityPacket)
getUpdatePacket
クラス内 TileEntity
public CompoundNBT getUpdateTag()
handleUpdateTag
getUpdateTag
クラス内 TileEntity
public boolean onlyOpsCanSetNbt()
Entity.ignoreItemEntityData()
.For example, signs
(player right-clicking) and command blocks
are considered
accessible.
onlyOpsCanSetNbt
クラス内 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)