Package net.minecraft.src
Class TileEntityCommandBlock
java.lang.Object
net.minecraft.src.TileEntity
net.minecraft.src.TileEntityCommandBlock
- All Implemented Interfaces:
ICommandSender
-
Field Summary
Fields inherited from class net.minecraft.src.TileEntity
blockMetadata, blockType, tileEntityInvalid, worldObj, xCoord, yCoord, zCoord -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanCommandSenderUseCommand(int par1, String par2Str) Returns true if the command sender is allowed to use the given command.intexecuteCommandOnPowered(World par1World) Execute the command, called when the command block is powered.voidfunc_96102_a(int par1) intReturn the command this command block is set to execute.Gets the name of this command sender (usually username, but possibly "Rcon")Overriden in a sign to provide the text.Return the position for this command sender.voidreadFromNBT(NBTTagCompound par1NBTTagCompound) Reads a tile entity from NBT.voidsendChatToPlayer(ChatMessageComponent par1ChatMessageComponent) voidsetCommand(String par1Str) Sets the command this block will execute when powered.voidsetCommandSenderName(String par1Str) Sets the name of the command sendervoidwriteToNBT(NBTTagCompound par1NBTTagCompound) Writes a tile entity to NBT.Methods inherited from class net.minecraft.src.TileEntity
addMapping, createAndLoadEntity, func_85027_a, getBlockMetadata, getBlockType, getDistanceFrom, getMaxRenderDistanceSquared, getWorldObj, hasWorldObj, invalidate, isInvalid, onInventoryChanged, receiveClientEvent, setWorldObj, updateContainingBlockInfo, updateEntity, validate
-
Constructor Details
-
TileEntityCommandBlock
public TileEntityCommandBlock()
-
-
Method Details
-
setCommand
Sets the command this block will execute when powered. -
getCommand
Return the command this command block is set to execute. -
executeCommandOnPowered
Execute the command, called when the command block is powered. -
getCommandSenderName
Gets the name of this command sender (usually username, but possibly "Rcon")- Specified by:
getCommandSenderNamein interfaceICommandSender
-
setCommandSenderName
Sets the name of the command sender -
sendChatToPlayer
- Specified by:
sendChatToPlayerin interfaceICommandSender
-
canCommandSenderUseCommand
Returns true if the command sender is allowed to use the given command.- Specified by:
canCommandSenderUseCommandin interfaceICommandSender
-
writeToNBT
Writes a tile entity to NBT.- Overrides:
writeToNBTin classTileEntity
-
readFromNBT
Reads a tile entity from NBT.- Overrides:
readFromNBTin classTileEntity
-
getPlayerCoordinates
Return the position for this command sender.- Specified by:
getPlayerCoordinatesin interfaceICommandSender
-
getEntityWorld
- Specified by:
getEntityWorldin interfaceICommandSender
-
getDescriptionPacket
Overriden in a sign to provide the text.- Overrides:
getDescriptionPacketin classTileEntity
-
func_96103_d
public int func_96103_d() -
func_96102_a
public void func_96102_a(int par1)
-