Package api.block.beacon
Class PotionBeaconEffect
java.lang.Object
api.block.beacon.BeaconEffect
api.block.beacon.PotionBeaconEffect
- Direct Known Subclasses:
HellfireBeaconEffect
-
Field Summary
Fields inherited from class api.block.beacon.BeaconEffect
EFFECT_DURATION, rangePerLevel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonUpdate(TileEntityBeacon beacon) Only gets called when beaconEffectClass !Methods inherited from class api.block.beacon.BeaconEffect
applyPotionEffectToPlayersInRange, getMagneticFieldLevel, onPowerChange, onPowerOff, onPowerOn, updateGlobalMagneticFieldListForStateChange
-
Constructor Details
-
PotionBeaconEffect
public PotionBeaconEffect(int potionID, boolean scalesWithLevel)
-
-
Method Details
-
onUpdate
Description copied from class:BeaconEffectOnly gets called when beaconEffectClass != null, isOn() and getLevels() > 0- Specified by:
onUpdatein classBeaconEffect
-