Class 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)
    • Field Detail

      • effectsList

        public static final Potion[][] effectsList
        + List of effects that Beacon can apply
    • Constructor Detail

      • TileEntityBeacon

        public TileEntityBeacon()
    • Method Detail

      • update

        public void update()
        + Like the old updateEntity(), except more generic.
        Specified by:
        update in interface ITickable
      • updateBeacon

        public void updateBeacon()
      • 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 class TileEntity
      • getSizeInventory

        public int getSizeInventory()
        + Returns the number of slots in the inventory.
        Specified by:
        getSizeInventory in interface IInventory
      • 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 interface IInventory
      • 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 interface IInventory
      • getName

        public java.lang.String getName()
        + Gets the name of this command sender (usually username, but possibly "Rcon")
        Specified by:
        getName in interface IWorldNameable
      • hasCustomName

        public boolean hasCustomName()
        + Returns true if this thing is named
        Specified by:
        hasCustomName in interface IWorldNameable
      • 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 interface IInventory
      • isUseableByPlayer

        public boolean isUseableByPlayer​(EntityPlayer player)
        + Do not make give this method the name canInteractWith because it clashes with Container
        Specified by:
        isUseableByPlayer in interface IInventory
      • 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 interface IInventory
      • getField

        public int getField​(int parInt1)
        Specified by:
        getField in interface IInventory
      • setField

        public void setField​(int id,
                             int value)
        Specified by:
        setField in interface IInventory
      • clear

        public void clear()
        Specified by:
        clear in interface IInventory