Search in sources :

Example 1 with SpongeDamageType

use of org.spongepowered.common.event.cause.entity.damage.SpongeDamageType in project SpongeCommon by SpongePowered.

the class SpongeRegistryLoaders method damageType.

// TODO Minecraft 1.16.4 - These are not right, someone needs to look into this...
public static RegistryLoader<DamageType> damageType() {
    return RegistryLoader.of(l -> {
        l.add(DamageTypes.ATTACK, k -> new SpongeDamageType("attack"));
        l.add(DamageTypes.CONTACT, k -> new SpongeDamageType("contact"));
        l.add(DamageTypes.CUSTOM, k -> new SpongeDamageType("custom"));
        l.add(DamageTypes.DROWN, k -> new SpongeDamageType("drown"));
        l.add(DamageTypes.DRYOUT, k -> new SpongeDamageType("dryout"));
        l.add(DamageTypes.EXPLOSIVE, k -> new SpongeDamageType("explosive"));
        l.add(DamageTypes.FALL, k -> new SpongeDamageType("fall"));
        l.add(DamageTypes.FIRE, k -> new SpongeDamageType("inFire"));
        l.add(DamageTypes.GENERIC, k -> new SpongeDamageType("generic"));
        l.add(DamageTypes.HUNGER, k -> new SpongeDamageType("starve"));
        l.add(DamageTypes.MAGIC, k -> new SpongeDamageType("magic"));
        l.add(DamageTypes.MAGMA, k -> new SpongeDamageType("magma"));
        l.add(DamageTypes.PROJECTILE, k -> new SpongeDamageType("projectile"));
        l.add(DamageTypes.SUFFOCATE, k -> new SpongeDamageType("inWall"));
        l.add(DamageTypes.SWEEPING_ATTACK, k -> new SpongeDamageType("sweeping_attack"));
        l.add(DamageTypes.VOID, k -> new SpongeDamageType("outOfWorld"));
    });
}
Also used : SpongeDamageType(org.spongepowered.common.event.cause.entity.damage.SpongeDamageType)

Aggregations

SpongeDamageType (org.spongepowered.common.event.cause.entity.damage.SpongeDamageType)1