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
ConstructorDescriptionPositionalDamage
(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, getTypeId, setAmount, tagHandler
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minestom.server.tag.Taggable
getAndSetTag, getAndUpdateTag, getTag, hasTag, removeTag, setTag, updateAndGetTag, updateTag
-
Constructor Details
-
PositionalDamage
public PositionalDamage(@NotNull DynamicRegistry.Key<DamageType> type, @NotNull @NotNull Point sourcePosition, float amount)
-