public class TilePurifier
extends org.cyclops.cyclopscore.tileentity.TankInventoryTileEntity
implements org.cyclops.cyclopscore.tileentity.CyclopsTileEntity.ITickingTile
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, slotSides| 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 org.cyclops.cyclopscore.fluid.SingleUseTank |
newTank(java.lang.String tankName,
int tankSize) |
void |
onActionFinished() |
protected void |
onSendUpdate() |
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() |
canDrain, canFill, drain, drain, drain, drain, fill, fill, getTank, getTankInfo, isSendUpdateOnTankChanged, readFromNBT, setSendUpdateOnTankChanged, writeToNBTaddSlotsToSide, getInventory, getSlotsForFacecanAccess, canExtractItem, canInsertItem, clear, closeInventory, decrStackSize, getCapability, getDisplayName, getField, getFieldCount, getInventoryStackLimit, getName, getSizeInventory, getStackInSlot, hasCapability, hasCustomName, isSendUpdateOnInventoryChanged, isUseableByPlayer, onInventoryChanged, openInventory, removeStackFromSlot, setField, setInventorySlotContents, setSendUpdateOnInventoryChangedafterSendUpdate, beforeSendUpdate, canInteractWith, destroy, getBlock, getDescriptionPacket, getNBTTagCompound, getRotation, getUpdateBackoffTicks, isRotatable, isTicking, onDataPacket, onLoad, onUpdateReceived, readGeneratedFieldsFromNBT, sendImmediateUpdate, sendUpdate, setRotatable, setRotation, shouldRefresh, writeGeneratedFieldsToNBTaddInfoToCrashReport, addMapping, canRenderBreaking, createAndLoadEntity, deserializeNBT, func_183000_F, getBlockMetadata, getBlockType, getDistanceSq, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getWorld, hasWorldObj, invalidate, isInvalid, markDirty, onChunkUnload, receiveClientEvent, restrictNBTCopy, serializeNBT, setPos, setWorldObj, 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 org.cyclops.cyclopscore.fluid.SingleUseTank newTank(java.lang.String tankName,
int tankSize)
newTank in class org.cyclops.cyclopscore.tileentity.TankInventoryTileEntitypublic IPurifierActionRegistry getActions()
public void updateTileEntity()
updateTileEntity in class org.cyclops.cyclopscore.tileentity.CyclopsTileEntitypublic 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()
onSendUpdate in class org.cyclops.cyclopscore.tileentity.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)
isItemValidForSlot in interface net.minecraft.inventory.IInventoryisItemValidForSlot in class org.cyclops.cyclopscore.tileentity.InventoryTileEntityBase