public class TileEntityCrank extends net.minecraft.tileentity.TileEntity implements IRotaryOutput, ITieredTE
| Modifier and Type | Field and Description |
|---|---|
AxisChain |
chain |
int |
cooldown |
static int[] |
cooldowns |
int |
dir |
boolean |
inInventory |
int |
output |
boolean |
ready |
static int[] |
speeds |
int |
sync_offset |
int |
tier |
| Constructor and Description |
|---|
TileEntityCrank() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
net.minecraft.network.Packet |
getDescriptionPacket() |
net.minecraft.util.AxisAlignedBB |
getRenderBoundingBox() |
int |
getRotaryOutput(int side) |
int |
getTier() |
boolean |
isOutputFace(int side) |
void |
onDataPacket(net.minecraft.network.NetworkManager net,
net.minecraft.network.play.server.S35PacketUpdateTileEntity pkg) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound tag) |
void |
rotate(int newDir) |
void |
setRotaryOutput(int side,
int speed) |
void |
setTier(int tier) |
void |
updateEntity() |
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound tag) |
addMapping, canUpdate, createAndLoadEntity, func_145828_a, getBlockMetadata, getBlockType, getDistanceFrom, getMaxRenderDistanceSquared, getWorldObj, hasWorldObj, invalidate, isInvalid, markDirty, onChunkUnload, receiveClientEvent, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validatepublic boolean ready
public int dir
public int output
public int tier
public int cooldown
public int sync_offset
public AxisChain chain
public boolean inInventory
public static final int[] speeds
public static final int[] cooldowns
public void updateEntity()
updateEntity in class net.minecraft.tileentity.TileEntitypublic void readFromNBT(net.minecraft.nbt.NBTTagCompound tag)
readFromNBT in class net.minecraft.tileentity.TileEntitypublic void writeToNBT(net.minecraft.nbt.NBTTagCompound tag)
writeToNBT in class net.minecraft.tileentity.TileEntitypublic void onDataPacket(net.minecraft.network.NetworkManager net,
net.minecraft.network.play.server.S35PacketUpdateTileEntity pkg)
onDataPacket in class net.minecraft.tileentity.TileEntitypublic net.minecraft.network.Packet getDescriptionPacket()
getDescriptionPacket in class net.minecraft.tileentity.TileEntitypublic boolean isOutputFace(int side)
isOutputFace in interface IRotaryOutputpublic int getRotaryOutput(int side)
getRotaryOutput in interface IRotaryOutputpublic void setRotaryOutput(int side,
int speed)
setRotaryOutput in interface IRotaryOutputpublic void rotate(int newDir)
public void cleanup()
public net.minecraft.util.AxisAlignedBB getRenderBoundingBox()
getRenderBoundingBox in class net.minecraft.tileentity.TileEntity