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
-
Field Summary
Modifier and TypeFieldDescriptionprivate DyeColor
private boolean
private final ITextComponent[]
private PlayerEntity
private final IReorderingProcessor[]
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
-
Method Summary
Modifier and TypeMethodDescriptioncreateCommandSourceStack
(ServerPlayerEntity p_195539_1_) boolean
executeClickCommands
(PlayerEntity p_174882_1_) getColor()
getMessage
(int p_212366_1_) getRenderMessage
(int p_242686_1_, Function<ITextComponent, IReorderingProcessor> p_242686_2_) boolean
void
load
(BlockState p_230337_1_, CompoundNBT p_230337_2_) boolean
save
(CompoundNBT p_189515_1_) void
setAllowedPlayerEditor
(PlayerEntity p_145912_1_) boolean
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 Details
-
messages
-
isEditable
private boolean isEditable -
playerWhoMayEdit
-
renderMessages
-
color
-
-
Constructor Details
-
SignTileEntity
public SignTileEntity()
-
-
Method Details
-
save
- Overrides:
save
in classTileEntity
-
load
- Overrides:
load
in classTileEntity
-
getMessage
-
setMessage
-
getRenderMessage
@Nullable public IReorderingProcessor getRenderMessage(int p_242686_1_, Function<ITextComponent, IReorderingProcessor> p_242686_2_) -
getUpdatePacket
- Overrides:
getUpdatePacket
in classTileEntity
-
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
-
getPlayerWhoMayEdit
-
executeClickCommands
-
createCommandSourceStack
-
getColor
-
setColor
-