Class AmbientBeaconEffect

java.lang.Object
api.block.beacon.BeaconEffect
api.block.beacon.AmbientBeaconEffect
Direct Known Subclasses:
CompanionBeaconEffect, EnderAntennaBeaconEffect, NauseaBeaconEffect, PotionBeaconEffect, SpawnAnchorBeaconEffect

public class AmbientBeaconEffect extends BeaconEffect
  • Field Details

    • effectName

      public final String effectName
    • isGlobal

      public final boolean isGlobal
    • hasCooldown

      public final boolean hasCooldown
    • cooldownTime

      public final long cooldownTime
    • effectDuration

      public final int effectDuration
  • Constructor Details

    • AmbientBeaconEffect

      public AmbientBeaconEffect(String effectName)
    • AmbientBeaconEffect

      public AmbientBeaconEffect(String effectName, boolean isGlobal)
    • AmbientBeaconEffect

      public AmbientBeaconEffect(String effectName, boolean isGlobal, boolean hasCooldown)
    • AmbientBeaconEffect

      public AmbientBeaconEffect(String effectName, boolean isGlobal, boolean hasCooldown, long cooldownTime)
    • AmbientBeaconEffect

      public AmbientBeaconEffect(String effectName, boolean isGlobal, boolean hasCooldown, long cooldownTime, int effectDuration)
  • Method Details

    • onPlayerEffectUpdate

      public void onPlayerEffectUpdate(EntityPlayer player, int level)
    • onAmbientUpdate

      public void onAmbientUpdate(BeaconEffectLocation effectLocation, World world)
    • 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)