public interface DamagingProjectile extends Projectile
Projectile
that inflicts damage.Modifier and Type | Method and Description |
---|---|
default MutableBoundedValue<Double> |
damage()
Gets the damage this projectile will deal to a
Living
if hit. |
default MapValue<EntityType,Double> |
damageForEntity()
Gets the
MapValue for representing the custom damage values to
use if the owner strikes an entity of that type. |
default DamagingData |
getDamagingData()
Gets the damaging data for this
DamagingProjectile . |
getShooter, setShooter
addPassenger, canSee, clearPassengers, createArchetype, createSnapshot, damage, getBaseVehicle, getBoundingBox, getCreator, getNearbyEntities, getNearbyEntities, getNotifier, getPassengers, getRandom, getRotation, getScale, getTransform, getType, getVehicle, getVelocity, gravity, hasPassenger, isLoaded, isOnGround, isRemoved, remove, removePassenger, setCreator, setLocation, setLocationAndRotation, setLocationAndRotation, setLocationAndRotationSafely, setLocationAndRotationSafely, setLocationSafely, setNotifier, setRotation, setScale, setTransform, setTransformSafely, setVehicle, setVelocity, transferToWorld, transferToWorld, transferToWorld, transferToWorld
getUniqueId
getLocation, getWorld
setRawData, validateRawData
getContentVersion, toContainer
getApplicableProperties, getProperty
copyFrom, copyFrom, get, getContainers, getOrCreate, offer, offer, offer, offer, offer, offer, remove, remove, remove, require, supports, transform, tryOffer, tryOffer, tryOffer, tryOffer, undo
copy, get, getKeys, getOrElse, getOrNull, getValue, getValues, require, supports, supports
getTranslation
default DamagingData getDamagingData()
DamagingProjectile
.
The damaging data defines how much damage the projectile will deal
upon hitting an Entity
, before the explosion.
default MutableBoundedValue<Double> damage()
Living
if hit.default MapValue<EntityType,Double> damageForEntity()
MapValue
for representing the custom damage values to
use if the owner strikes an entity of that type.
Note that in events, the damage defined for the provided
EntityType
will take priority over the "default" damage as
defined from damage()
.