public class TilePurifier
extends org.cyclops.cyclopscore.tileentity.TankInventoryTileEntity
implements org.cyclops.cyclopscore.tileentity.CyclopsTileEntity.ITickingTile
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, tankSize| 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 org.cyclops.cyclopscore.fluid.SingleUseTank |
newTank(java.lang.String tankName,
int tankSize) |
protected void |
onSendUpdate() |
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() |
canDrain, canFill, drain, drain, drain, drain, fill, fill, getTank, getTankInfo, isSendUpdateOnTankChanged, readFromNBT, setSendUpdateOnTankChanged, writeToNBTaddSlotsToSide, canExtractItem, canInsertItem, clear, closeInventory, decrStackSize, getCommandSenderName, getDisplayName, getField, getFieldCount, getInventory, getInventoryStackLimit, getSizeInventory, getSlotsForFace, getStackInSlot, getStackInSlotOnClosing, hasCustomName, isSendUpdateOnInventoryChanged, isUseableByPlayer, onInventoryChanged, openInventory, 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, getBlockMetadata, getBlockType, getDistanceSq, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getWorld, hasWorldObj, invalidate, isInvalid, markDirty, onChunkUnload, receiveClientEvent, restrictNBTCopy, setPos, setWorldObj, 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 org.cyclops.cyclopscore.fluid.SingleUseTank newTank(java.lang.String tankName,
int tankSize)
newTank in class org.cyclops.cyclopscore.tileentity.TankInventoryTileEntitypublic void updateTileEntity()
updateTileEntity in class org.cyclops.cyclopscore.tileentity.CyclopsTileEntitypublic 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 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)
isItemValidForSlot in interface net.minecraft.inventory.IInventoryisItemValidForSlot in class org.cyclops.cyclopscore.tileentity.InventoryTileEntity