Package net.minecraft.tileentity
Class SignTileEntity
- java.lang.Object
-
- net.minecraftforge.common.capabilities.CapabilityProvider<TileEntity>
-
- net.minecraft.tileentity.TileEntity
-
- net.minecraft.tileentity.SignTileEntity
-
- All Implemented Interfaces:
ICapabilityProvider
,ICapabilitySerializable<CompoundNBT>
,IForgeTileEntity
,INBTSerializable<CompoundNBT>
- Direct Known Subclasses:
CustomSignsTest.CustomSignTileEntity
public class SignTileEntity extends TileEntity
-
-
Field Summary
Fields Modifier and Type Field Description private DyeColor
color
private boolean
isEditable
private ITextComponent[]
messages
private PlayerEntity
playerWhoMayEdit
private IReorderingProcessor[]
renderMessages
-
Fields inherited from class net.minecraft.tileentity.TileEntity
level, remove, worldPosition
-
Fields inherited from interface net.minecraftforge.common.extensions.IForgeTileEntity
INFINITE_EXTENT_AABB
-
-
Constructor Summary
Constructors Constructor Description SignTileEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandSource
createCommandSourceStack(ServerPlayerEntity p_195539_1_)
boolean
executeClickCommands(PlayerEntity p_174882_1_)
DyeColor
getColor()
ITextComponent
getMessage(int p_212366_1_)
PlayerEntity
getPlayerWhoMayEdit()
IReorderingProcessor
getRenderMessage(int p_242686_1_, java.util.function.Function<ITextComponent,IReorderingProcessor> p_242686_2_)
SUpdateTileEntityPacket
getUpdatePacket()
CompoundNBT
getUpdateTag()
boolean
isEditable()
void
load(BlockState p_230337_1_, CompoundNBT p_230337_2_)
boolean
onlyOpCanSetNbt()
CompoundNBT
save(CompoundNBT p_189515_1_)
void
setAllowedPlayerEditor(PlayerEntity p_145912_1_)
boolean
setColor(DyeColor p_214068_1_)
void
setEditable(boolean p_145913_1_)
void
setMessage(int p_212365_1_, ITextComponent p_212365_2_)
-
Methods inherited from class net.minecraft.tileentity.TileEntity
clearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, rotate, setChanged, setLevelAndPosition, setPosition, setRemoved, triggerEvent
-
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
-
Methods inherited from interface net.minecraftforge.common.extensions.IForgeTileEntity
deserializeNBT, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
-
-
-
-
Field Detail
-
messages
private final ITextComponent[] messages
-
isEditable
private boolean isEditable
-
playerWhoMayEdit
private PlayerEntity playerWhoMayEdit
-
renderMessages
private final IReorderingProcessor[] renderMessages
-
color
private DyeColor color
-
-
Method Detail
-
save
public CompoundNBT save(CompoundNBT p_189515_1_)
- Overrides:
save
in classTileEntity
-
load
public void load(BlockState p_230337_1_, CompoundNBT p_230337_2_)
- Overrides:
load
in classTileEntity
-
getMessage
public ITextComponent getMessage(int p_212366_1_)
-
setMessage
public void setMessage(int p_212365_1_, ITextComponent p_212365_2_)
-
getRenderMessage
@Nullable public IReorderingProcessor getRenderMessage(int p_242686_1_, java.util.function.Function<ITextComponent,IReorderingProcessor> p_242686_2_)
-
getUpdatePacket
@Nullable public SUpdateTileEntityPacket getUpdatePacket()
- Overrides:
getUpdatePacket
in classTileEntity
-
getUpdateTag
public CompoundNBT getUpdateTag()
- Overrides:
getUpdateTag
in classTileEntity
-
onlyOpCanSetNbt
public boolean onlyOpCanSetNbt()
- Overrides:
onlyOpCanSetNbt
in classTileEntity
-
isEditable
public boolean isEditable()
-
setEditable
public void setEditable(boolean p_145913_1_)
-
setAllowedPlayerEditor
public void setAllowedPlayerEditor(PlayerEntity p_145912_1_)
-
getPlayerWhoMayEdit
public PlayerEntity getPlayerWhoMayEdit()
-
executeClickCommands
public boolean executeClickCommands(PlayerEntity p_174882_1_)
-
createCommandSourceStack
public CommandSource createCommandSourceStack(@Nullable ServerPlayerEntity p_195539_1_)
-
getColor
public DyeColor getColor()
-
setColor
public boolean setColor(DyeColor p_214068_1_)
-
-