Class GlowBeacon

All Implemented Interfaces:
com.destroystokyo.paper.loottable.LootableBlockInventory, com.destroystokyo.paper.loottable.LootableInventory, org.bukkit.block.Beacon, org.bukkit.block.BlockState, org.bukkit.block.Container, org.bukkit.block.Lockable, org.bukkit.block.TileState, org.bukkit.inventory.BlockInventoryHolder, org.bukkit.inventory.InventoryHolder, org.bukkit.loot.Lootable, org.bukkit.metadata.Metadatable, org.bukkit.Nameable, org.bukkit.persistence.PersistentDataHolder

public class GlowBeacon extends GlowContainer implements org.bukkit.block.Beacon
  • Constructor Details

    • GlowBeacon

      public GlowBeacon(GlowBlock block)
      Creates an entity for the given beacon block.
      Parameters:
      block - the block this beacon occupies
  • Method Details

    • getEntitiesInRange

      public Collection<org.bukkit.entity.LivingEntity> getEntitiesInRange()
      Specified by:
      getEntitiesInRange in interface org.bukkit.block.Beacon
    • getTier

      public int getTier()
      Specified by:
      getTier in interface org.bukkit.block.Beacon
    • getEffectRange

      public double getEffectRange()
      Specified by:
      getEffectRange in interface org.bukkit.block.Beacon
    • setEffectRange

      public void setEffectRange(double v)
      Specified by:
      setEffectRange in interface org.bukkit.block.Beacon
    • resetEffectRange

      public void resetEffectRange()
      Specified by:
      resetEffectRange in interface org.bukkit.block.Beacon
    • getPrimaryEffect

      public org.bukkit.potion.PotionEffect getPrimaryEffect()
      Specified by:
      getPrimaryEffect in interface org.bukkit.block.Beacon
    • setPrimaryEffect

      public void setPrimaryEffect(org.bukkit.potion.PotionEffectType primary)
      Specified by:
      setPrimaryEffect in interface org.bukkit.block.Beacon
    • getSecondaryEffect

      public org.bukkit.potion.PotionEffect getSecondaryEffect()
      Specified by:
      getSecondaryEffect in interface org.bukkit.block.Beacon
    • setSecondaryEffect

      public void setSecondaryEffect(org.bukkit.potion.PotionEffectType secondary)
      Specified by:
      setSecondaryEffect in interface org.bukkit.block.Beacon
    • getInventory

      public org.bukkit.inventory.BeaconInventory getInventory()
      Specified by:
      getInventory in interface org.bukkit.block.Container
      Specified by:
      getInventory in interface org.bukkit.inventory.InventoryHolder
      Overrides:
      getInventory in class GlowContainer
    • getSnapshotInventory

      public org.bukkit.inventory.BeaconInventory getSnapshotInventory()
      Specified by:
      getSnapshotInventory in interface org.bukkit.block.Container
      Overrides:
      getSnapshotInventory in class GlowContainer