public class GlowArrow extends GlowProjectile implements org.bukkit.entity.Arrow
active, airDrag, applyDragBeforeAccel, boundingBox, ENTITY_ID_NOBODY, entityId, gravityAccel, liquidDrag, location, metadata, passengerChanged, previousLocation, removed, server, slipMultiplier, teleported, ticksLived, vehicle, velocity, velocityChanged, world, worldLock
Constructor and Description |
---|
GlowArrow(org.bukkit.Location location)
Creates an arrow entity.
|
Modifier and Type | Method and Description |
---|---|
void |
collide(org.bukkit.block.Block block)
Collide with the target block.
|
void |
collide(org.bukkit.entity.LivingEntity entity) |
org.bukkit.block.Block |
getAttachedBlock() |
int |
getKnockbackStrength() |
short |
getLife() |
protected int |
getObjectId() |
org.bukkit.entity.Arrow.PickupStatus |
getPickupStatus() |
boolean |
isCritical() |
boolean |
isInBlock() |
void |
pulse()
Called every game cycle.
|
protected void |
pulsePhysics() |
void |
setCritical(boolean critical) |
void |
setKnockbackStrength(int knockbackStrength) |
void |
setLife(short life) |
void |
setOnGround(boolean onGround)
Sets the on-ground flag and clears fall distance.
|
void |
setPickupStatus(org.bukkit.entity.Arrow.PickupStatus pickupStatus) |
org.bukkit.entity.Arrow.Spigot |
spigot() |
createSpawnMessage, doesBounce, getShooter, hasDefaultLandingBehavior, isGlowing, isInvulnerable, setBounce, setGlowing, setInvulnerable, setShooter
addAttachment, addAttachment, addAttachment, addAttachment, addPassenger, addScoreboardTag, createAfterSpawnMessage, createUpdateMessage, damage, damage, damage, damage, eject, entityInteract, equals, fromMobSpawner, getCardinalFacing, getChunk, getCustomName, getCustomTags, getDismountLocation, getEffectivePermissions, getEntityId, getFacing, getFallDistance, getFireTicks, getGravityAccel, getHeight, getLastDamageCause, getLeashedEntities, getLeashHolder, getLocation, getLocation, getMaxFireTicks, getMetadata, getMetadata, getMountLocation, getName, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasFriction, hasGravity, hashCode, hasMetadata, hasMoved, hasPermission, hasPermission, hasRotated, intersects, isCustomNameVisible, isDead, isEmpty, isInsideVehicle, isLeashed, isOnGround, isOp, isPermissionSet, isPermissionSet, isRemoved, isSilent, isTeleported, isTouchingMaterial, isValid, isWithinDistance, isWithinDistance, leaveVehicle, playEffect, playEffectKnownAndSelf, recalculatePermissions, remove, removeAttachment, removeMetadata, removePassenger, removeScoreboardTag, reset, sendMessage, sendMessage, setAirDrag, setApplyDragBeforeAccel, setBoundingBox, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setFriction, setGravity, setGravityAccel, setLastDamageCause, setLeashHolder, setLeashHolderUniqueId, setLiquidDrag, setMetadata, setOp, setPassenger, setPortalCooldown, setRawLocation, setRawLocation, setSilent, setSize, setTicksLived, setUniqueId, setVelocity, shouldSave, teleport, teleport, teleport, teleport, teleportToEnd, teleportToSpawn, toString, updateBoundingBox
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
doesBounce, getShooter, setBounce, setShooter
addPassenger, addScoreboardTag, eject, fromMobSpawner, getChunk, getEntityId, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPortalCooldown, setSilent, setTicksLived, setVelocity, teleport, teleport, teleport, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage, sendMessage, sendMessage
public GlowArrow(org.bukkit.Location location)
location
- the initial locationprotected void pulsePhysics()
pulsePhysics
in class GlowProjectile
public void setOnGround(boolean onGround)
GlowEntity
setOnGround
in class GlowEntity
onGround
- true if this entity is now on the ground; false otherwisepublic void pulse()
GlowEntity
pulse
in class GlowEntity
public void collide(org.bukkit.block.Block block)
GlowEntity
collide
in class GlowProjectile
block
- a block whose type Material.isOccluding()
public void collide(org.bukkit.entity.LivingEntity entity)
collide
in class GlowProjectile
protected int getObjectId()
getObjectId
in class GlowProjectile
public boolean isCritical()
isCritical
in interface org.bukkit.entity.Arrow
public void setCritical(boolean critical)
setCritical
in interface org.bukkit.entity.Arrow
public org.bukkit.entity.Arrow.PickupStatus getPickupStatus()
getPickupStatus
in interface org.bukkit.entity.Arrow
public void setPickupStatus(org.bukkit.entity.Arrow.PickupStatus pickupStatus)
setPickupStatus
in interface org.bukkit.entity.Arrow
public org.bukkit.block.Block getAttachedBlock()
getAttachedBlock
in interface org.bukkit.entity.Arrow
public boolean isInBlock()
isInBlock
in interface org.bukkit.entity.Arrow
public org.bukkit.entity.Arrow.Spigot spigot()
spigot
in interface org.bukkit.command.CommandSender
spigot
in interface org.bukkit.entity.Arrow
spigot
in interface org.bukkit.entity.Entity
spigot
in class GlowEntity
public int getKnockbackStrength()
getKnockbackStrength
in interface org.bukkit.entity.Arrow
public void setKnockbackStrength(int knockbackStrength)
setKnockbackStrength
in interface org.bukkit.entity.Arrow
public short getLife()
public void setLife(short life)
Copyright © 2021. All rights reserved.