Package net.minecraft.tileentity
Class TileEntityBeacon
- java.lang.Object
-
- net.minecraft.tileentity.TileEntity
-
- net.minecraft.tileentity.TileEntityLockable
-
- net.minecraft.tileentity.TileEntityBeacon
-
- All Implemented Interfaces:
IInventory
,ITickable
,IInteractionObject
,ILockableContainer
,IWorldNameable
public class TileEntityBeacon extends TileEntityLockable implements ITickable, IInventory
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TileEntityBeacon.BeamSegment
-
Field Summary
Fields Modifier and Type Field Description static Potion[][]
effectsList
+ List of effects that Beacon can apply-
Fields inherited from class net.minecraft.tileentity.TileEntity
blockType, pos, tileEntityInvalid, worldObj
-
-
Constructor Summary
Constructors Constructor Description TileEntityBeacon()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
void
closeInventory(EntityPlayer player)
Container
createContainer(InventoryPlayer inventoryplayer, EntityPlayer var2)
ItemStack
decrStackSize(int index, int count)
+ Removes up to a specified number of items from an inventory slot and returns them in a new stack.java.util.List<TileEntityBeacon.BeamSegment>
getBeamSegments()
Packet
getDescriptionPacket()
+ Allows for a specialized description packet to be created.int
getField(int parInt1)
int
getFieldCount()
java.lang.String
getGuiID()
int
getInventoryStackLimit()
+ Returns the maximum stack size for a inventory slot.double
getMaxRenderDistanceSquared()
java.lang.String
getName()
+ Gets the name of this command sender (usually username, but possibly "Rcon")int
getSizeInventory()
+ Returns the number of slots in the inventory.ItemStack
getStackInSlot(int index)
+ Returns the stack in the given slot.boolean
hasCustomName()
+ Returns true if this thing is namedboolean
isItemValidForSlot(int index, ItemStack stack)
+ Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.boolean
isUseableByPlayer(EntityPlayer player)
+ Do not make give this method the name canInteractWith because it clashes with Containervoid
openInventory(EntityPlayer player)
void
readFromNBT(NBTTagCompound nbttagcompound)
boolean
receiveClientEvent(int id, int type)
ItemStack
removeStackFromSlot(int index)
+ Removes a stack from the given slot and returns it.void
setField(int id, int value)
void
setInventorySlotContents(int index, ItemStack stack)
+ Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).void
setName(java.lang.String name)
float
shouldBeamRender()
void
update()
+ Like the old updateEntity(), except more generic.void
updateBeacon()
void
writeToNBT(NBTTagCompound nbttagcompound)
-
Methods inherited from class net.minecraft.tileentity.TileEntityLockable
getDisplayName, getLockCode, isLocked, setLockCode
-
Methods inherited from class net.minecraft.tileentity.TileEntity
addInfoToCrashReport, createAndLoadEntity, func_183000_F, getBlockMetadata, getBlockType, getDistanceSq, getPos, getWorld, hasWorldObj, invalidate, isInvalid, markDirty, setPos, setWorldObj, updateContainingBlockInfo, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.inventory.IInventory
markDirty
-
Methods inherited from interface net.minecraft.world.IWorldNameable
getDisplayName
-
-
-
-
Field Detail
-
effectsList
public static final Potion[][] effectsList
+ List of effects that Beacon can apply
-
-
Method Detail
-
update
public void update()
+ Like the old updateEntity(), except more generic.
-
updateBeacon
public void updateBeacon()
-
getBeamSegments
public java.util.List<TileEntityBeacon.BeamSegment> getBeamSegments()
-
shouldBeamRender
public float shouldBeamRender()
-
getDescriptionPacket
public Packet getDescriptionPacket()
+ Allows for a specialized description packet to be created. This is often used to sync tile entity data from the server to the client easily. For example this is used by signs to synchronise the text to be displayed.- Overrides:
getDescriptionPacket
in classTileEntity
-
getMaxRenderDistanceSquared
public double getMaxRenderDistanceSquared()
- Overrides:
getMaxRenderDistanceSquared
in classTileEntity
-
readFromNBT
public void readFromNBT(NBTTagCompound nbttagcompound)
- Overrides:
readFromNBT
in classTileEntityLockable
-
writeToNBT
public void writeToNBT(NBTTagCompound nbttagcompound)
- Overrides:
writeToNBT
in classTileEntityLockable
-
getSizeInventory
public int getSizeInventory()
+ Returns the number of slots in the inventory.- Specified by:
getSizeInventory
in interfaceIInventory
-
getStackInSlot
public ItemStack getStackInSlot(int index)
+ Returns the stack in the given slot.- Specified by:
getStackInSlot
in interfaceIInventory
-
decrStackSize
public ItemStack decrStackSize(int index, int count)
+ Removes up to a specified number of items from an inventory slot and returns them in a new stack.- Specified by:
decrStackSize
in interfaceIInventory
-
removeStackFromSlot
public ItemStack removeStackFromSlot(int index)
+ Removes a stack from the given slot and returns it.- Specified by:
removeStackFromSlot
in interfaceIInventory
-
setInventorySlotContents
public void setInventorySlotContents(int index, ItemStack stack)
+ Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).- Specified by:
setInventorySlotContents
in interfaceIInventory
-
getName
public java.lang.String getName()
+ Gets the name of this command sender (usually username, but possibly "Rcon")- Specified by:
getName
in interfaceIWorldNameable
-
hasCustomName
public boolean hasCustomName()
+ Returns true if this thing is named- Specified by:
hasCustomName
in interfaceIWorldNameable
-
setName
public void setName(java.lang.String name)
-
getInventoryStackLimit
public int getInventoryStackLimit()
+ Returns the maximum stack size for a inventory slot. Seems to always be 64, possibly will be extended.- Specified by:
getInventoryStackLimit
in interfaceIInventory
-
isUseableByPlayer
public boolean isUseableByPlayer(EntityPlayer player)
+ Do not make give this method the name canInteractWith because it clashes with Container- Specified by:
isUseableByPlayer
in interfaceIInventory
-
openInventory
public void openInventory(EntityPlayer player)
- Specified by:
openInventory
in interfaceIInventory
-
closeInventory
public void closeInventory(EntityPlayer player)
- Specified by:
closeInventory
in interfaceIInventory
-
isItemValidForSlot
public boolean isItemValidForSlot(int index, ItemStack stack)
+ Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.- Specified by:
isItemValidForSlot
in interfaceIInventory
-
getGuiID
public java.lang.String getGuiID()
- Specified by:
getGuiID
in interfaceIInteractionObject
-
createContainer
public Container createContainer(InventoryPlayer inventoryplayer, EntityPlayer var2)
- Specified by:
createContainer
in interfaceIInteractionObject
-
getField
public int getField(int parInt1)
- Specified by:
getField
in interfaceIInventory
-
setField
public void setField(int id, int value)
- Specified by:
setField
in interfaceIInventory
-
getFieldCount
public int getFieldCount()
- Specified by:
getFieldCount
in interfaceIInventory
-
clear
public void clear()
- Specified by:
clear
in interfaceIInventory
-
receiveClientEvent
public boolean receiveClientEvent(int id, int type)
- Overrides:
receiveClientEvent
in classTileEntity
-
-