Class PixelmonDamageTypes
java.lang.Object
com.pixelmonmod.pixelmon.api.registries.PixelmonDamageTypes
-
Field Summary
Modifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceKey<net.minecraft.world.damagesource.DamageType>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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)
-
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)
-