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 net.minestom.server.coordinate.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, tagHandlerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 net.minestom.server.coordinate.Point sourcePosition, float amount)
-