public class TilePurifier extends TankInventoryTileEntity
Purifier..| Modifier and Type | Field and Description |
|---|---|
java.lang.Float |
additionalRotation
The additional item rotation.
|
java.lang.Float |
additionalRotation2
The next additional item rotation.
|
java.lang.Float |
additionalRotationPrev
The previous additional item rotation.
|
static net.minecraftforge.fluids.Fluid |
FLUID
The fluid it uses.
|
static int |
SLOT_ADDITIONAL
The additional 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 |
|---|---|
IPurifierActionRegistry |
getActions() |
net.minecraft.item.ItemStack |
getAdditionalItem()
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) |
void |
onActionFinished() |
protected void |
onSendUpdate()
Called when an update will is sent.
|
void |
setAdditionalItem(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 |
showEffect() |
void |
showEnchantingEffect() |
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_ADDITIONAL
public static final net.minecraftforge.fluids.Fluid FLUID
public java.lang.Integer tickCount
public java.lang.Float additionalRotation2
public java.lang.Float additionalRotationPrev
public java.lang.Float additionalRotation
protected SingleUseTank newTank(java.lang.String tankName, int tankSize)
newTank in class TankInventoryTileEntitypublic IPurifierActionRegistry getActions()
public void updateTileEntity()
EvilCraftTileEntityEvilCraftTileEntity.updateEntity().
This method is called each tick.updateTileEntity in class EvilCraftTileEntitypublic void onActionFinished()
public 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 getAdditionalItem()
public void setAdditionalItem(net.minecraft.item.ItemStack itemStack)
itemStack - The book item.public void showEffect()
public void showEnchantingEffect()
public float getRandomRotation()
public boolean isItemValidForSlot(int i,
net.minecraft.item.ItemStack itemStack)