Class PixelmonDamageTypes

java.lang.Object
com.pixelmonmod.pixelmon.api.registries.PixelmonDamageTypes

public class PixelmonDamageTypes extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.resources.ResourceKey<net.minecraft.world.damagesource.DamageType>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.damagesource.DamageSource
    getBattleDamage(net.minecraft.world.level.Level level, net.minecraft.world.entity.Entity damager)
     
    static net.minecraft.world.damagesource.DamageSource
    getDamageSource(net.minecraft.resources.ResourceKey<net.minecraft.world.damagesource.DamageType> damageType, net.minecraft.world.level.Level level)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • BATTLE_DAMAGE

      public static final net.minecraft.resources.ResourceKey<net.minecraft.world.damagesource.DamageType> BATTLE_DAMAGE
  • Constructor Details

    • PixelmonDamageTypes

      public PixelmonDamageTypes()
  • Method Details

    • getDamageSource

      public static net.minecraft.world.damagesource.DamageSource getDamageSource(net.minecraft.resources.ResourceKey<net.minecraft.world.damagesource.DamageType> damageType, net.minecraft.world.level.Level level)
    • getBattleDamage

      public static net.minecraft.world.damagesource.DamageSource getBattleDamage(net.minecraft.world.level.Level level, net.minecraft.world.entity.Entity damager)