Package net.glowstone.block.entity.state
Class GlowBeacon
java.lang.Object
net.glowstone.block.GlowBlockState
net.glowstone.block.entity.state.GlowContainer
net.glowstone.block.entity.state.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
-
Field Summary
Fields inherited from class net.glowstone.block.GlowBlockState
blockData, data, type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Collection<org.bukkit.entity.LivingEntity>
org.bukkit.inventory.BeaconInventory
org.bukkit.potion.PotionEffect
org.bukkit.potion.PotionEffect
org.bukkit.inventory.BeaconInventory
int
getTier()
void
void
setEffectRange
(double v) void
setPrimaryEffect
(org.bukkit.potion.PotionEffectType primary) void
setSecondaryEffect
(org.bukkit.potion.PotionEffectType secondary) Methods inherited from class net.glowstone.block.entity.state.GlowContainer
clearLootTable, customName, customName, getCustomName, getLastFilled, getLastLooted, getLock, getLootTable, getNextRefill, getPersistentDataContainer, getSeed, hasBeenFilled, hasLootTable, hasPendingRefill, hasPlayerLooted, isLocked, isRefillEnabled, setCustomName, setHasPlayerLooted, setLock, setLootTable, setLootTable, setLootTableSeed, setNextRefill, setSeed
Methods inherited from class net.glowstone.block.GlowBlockState
canEqual, equals, getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getMetadata, getRawData, getType, getWorld, getX, getY, getZ, hashCode, hasMetadata, isCollidable, isFlowed, isPlaced, isSnapshot, removeMetadata, setBlockData, setData, setFlowed, setMetadata, setRawData, setType, toString, update, update, update
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.bukkit.inventory.BlockInventoryHolder
getBlock
Methods inherited from interface org.bukkit.block.BlockState
getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isCollidable, isPlaced, setBlockData, setData, setRawData, setType, update, update, update
Methods inherited from interface org.bukkit.block.Lockable
getLock, isLocked, setLock
Methods inherited from interface com.destroystokyo.paper.loottable.LootableBlockInventory
getBlock
Methods inherited from interface com.destroystokyo.paper.loottable.LootableInventory
getLastLooted, hasPlayerLooted, setHasPlayerLooted
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface org.bukkit.Nameable
customName, customName, getCustomName, setCustomName
Methods inherited from interface org.bukkit.block.TileState
getPersistentDataContainer, isSnapshot
-
Constructor Details
-
GlowBeacon
Creates an entity for the given beacon block.- Parameters:
block
- the block this beacon occupies
-
-
Method Details
-
getEntitiesInRange
- Specified by:
getEntitiesInRange
in interfaceorg.bukkit.block.Beacon
-
getTier
public int getTier()- Specified by:
getTier
in interfaceorg.bukkit.block.Beacon
-
getEffectRange
public double getEffectRange()- Specified by:
getEffectRange
in interfaceorg.bukkit.block.Beacon
-
setEffectRange
public void setEffectRange(double v) - Specified by:
setEffectRange
in interfaceorg.bukkit.block.Beacon
-
resetEffectRange
public void resetEffectRange()- Specified by:
resetEffectRange
in interfaceorg.bukkit.block.Beacon
-
getPrimaryEffect
public org.bukkit.potion.PotionEffect getPrimaryEffect()- Specified by:
getPrimaryEffect
in interfaceorg.bukkit.block.Beacon
-
setPrimaryEffect
public void setPrimaryEffect(org.bukkit.potion.PotionEffectType primary) - Specified by:
setPrimaryEffect
in interfaceorg.bukkit.block.Beacon
-
getSecondaryEffect
public org.bukkit.potion.PotionEffect getSecondaryEffect()- Specified by:
getSecondaryEffect
in interfaceorg.bukkit.block.Beacon
-
setSecondaryEffect
public void setSecondaryEffect(org.bukkit.potion.PotionEffectType secondary) - Specified by:
setSecondaryEffect
in interfaceorg.bukkit.block.Beacon
-
getInventory
public org.bukkit.inventory.BeaconInventory getInventory()- Specified by:
getInventory
in interfaceorg.bukkit.block.Container
- Specified by:
getInventory
in interfaceorg.bukkit.inventory.InventoryHolder
- Overrides:
getInventory
in classGlowContainer
-
getSnapshotInventory
public org.bukkit.inventory.BeaconInventory getSnapshotInventory()- Specified by:
getSnapshotInventory
in interfaceorg.bukkit.block.Container
- Overrides:
getSnapshotInventory
in classGlowContainer
-