public class TilePurifier extends TankInventoryTileEntity
Purifier..| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.item.Item |
ALLOWED_BOOK
The allowed book instance.
|
java.lang.Float |
bookRotation
The book rotation.
|
java.lang.Float |
bookRotation2
The next book rotation.
|
java.lang.Float |
bookRotationPrev
The previous book rotation.
|
static net.minecraftforge.fluids.Fluid |
FLUID
The fluid it uses.
|
static int |
SLOT_BOOK
The book slot.
|
static int |
SLOT_PURIFY
The purify item slot.
|
static int |
SLOTS
The amount of slots.
|
java.lang.Integer |
tickCount
Book bounce tick count.
|
sendUpdateOnTankChanged, tankSizeinventory, sendUpdateOnInventoryChanged, slotSides, slotSidesSize| Constructor and Description |
|---|
TilePurifier()
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.item.ItemStack |
getBookItem()
Get the book item.
|
int |
getBucketsFloored()
Get the amount of contained buckets.
|
int |
getBucketsRest()
Get the rest of the fluid that can not fit in a bucket.
|
int |
getMaxBuckets()
Set the maximum amount of contained buckets.
|
net.minecraft.item.ItemStack |
getPurifyItem()
Get the purify item.
|
float |
getRandomRotation()
Get the random rotation for displaying the item.
|
boolean |
isItemValidForSlot(int i,
net.minecraft.item.ItemStack itemStack) |
protected SingleUseTank |
newTank(java.lang.String tankName,
int tankSize) |
protected void |
onSendUpdate()
Called when an update will is sent.
|
void |
setBookItem(net.minecraft.item.ItemStack itemStack)
Set the book item.
|
void |
setBuckets(int buckets,
int rest)
Set the amount of contained buckets.
|
void |
setPurifyItem(net.minecraft.item.ItemStack itemStack)
Set the purify item.
|
void |
updateTileEntity()
Override this method instead of
EvilCraftTileEntity.updateEntity(). |
canDrain, canFill, drain, drain, drain, drain, fill, fill, getTank, getTankInfo, isSendUpdateOnTankChanged, readFromNBT, setSendUpdateOnTankChanged, writeToNBTaddSlotsToSide, canExtractItem, canInsertItem, closeInventory, decrStackSize, getAccessibleSlotsFromSide, getInventory, getInventoryName, getInventoryStackLimit, getSizeInventory, getStackInSlot, getStackInSlotOnClosing, hasCustomInventoryName, isSendUpdateOnInventoryChanged, isUseableByPlayer, onInventoryChanged, openInventory, setInventorySlotContents, setSendUpdateOnInventoryChangedafterSendUpdate, beforeSendUpdate, canInteractWith, destroy, getBlock, getDescriptionPacket, getNBTTagCompound, getRotation, getUpdateBackoffTicks, isRotatable, isTileValid, onDataPacket, onLoad, onUpdateReceived, sendImmediateUpdate, sendUpdate, setRotatable, setRotation, updateEntityaddMapping, canUpdate, createAndLoadEntity, func_145828_a, getBlockMetadata, getBlockType, getDistanceFrom, getMaxRenderDistanceSquared, getRenderBoundingBox, getWorldObj, hasWorldObj, invalidate, isInvalid, markDirty, onChunkUnload, receiveClientEvent, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validatepublic static final int SLOTS
public static final int SLOT_PURIFY
public static final int SLOT_BOOK
public static final net.minecraft.item.Item ALLOWED_BOOK
public static final net.minecraftforge.fluids.Fluid FLUID
public java.lang.Integer tickCount
public java.lang.Float bookRotation2
public java.lang.Float bookRotationPrev
public java.lang.Float bookRotation
protected SingleUseTank newTank(java.lang.String tankName, int tankSize)
newTank in class TankInventoryTileEntitypublic void updateTileEntity()
EvilCraftTileEntityEvilCraftTileEntity.updateEntity().
This method is called each tick.updateTileEntity in class EvilCraftTileEntitypublic int getBucketsFloored()
public int getBucketsRest()
setBuckets(int, int) as rest.public void setBuckets(int buckets,
int rest)
buckets - The amount of buckets.rest - The rest of the fluid.public int getMaxBuckets()
protected void onSendUpdate()
EvilCraftTileEntityonSendUpdate in class TankInventoryTileEntitypublic net.minecraft.item.ItemStack getPurifyItem()
public void setPurifyItem(net.minecraft.item.ItemStack itemStack)
itemStack - The purify item.public net.minecraft.item.ItemStack getBookItem()
public void setBookItem(net.minecraft.item.ItemStack itemStack)
itemStack - The book item.public float getRandomRotation()
public boolean isItemValidForSlot(int i,
net.minecraft.item.ItemStack itemStack)