|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.tileentity.TileEntity
net.minecraft.tileentity.TileEntityCommandBlock
public class TileEntityCommandBlock
Field Summary |
---|
Fields inherited from class net.minecraft.tileentity.TileEntity |
---|
blockMetadata, blockType, worldObj, xCoord, yCoord, zCoord |
Constructor Summary | |
---|---|
TileEntityCommandBlock()
|
Method Summary | |
---|---|
boolean |
canCommandSenderUseCommand(int par1,
String par2Str)
Returns true if the command sender is allowed to use the given command. |
void |
executeCommandOnPowered(World par1World)
Execute the command, called when the command block is powered. |
String |
getCommand()
|
String |
getCommandSenderName()
Gets the name of this command sender (usually username, but possibly "Rcon") |
Packet |
getDescriptionPacket()
Overriden in a sign to provide the text. |
ChunkCoordinates |
getPlayerCoordinates()
Return the coordinates for this player as ChunkCoordinates. |
void |
readFromNBT(NBTTagCompound par1NBTTagCompound)
Reads a tile entity from NBT. |
void |
sendChatToPlayer(String par1Str)
|
void |
setCommand(String par1Str)
Sets the command this block will execute when powered. |
String |
translateString(String par1Str,
Object... par2ArrayOfObj)
Translates and formats the given string key with the given arguments. |
void |
writeToNBT(NBTTagCompound par1NBTTagCompound)
Writes a tile entity to NBT. |
Methods inherited from class net.minecraft.tileentity.TileEntity |
---|
addMapping, canUpdate, createAndLoadEntity, func_70309_m, func_82115_m, func_85027_a, getBlockMetadata, getBlockType, getDistanceFrom, getWorldObj, invalidate, isInvalid, onChunkUnload, onDataPacket, onInventoryChanged, receiveClientEvent, setWorldObj, shouldRefresh, updateContainingBlockInfo, updateEntity, validate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TileEntityCommandBlock()
Method Detail |
---|
public void setCommand(String par1Str)
public String getCommand()
public void executeCommandOnPowered(World par1World)
public String getCommandSenderName()
getCommandSenderName
in interface ICommandSender
public void sendChatToPlayer(String par1Str)
sendChatToPlayer
in interface ICommandSender
public boolean canCommandSenderUseCommand(int par1, String par2Str)
canCommandSenderUseCommand
in interface ICommandSender
public String translateString(String par1Str, Object... par2ArrayOfObj)
translateString
in interface ICommandSender
public void writeToNBT(NBTTagCompound par1NBTTagCompound)
writeToNBT
in class TileEntity
public void readFromNBT(NBTTagCompound par1NBTTagCompound)
readFromNBT
in class TileEntity
public ChunkCoordinates getPlayerCoordinates()
getPlayerCoordinates
in interface ICommandSender
public Packet getDescriptionPacket()
getDescriptionPacket
in class TileEntity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |