Class ProtectionManager
java.lang.Object
io.github.addoncommunity.galactifun.core.managers.ProtectionManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOxygenBlock(io.github.thebusybiscuit.slimefun5.libraries.dough.blocks.BlockPosition l) voidaddProtection(io.github.thebusybiscuit.slimefun5.libraries.dough.blocks.BlockPosition pos, AtmosphericEffect effect, int level) voidDeprecated.for internal use onlyvoidDeprecated.for internal use onlyintgetEffectAt(org.bukkit.Location l, AtmosphericEffect effect) getEffectsAt(org.bukkit.Location l) booleanisOxygenBlock(org.bukkit.Location l) intprotectionAt(org.bukkit.Location l, AtmosphericEffect effect) protectionsAt(org.bukkit.Location l) subtractProtections(Atmosphere atmosphere, Map<AtmosphericEffect, Integer> protections)
-
Constructor Details
-
ProtectionManager
public ProtectionManager()
-
-
Method Details
-
protectionsAt
-
protectionAt
-
addProtection
public void addProtection(@Nonnull io.github.thebusybiscuit.slimefun5.libraries.dough.blocks.BlockPosition pos, @Nonnull AtmosphericEffect effect, int level) -
clearProtectedBlocks
Deprecated.for internal use only -
getEffectsAt
-
getEffectAt
-
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.for internal use only
-