Class AmbientBeaconEffect

java.lang.Object
api.block.beacon.BeaconEffect
api.block.beacon.AmbientBeaconEffect
Direct Known Subclasses:
CompanionBeaconEffect, LootingBeaconEffect

public class AmbientBeaconEffect extends BeaconEffect
  • Field Details

    • EFFECT_NAME

      public final String EFFECT_NAME
  • Constructor Details

    • AmbientBeaconEffect

      public AmbientBeaconEffect(String effectName)
  • Method Details

    • onUpdate

      public void onUpdate(TileEntityBeacon beacon)
      Description copied from class: BeaconEffect
      Only gets called when beaconEffectClass != null, isOn() and getLevels() > 0
      Specified by:
      onUpdate in class BeaconEffect
    • onPowerChange

      public void onPowerChange(int newPowerLevel, int oldPowerLevel, TileEntityBeacon beacon)
      Overrides:
      onPowerChange in class BeaconEffect
    • updateAmbientBeaconListForStateChange

      protected void updateAmbientBeaconListForStateChange(int newPowerLevel, int oldPowerLevel, TileEntityBeacon beacon)