Package btw.block.tileentity.beacon
Class CompanionBeaconEffect
java.lang.Object
api.block.beacon.BeaconEffect
api.block.beacon.AmbientBeaconEffect
btw.block.tileentity.beacon.CompanionBeaconEffect
-
Field Summary
FieldsFields inherited from class api.block.beacon.AmbientBeaconEffect
EFFECT_NAMEFields inherited from class api.block.beacon.BeaconEffect
EFFECT_DURATION, rangePerLevel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonPowerChange(int newPowerLevel, int oldPowerLevel, TileEntityBeacon beacon) voidonPowerOff(TileEntityBeacon beacon) voidonPowerOn(TileEntityBeacon beacon) voidonUpdate(TileEntityBeacon beacon) Only gets called when beaconEffectClass !Methods inherited from class api.block.beacon.AmbientBeaconEffect
updateAmbientBeaconListForStateChangeMethods inherited from class api.block.beacon.BeaconEffect
applyPotionEffectToPlayersInRange, getMagneticFieldLevel, updateGlobalMagneticFieldListForStateChange
-
Field Details
-
companionStrength
public static int companionStrength
-
-
Constructor Details
-
CompanionBeaconEffect
public CompanionBeaconEffect()
-
-
Method Details
-
onUpdate
Description copied from class:BeaconEffectOnly gets called when beaconEffectClass != null, isOn() and getLevels() > 0- Overrides:
onUpdatein classAmbientBeaconEffect
-
onPowerOn
- Overrides:
onPowerOnin classBeaconEffect
-
onPowerChange
- Overrides:
onPowerChangein classAmbientBeaconEffect
-
onPowerOff
- Overrides:
onPowerOffin classBeaconEffect
-