public class TileEnvironmentalAccumulator extends EvilCraftBeaconTileEntity implements net.minecraft.entity.boss.IBossDisplayData, IDegradable, net.minecraft.inventory.IInventory
| Constructor and Description |
|---|
TileEnvironmentalAccumulator()
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeInventory() |
net.minecraft.item.ItemStack |
decrStackSize(int i,
int j) |
net.minecraft.util.IChatComponent |
func_145748_c_() |
java.util.List<net.minecraft.entity.Entity> |
getAreaEntities()
Get the list of entities within the area defined by
IDegradable.getRadius(). |
double |
getDegradation()
Get the numerical representation of the stage of degradation.
0 is no degradation, 1 is the maximum degradation.
|
float |
getHealth() |
java.lang.String |
getInventoryName() |
int |
getInventoryStackLimit() |
ILocation |
getLocation()
Get the center location of this degradable instance.
|
int |
getMaxCooldownTick()
Get the maximum cooldown tick for accumulating weather.
|
float |
getMaxHealth() |
float |
getMovingItemY()
Get the Y coordinate of the current moving item.
|
int |
getRadius()
Get the radius of the area.
|
IRecipe<EnvironmentalAccumulatorRecipeComponent,EnvironmentalAccumulatorRecipeComponent,EnvironmentalAccumulatorRecipeProperties> |
getRecipe()
Get the current recipe we're working on.
|
int |
getSizeInventory() |
net.minecraft.item.ItemStack |
getStackInSlot(int i) |
net.minecraft.item.ItemStack |
getStackInSlotOnClosing(int i) |
net.minecraft.world.World |
getWorld()
Get the world in which the degradable instance is located.
|
boolean |
hasCustomInventoryName() |
boolean |
isItemValidForSlot(int i,
net.minecraft.item.ItemStack itemstack) |
boolean |
isUseableByPlayer(net.minecraft.entity.player.EntityPlayer entityplayer) |
void |
onUpdateReceived()
This method is called when the tile entity receives
an update (ie a data packet) from the server.
|
void |
openInventory() |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound compound) |
void |
setBeamColors(int state)
Set the beam colors.
|
void |
setInventorySlotContents(int i,
net.minecraft.item.ItemStack itemstack) |
void |
updateTileEntity()
Override this method instead of
EvilCraftTileEntity.updateEntity(). |
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound compound) |
getBeamInnerColor, getBeamOuterColor, getBeamRenderVariable, getMaxRenderDistanceSquared, getRenderBoundingBox, isBeamActive, setBeamActive, setBeamInnerColor, setBeamOuterColorafterSendUpdate, beforeSendUpdate, canInteractWith, destroy, getBlock, getDescriptionPacket, getNBTTagCompound, getRotation, getUpdateBackoffTicks, isRotatable, isTileValid, onDataPacket, onLoad, onSendUpdate, sendImmediateUpdate, sendUpdate, setRotatable, setRotation, updateEntityaddMapping, canUpdate, createAndLoadEntity, func_145828_a, getBlockMetadata, getBlockType, getDistanceFrom, getWorldObj, hasWorldObj, invalidate, isInvalid, markDirty, onChunkUnload, receiveClientEvent, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validatepublic TileEnvironmentalAccumulator()
public int getMaxCooldownTick()
public float getMovingItemY()
public IRecipe<EnvironmentalAccumulatorRecipeComponent,EnvironmentalAccumulatorRecipeComponent,EnvironmentalAccumulatorRecipeProperties> getRecipe()
public void updateTileEntity()
EvilCraftTileEntityEvilCraftTileEntity.updateEntity().
This method is called each tick.updateTileEntity in class EvilCraftTileEntitypublic void onUpdateReceived()
EvilCraftTileEntityonUpdateReceived in class EvilCraftTileEntitypublic void setBeamColors(int state)
state - The state to base the colors on.public void readFromNBT(net.minecraft.nbt.NBTTagCompound compound)
readFromNBT in class EvilCraftTileEntitypublic void writeToNBT(net.minecraft.nbt.NBTTagCompound compound)
writeToNBT in class EvilCraftTileEntitypublic float getMaxHealth()
getMaxHealth in interface net.minecraft.entity.boss.IBossDisplayDatapublic float getHealth()
getHealth in interface net.minecraft.entity.boss.IBossDisplayDatapublic net.minecraft.util.IChatComponent func_145748_c_()
func_145748_c_ in interface net.minecraft.entity.boss.IBossDisplayDatapublic ILocation getLocation()
IDegradablegetLocation in interface IDegradablepublic int getRadius()
IDegradablegetRadius in interface IDegradablepublic java.util.List<net.minecraft.entity.Entity> getAreaEntities()
IDegradableIDegradable.getRadius().getAreaEntities in interface IDegradablepublic double getDegradation()
IDegradablegetDegradation in interface IDegradablepublic net.minecraft.world.World getWorld()
IDegradablegetWorld in interface IDegradablepublic int getSizeInventory()
getSizeInventory in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack getStackInSlot(int i)
getStackInSlot in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack decrStackSize(int i,
int j)
decrStackSize in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack getStackInSlotOnClosing(int i)
getStackInSlotOnClosing in interface net.minecraft.inventory.IInventorypublic void setInventorySlotContents(int i,
net.minecraft.item.ItemStack itemstack)
setInventorySlotContents in interface net.minecraft.inventory.IInventorypublic java.lang.String getInventoryName()
getInventoryName in interface net.minecraft.inventory.IInventorypublic boolean hasCustomInventoryName()
hasCustomInventoryName in interface net.minecraft.inventory.IInventorypublic int getInventoryStackLimit()
getInventoryStackLimit in interface net.minecraft.inventory.IInventorypublic boolean isUseableByPlayer(net.minecraft.entity.player.EntityPlayer entityplayer)
isUseableByPlayer in interface net.minecraft.inventory.IInventorypublic void openInventory()
openInventory in interface net.minecraft.inventory.IInventorypublic void closeInventory()
closeInventory in interface net.minecraft.inventory.IInventorypublic boolean isItemValidForSlot(int i,
net.minecraft.item.ItemStack itemstack)
isItemValidForSlot in interface net.minecraft.inventory.IInventory