public abstract class EnchantmentProtection
extends org.cloudburstmc.api.enchantment.behavior.EnchantmentBehavior
| Modifier and Type | Class and Description |
|---|---|
static class |
EnchantmentProtection.TYPE |
| Modifier and Type | Field and Description |
|---|---|
protected EnchantmentProtection.TYPE |
protectionType |
| Modifier | Constructor and Description |
|---|---|
protected |
EnchantmentProtection(EnchantmentProtection.TYPE type) |
| Modifier and Type | Method and Description |
|---|---|
abstract float |
getProtectionFactor(org.cloudburstmc.api.enchantment.EnchantmentInstance enchantment,
org.cloudburstmc.api.event.entity.EntityDamageEvent e) |
double |
getTypeModifier() |
boolean |
isCompatibleWith(org.cloudburstmc.api.enchantment.EnchantmentInstance first,
org.cloudburstmc.api.enchantment.EnchantmentInstance enchantment) |
boolean |
isMajor() |
protected final EnchantmentProtection.TYPE protectionType
protected EnchantmentProtection(EnchantmentProtection.TYPE type)
public boolean isCompatibleWith(org.cloudburstmc.api.enchantment.EnchantmentInstance first,
org.cloudburstmc.api.enchantment.EnchantmentInstance enchantment)
isCompatibleWith in class org.cloudburstmc.api.enchantment.behavior.EnchantmentBehaviorpublic double getTypeModifier()
public boolean isMajor()
isMajor in class org.cloudburstmc.api.enchantment.behavior.EnchantmentBehaviorpublic abstract float getProtectionFactor(org.cloudburstmc.api.enchantment.EnchantmentInstance enchantment,
org.cloudburstmc.api.event.entity.EntityDamageEvent e)
getProtectionFactor in class org.cloudburstmc.api.enchantment.behavior.EnchantmentBehaviorCopyright © 2021. All rights reserved.