public abstract class AbstractGearbox extends net.minecraft.tileentity.TileEntity implements IRotaryInput, IRotaryOutput, ITieredTE
| Modifier and Type | Field and Description |
|---|---|
static int[] |
breakSpeed |
AxisChain |
chain |
int |
dir |
boolean |
inInventory |
int[] |
input |
int[] |
length |
static int[] |
maxChainLength |
int |
output |
boolean |
ready |
int |
sync_offset |
int |
tier |
| Constructor and Description |
|---|
AbstractGearbox() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
net.minecraft.network.Packet |
getDescriptionPacket() |
net.minecraft.util.AxisAlignedBB |
getRenderBoundingBox() |
int |
getRotaryInput(int side) |
int |
getRotaryInputLength(int side) |
int |
getRotaryOutput(int side) |
int |
getTier() |
boolean |
isInputFace(int side) |
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 |
setRotaryInput(int side,
int speed,
int length) |
void |
setRotaryOutput(int side,
int speed) |
void |
setTier(int tier) |
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, updateEntity, validatepublic boolean ready
public int dir
public int output
public int[] input
public int[] length
public int tier
public int sync_offset
public AxisChain chain
public boolean inInventory
public static final int[] maxChainLength
public static final int[] breakSpeed
public net.minecraft.util.AxisAlignedBB getRenderBoundingBox()
getRenderBoundingBox in class net.minecraft.tileentity.TileEntitypublic void rotate(int newDir)
public 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 boolean isInputFace(int side)
isInputFace in interface IRotaryInputpublic int getRotaryOutput(int side)
getRotaryOutput in interface IRotaryOutputpublic void setRotaryOutput(int side,
int speed)
setRotaryOutput in interface IRotaryOutputpublic void setRotaryInput(int side,
int speed,
int length)
setRotaryInput in interface IRotaryInputpublic int getRotaryInput(int side)
getRotaryInput in interface IRotaryInputpublic void cleanup()
public int getRotaryInputLength(int side)
getRotaryInputLength in interface IRotaryInput