Class ProtectionManager

java.lang.Object
io.github.addoncommunity.galactifun.core.managers.ProtectionManager

public final class ProtectionManager extends Object
  • Constructor Details

    • ProtectionManager

      public ProtectionManager()
  • Method Details

    • protectionsAt

      @Nonnull public Map<AtmosphericEffect, Integer> protectionsAt(@Nonnull org.bukkit.Location l)
    • protectionAt

      public int protectionAt(@Nonnull org.bukkit.Location l, @Nonnull AtmosphericEffect effect)
    • addProtection

      public void addProtection(@Nonnull io.github.thebusybiscuit.slimefun5.libraries.dough.blocks.BlockPosition pos, @Nonnull AtmosphericEffect effect, int level)
    • clearProtectedBlocks

      @Deprecated public void clearProtectedBlocks()
      Deprecated.
      for internal use only
    • getEffectsAt

      @Nonnull public Map<AtmosphericEffect, Integer> getEffectsAt(@Nonnull org.bukkit.Location l)
    • getEffectAt

      public int getEffectAt(@Nonnull org.bukkit.Location l, @Nonnull AtmosphericEffect effect)
    • subtractProtections

      @Nonnull public Map<AtmosphericEffect, Integer> subtractProtections(@Nonnull Atmosphere atmosphere, @Nonnull Map<AtmosphericEffect, Integer> protections)
    • addOxygenBlock

      public void addOxygenBlock(@Nonnull io.github.thebusybiscuit.slimefun5.libraries.dough.blocks.BlockPosition l)
    • isOxygenBlock

      public boolean isOxygenBlock(@Nonnull org.bukkit.Location l)
    • clearOxygenBlocks

      @Deprecated public void clearOxygenBlocks()
      Deprecated.
      for internal use only