YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.tileentity.TileEntityBeacon Class Reference
Inheritance diagram for net.minecraft.tileentity.TileEntityBeacon:
net.minecraft.tileentity.TileEntity net.minecraft.inventory.IInventory

Public Member Functions

void updateEntity ()
 
float func_82125_v_ ()
 
int getPrimaryEffect ()
 
int getSecondaryEffect ()
 
int getLevels ()
 
void setLevels (int par1)
 
void setPrimaryEffect (int par1)
 
void setSecondaryEffect (int par1)
 
Packet getDescriptionPacket ()
 
double getMaxRenderDistanceSquared ()
 
void readFromNBT (NBTTagCompound par1NBTTagCompound)
 
void writeToNBT (NBTTagCompound par1NBTTagCompound)
 
int getSizeInventory ()
 
ItemStack getStackInSlot (int par1)
 
ItemStack decrStackSize (int par1, int par2)
 
ItemStack getStackInSlotOnClosing (int par1)
 
void setInventorySlotContents (int par1, ItemStack par2ItemStack)
 
String getInvName ()
 
boolean isInvNameLocalized ()
 
void func_94047_a (String par1Str)
 
int getInventoryStackLimit ()
 
boolean isUseableByPlayer (EntityPlayer par1EntityPlayer)
 
void openChest ()
 
void closeChest ()
 
boolean isStackValidForSlot (int par1, ItemStack par2ItemStack)
 
- Public Member Functions inherited from net.minecraft.tileentity.TileEntity
World getWorldObj ()
 
void setWorldObj (World par1World)
 
boolean func_70309_m ()
 
void readFromNBT (NBTTagCompound par1NBTTagCompound)
 
void writeToNBT (NBTTagCompound par1NBTTagCompound)
 
void updateEntity ()
 
int getBlockMetadata ()
 
void onInventoryChanged ()
 
double getDistanceFrom (double par1, double par3, double par5)
 
double getMaxRenderDistanceSquared ()
 
Block getBlockType ()
 
Packet getDescriptionPacket ()
 
boolean isInvalid ()
 
void invalidate ()
 
void validate ()
 
boolean receiveClientEvent (int par1, int par2)
 
void updateContainingBlockInfo ()
 
void func_85027_a (CrashReportCategory par1CrashReportCategory)
 
boolean canUpdate ()
 
void onDataPacket (INetworkManager net, Packet132TileEntityData pkt)
 
void onChunkUnload ()
 
boolean shouldRefresh (int oldID, int newID, int oldMeta, int newMeta, World world, int x, int y, int z)
 
boolean shouldRenderInPass (int pass)
 
AxisAlignedBB getRenderBoundingBox ()
 
- Public Member Functions inherited from net.minecraft.inventory.IInventory
void onInventoryChanged ()
 

Static Public Attributes

static final Potion[][] effectsList = new Potion[][] {{Potion.moveSpeed, Potion.digSpeed}, {Potion.resistance, Potion.jump}, {Potion.damageBoost}, {Potion.regeneration}}
 
- Static Public Attributes inherited from net.minecraft.tileentity.TileEntity
static final AxisAlignedBB INFINITE_EXTENT_AABB = AxisAlignedBB.getBoundingBox(Double.NEGATIVE_INFINITY, Double.NEGATIVE_INFINITY, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY)
 

Additional Inherited Members

- Static Public Member Functions inherited from net.minecraft.tileentity.TileEntity
static void addMapping (Class par0Class, String par1Str)
 
static TileEntity createAndLoadEntity (NBTTagCompound par0NBTTagCompound)
 
- Public Attributes inherited from net.minecraft.tileentity.TileEntity
World worldObj
 
int xCoord
 
int yCoord
 
int zCoord
 
int blockMetadata = -1
 
Block blockType
 
- Protected Attributes inherited from net.minecraft.tileentity.TileEntity
boolean tileEntityInvalid
 

Member Function Documentation

void net.minecraft.tileentity.TileEntityBeacon.closeChest ( )
ItemStack net.minecraft.tileentity.TileEntityBeacon.decrStackSize ( int  par1,
int  par2 
)

Removes from an inventory slot (first arg) up to a specified number (second arg) of items and returns them in a new stack.

Implements net.minecraft.inventory.IInventory.

float net.minecraft.tileentity.TileEntityBeacon.func_82125_v_ ( )
void net.minecraft.tileentity.TileEntityBeacon.func_94047_a ( String  par1Str)
Packet net.minecraft.tileentity.TileEntityBeacon.getDescriptionPacket ( )

Overriden in a sign to provide the text.

int net.minecraft.tileentity.TileEntityBeacon.getInventoryStackLimit ( )

Returns the maximum stack size for a inventory slot. Seems to always be 64, possibly will be extended. Isn't this more of a set than a get?

Implements net.minecraft.inventory.IInventory.

String net.minecraft.tileentity.TileEntityBeacon.getInvName ( )

Returns the name of the inventory.

Implements net.minecraft.inventory.IInventory.

int net.minecraft.tileentity.TileEntityBeacon.getLevels ( )

Return the levels of this beacon's pyramid.

double net.minecraft.tileentity.TileEntityBeacon.getMaxRenderDistanceSquared ( )
int net.minecraft.tileentity.TileEntityBeacon.getPrimaryEffect ( )

Return the primary potion effect given by this beacon.

int net.minecraft.tileentity.TileEntityBeacon.getSecondaryEffect ( )

Return the secondary potion effect given by this beacon.

int net.minecraft.tileentity.TileEntityBeacon.getSizeInventory ( )

Returns the number of slots in the inventory.

Implements net.minecraft.inventory.IInventory.

ItemStack net.minecraft.tileentity.TileEntityBeacon.getStackInSlot ( int  par1)

Returns the stack in slot i

Implements net.minecraft.inventory.IInventory.

ItemStack net.minecraft.tileentity.TileEntityBeacon.getStackInSlotOnClosing ( int  par1)

When some containers are closed they call this on each slot, then drop whatever it returns as an EntityItem - like when you close a workbench GUI.

Implements net.minecraft.inventory.IInventory.

boolean net.minecraft.tileentity.TileEntityBeacon.isInvNameLocalized ( )

If this returns false, the inventory name will be used as an unlocalized name, and translated into the player's language. Otherwise it will be used directly.

Implements net.minecraft.inventory.IInventory.

boolean net.minecraft.tileentity.TileEntityBeacon.isStackValidForSlot ( int  par1,
ItemStack  par2ItemStack 
)

Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.

Implements net.minecraft.inventory.IInventory.

boolean net.minecraft.tileentity.TileEntityBeacon.isUseableByPlayer ( EntityPlayer  par1EntityPlayer)

Do not make give this method the name canInteractWith because it clashes with Container

Implements net.minecraft.inventory.IInventory.

void net.minecraft.tileentity.TileEntityBeacon.openChest ( )
void net.minecraft.tileentity.TileEntityBeacon.readFromNBT ( NBTTagCompound  par1NBTTagCompound)

Reads a tile entity from NBT.

void net.minecraft.tileentity.TileEntityBeacon.setInventorySlotContents ( int  par1,
ItemStack  par2ItemStack 
)

Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).

Implements net.minecraft.inventory.IInventory.

void net.minecraft.tileentity.TileEntityBeacon.setLevels ( int  par1)

Set the levels of this beacon's pyramid.

void net.minecraft.tileentity.TileEntityBeacon.setPrimaryEffect ( int  par1)
void net.minecraft.tileentity.TileEntityBeacon.setSecondaryEffect ( int  par1)
void net.minecraft.tileentity.TileEntityBeacon.updateEntity ( )

Allows the entity to update its state. Overridden in most subclasses, e.g. the mob spawner uses this to count ticks and creates a new spawn inside its implementation.

void net.minecraft.tileentity.TileEntityBeacon.writeToNBT ( NBTTagCompound  par1NBTTagCompound)

Writes a tile entity to NBT.

Member Data Documentation

final Potion [][] net.minecraft.tileentity.TileEntityBeacon.effectsList = new Potion[][] {{Potion.moveSpeed, Potion.digSpeed}, {Potion.resistance, Potion.jump}, {Potion.damageBoost}, {Potion.regeneration}}
static

List of effects that Beacon can apply


The documentation for this class was generated from the following file: