Interface Trident
- All Superinterfaces:
ArrowProjectile, Entity, HoverEventSource<HoverEvent.ShowEntity>, Projectile, SchedulerSource, Sound.Emitter, Sound.Source.Provider
A thrown trident (
minecraft:trident).
It only damages the first entity it hits. With Loyalty, it then flies back to its thrower.
- Since:
- 0.1.0
-
Method Summary
Methods inherited from interface ArrowProjectile
baseDamage, canBePickedUp, isCritical, isStuck, pickupItem, piercing, setBaseDamage, setCritical, weaponMethods inherited from interface Entity
chunk, displayName, entityId, isRemoved, location, remove, server, teleport, teleport, teleport, type, uuid, worldMethods inherited from interface HoverEventSource
asHoverEvent, asHoverEventMethods inherited from interface Projectile
owner, setVelocity, velocityX, velocityY, velocityZMethods inherited from interface SchedulerSource
execute, execute, executeDelayed, executeDelayed, isOwnedByCurrentThreadMethods inherited from interface Sound.Source.Provider
soundSource
-
Method Details
-
hasHit
boolean hasHit()Returnstrueonce this trident hurt an entity.- Returns:
trueonce this trident hurt an entity- Since:
- 0.1.0
-
loyalty
int loyalty()Returns the level of Loyalty of this trident,0when it does not come back.- Returns:
- the level of Loyalty of this trident,
0when it does not come back - Since:
- 0.1.0
-