Package org.bukkit.entity
Interface Trident
- All Superinterfaces:
- AbstractArrow,- Audience,- CommandSender,- Entity,- HoverEventSource<HoverEvent.ShowEntity>,- Metadatable,- Nameable,- Permissible,- PersistentDataHolder,- Pointered,- Projectile,- ServerOperator,- Sound.Emitter,- ThrowableProjectile
Represents a thrown trident.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.bukkit.entity.AbstractArrowAbstractArrow.PickupRule, AbstractArrow.PickupStatusNested classes/interfaces inherited from interface org.bukkit.entity.EntityEntity.Spigot
- 
Method SummaryModifier and TypeMethodDescriptiondoubleGets the base amount of damage this trident will do.intReturns the loyalty level of the trident.booleanGets if this trident has dealt damage to an entity yet or has hit the floor.booleanhasGlint()Returns whether the trident has an enchanted glow.voidsetDamage(double damage) Sets the base amount of damage this trident will do.voidsetGlint(boolean glint) Sets whether the trident has an enchanted glow.voidsetHasDealtDamage(boolean hasDealtDamage) Sets if this trident has dealt damage to an entity yet or has hit the floor.voidsetLoyaltyLevel(int loyaltyLevel) Sets the loyalty level of the trident.Methods inherited from interface org.bukkit.entity.AbstractArrowgetAttachedBlock, getHitSound, getItemStack, getKnockbackStrength, getLifetimeTicks, getPickupRule, getPickupStatus, getPierceLevel, hasNoPhysics, isCritical, isInBlock, isShotFromCrossbow, setCritical, setHitSound, setKnockbackStrength, setLifetimeTicks, setNoPhysics, setPickupRule, setPickupStatus, setPierceLevel, setShotFromCrossbowMethods inherited from interface net.kyori.adventure.audience.AudienceclearTitle, deleteMessage, deleteMessage, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendTitlePart, showBossBar, showTitle, stopSound, stopSoundMethods inherited from interface org.bukkit.command.CommandSendergetName, name, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlainMessage, sendRichMessage, sendRichMessageMethods inherited from interface org.bukkit.entity.EntityaddPassenger, addScoreboardTag, asHoverEvent, collidesAt, eject, fromMobSpawner, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPitch, getPortalCooldown, getPose, getScheduler, getScoreboardEntryName, getScoreboardTags, getServer, getSpawnCategory, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTicksLived, getTrackedPlayers, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, getX, getY, getYaw, getZ, hasFixedPose, hasGravity, isCustomNameVisible, isDead, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInBubbleColumn, isInLava, isInPowderedSnow, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isOnGround, isPersistent, isSilent, isSneaking, isTicking, isUnderWater, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, lockFreezeTicks, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setPose, setPose, setRotation, setSilent, setSneaking, setTicksLived, setVelocity, setVisibleByDefault, setVisualFire, spawnAt, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleport, teleport, teleport, teleportAsync, teleportAsync, wouldCollideUsingMethods inherited from interface net.kyori.adventure.text.event.HoverEventSourceasHoverEventMethods inherited from interface org.bukkit.metadata.MetadatablegetMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.NameablecustomName, customName, getCustomName, setCustomNameMethods inherited from interface org.bukkit.permissions.PermissibleaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, permissionValue, permissionValue, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainerMethods inherited from interface net.kyori.adventure.pointer.Pointeredget, getOrDefault, getOrDefaultFrom, pointersMethods inherited from interface org.bukkit.entity.ProjectilecanHitEntity, doesBounce, getOwnerUniqueId, getShooter, hasBeenShot, hasLeftShooter, hitEntity, hitEntity, setBounce, setHasBeenShot, setHasLeftShooter, setShooterMethods inherited from interface org.bukkit.permissions.ServerOperatorisOp, setOpMethods inherited from interface org.bukkit.entity.ThrowableProjectilegetItem, setItem
- 
Method Details- 
hasGlintboolean hasGlint()Returns whether the trident has an enchanted glow. This can be separate from the underlying item having any enchantments.- Returns:
- whether the trident has an enchanted glow
 
- 
setGlintvoid setGlint(boolean glint) Sets whether the trident has an enchanted glow. This is separate from the underlying item having any enchantments.- Parameters:
- glint- whether the trident should have an enchanted glow
 
- 
getLoyaltyLevelint getLoyaltyLevel()Returns the loyalty level of the trident. This can be separate from the underlying item's enchantments.- Returns:
- loyalty level of the trident
 
- 
setLoyaltyLevelvoid setLoyaltyLevel(int loyaltyLevel) Sets the loyalty level of the trident. This is separate from the underlying item's enchantments.- Parameters:
- loyaltyLevel- loyalty level
- Throws:
- IllegalArgumentException- if the loyalty level is lower than 0 or greater than 127
 
- 
hasDealtDamageboolean hasDealtDamage()Gets if this trident has dealt damage to an entity yet or has hit the floor. If neither of these events have occurred yet, this will return false.- Returns:
- has dealt damage
 
- 
setHasDealtDamagevoid setHasDealtDamage(boolean hasDealtDamage) Sets if this trident has dealt damage to an entity yet or has hit the floor.- Parameters:
- hasDealtDamage- has dealt damage or hit the floor
 
- 
setDamagevoid setDamage(double damage) Sets the base amount of damage this trident will do.- Specified by:
- setDamagein interface- AbstractArrow
- Parameters:
- damage- new damage amount
 
- 
getDamagedouble getDamage()Gets the base amount of damage this trident will do. Defaults to 8.0 for a normal trident with0.5 * (1 + power level)added for trident fired from damage enchanted bows.- Specified by:
- getDamagein interface- AbstractArrow
- Returns:
- base damage amount
 
 
-