Package btw.block.tileentity.beacon
Class SpawnAnchorBeaconEffect
java.lang.Object
api.block.beacon.BeaconEffect
btw.block.tileentity.beacon.SpawnAnchorBeaconEffect
-
Field Summary
FieldsFields inherited from class api.block.beacon.BeaconEffect
EFFECT_DURATION, rangePerLevel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected intgetMagneticFieldLevel(int powerlevel) voidonPowerOn(TileEntityBeacon beacon) voidonUpdate(TileEntityBeacon beacon) Only gets called when beaconEffectClass !voidplaySoundEffect(TileEntityBeacon beacon) Methods inherited from class api.block.beacon.BeaconEffect
applyPotionEffectToPlayersInRange, onPowerChange, onPowerOff, updateGlobalMagneticFieldListForStateChange
-
Field Details
-
soulforgedBeaconBlightSpreadRange
public static final int[] soulforgedBeaconBlightSpreadRange
-
-
Constructor Details
-
SpawnAnchorBeaconEffect
public SpawnAnchorBeaconEffect()
-
-
Method Details
-
onUpdate
Description copied from class:BeaconEffectOnly gets called when beaconEffectClass != null, isOn() and getLevels() > 0- Specified by:
onUpdatein classBeaconEffect
-
checkPlayerSpawnedAtBeacon
-
onPowerOn
- Overrides:
onPowerOnin classBeaconEffect
-
playSoundEffect
-
getMagneticFieldLevel
protected int getMagneticFieldLevel(int powerlevel) - Overrides:
getMagneticFieldLevelin classBeaconEffect
-