DamageUtil

public final class DamageUtil

Functions

Link copied to clipboard
public final static DamageSource damageSource(World $self, RegistryKey<DamageType> damageKey)
public final static DamageSource damageSource(World $self, RegistryKey<DamageType> damageKey, Entity attacker)
public final static DamageSource damageSource(World $self, RegistryKey<DamageType> damageKey, Entity source, Entity attacker)

Utility function to create a DamageSource.