Class PositionalDamage
java.lang.Object
net.minestom.server.entity.damage.Damage
net.minestom.server.entity.damage.PositionalDamage
- All Implemented Interfaces:
Taggable,TagReadable,TagWritable
Represents damage that is associated with a certain position.
-
Constructor Summary
ConstructorsConstructorDescriptionPositionalDamage(DynamicRegistry.Key<DamageType> type, @NotNull Point sourcePosition, float amount) -
Method Summary
Methods inherited from class net.minestom.server.entity.damage.Damage
buildDeathMessage, buildDeathScreenText, fromEntity, fromPlayer, fromPosition, fromProjectile, getAmount, getAttacker, getGenericSound, getPlayerSound, getSound, getSource, getSourcePosition, getType, setAmount, tagHandler
-
Constructor Details
-
PositionalDamage
public PositionalDamage(@NotNull DynamicRegistry.Key<DamageType> type, @NotNull @NotNull Point sourcePosition, float amount)
-