net.minecraft.tileentity.TileEntityCommandBlock Java Examples

The following examples show how to use net.minecraft.tileentity.TileEntityCommandBlock. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CraftCommandBlock.java    From Kettle with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void load(TileEntityCommandBlock commandBlock) {
    super.load(commandBlock);

    command = commandBlock.getCommandBlockLogic().getCommand();
    name = commandBlock.getCommandBlockLogic().getName();
}
 
Example #2
Source File: CraftCommandBlock.java    From Kettle with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void applyTo(TileEntityCommandBlock commandBlock) {
    super.applyTo(commandBlock);

    commandBlock.getCommandBlockLogic().setCommand(command);
    commandBlock.getCommandBlockLogic().setName(name);
}
 
Example #3
Source File: CraftCommandBlock.java    From Thermos with GNU General Public License v3.0 5 votes vote down vote up
public CraftCommandBlock(Block block) {
    super(block);

    CraftWorld world = (CraftWorld) block.getWorld();
    commandBlock = (TileEntityCommandBlock) world.getTileEntityAt(getX(), getY(), getZ());
    command = commandBlock.func_145993_a().field_145763_e;
    name = commandBlock.func_145993_a().getCommandSenderName();
}
 
Example #4
Source File: CraftCommandBlock.java    From Kettle with GNU General Public License v3.0 4 votes vote down vote up
public CraftCommandBlock(Block block) {
    super(block, TileEntityCommandBlock.class);
}
 
Example #5
Source File: CraftCommandBlock.java    From Kettle with GNU General Public License v3.0 4 votes vote down vote up
public CraftCommandBlock(final Material material, final TileEntityCommandBlock te) {
    super(material, te);
}