All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minestom.server.entity.damage.PositionalDamage Maven / Gradle / Ivy

package net.minestom.server.entity.damage;

import net.minestom.server.coordinate.Point;
import org.jetbrains.annotations.NotNull;

/**
 * Represents damage that is associated with a certain position.
 */
public class PositionalDamage extends Damage {

    public PositionalDamage(@NotNull DamageType type, @NotNull Point sourcePosition, float amount) {
        super(type, null, null, sourcePosition, amount);
    }

    @Override
    public @NotNull Point getSourcePosition() {
        return super.getSourcePosition();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy