Package api.block.beacon
Class AmbientBeaconEffect
java.lang.Object
api.block.beacon.BeaconEffect
api.block.beacon.AmbientBeaconEffect
- Direct Known Subclasses:
CompanionBeaconEffect,LootingBeaconEffect
-
Field Summary
FieldsFields inherited from class api.block.beacon.BeaconEffect
EFFECT_DURATION, rangePerLevel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonPowerChange(int newPowerLevel, int oldPowerLevel, TileEntityBeacon beacon) voidonUpdate(TileEntityBeacon beacon) Only gets called when beaconEffectClass !protected voidupdateAmbientBeaconListForStateChange(int newPowerLevel, int oldPowerLevel, TileEntityBeacon beacon) Methods inherited from class api.block.beacon.BeaconEffect
applyPotionEffectToPlayersInRange, getMagneticFieldLevel, onPowerOff, onPowerOn, updateGlobalMagneticFieldListForStateChange
-
Field Details
-
EFFECT_NAME
-
-
Constructor Details
-
AmbientBeaconEffect
-
-
Method Details
-
onUpdate
Description copied from class:BeaconEffectOnly gets called when beaconEffectClass != null, isOn() and getLevels() > 0- Specified by:
onUpdatein classBeaconEffect
-
onPowerChange
- Overrides:
onPowerChangein classBeaconEffect
-
updateAmbientBeaconListForStateChange
protected void updateAmbientBeaconListForStateChange(int newPowerLevel, int oldPowerLevel, TileEntityBeacon beacon)
-