public class GlowFishingHook extends GlowProjectile implements org.bukkit.entity.FishHook
| Modifier and Type | Field and Description |
|---|---|
static com.flowpowered.network.Message[] |
EMPTY_MESSAGE_ARRAY |
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 |
|---|
GlowFishingHook(org.bukkit.Location location,
org.bukkit.inventory.ItemStack itemStack,
org.bukkit.entity.Player angler)
Creates a fishing bob.
|
| 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) |
List<com.flowpowered.network.Message> |
createSpawnMessage()
Creates a list of
Messages which can be sent to a client to spawn this entity. |
double |
getBiteChance()
Deprecated.
|
protected int |
getObjectId() |
void |
pulse()
Called every game cycle.
|
void |
reelIn()
Removes this fishing hook.
|
void |
setBiteChance(double v)
Deprecated.
|
void |
setShooter(org.bukkit.projectiles.ProjectileSource shooter) |
boolean |
shouldSave()
Checks whether this entity should be saved as part of the world.
|
doesBounce, getShooter, hasDefaultLandingBehavior, isGlowing, isInvulnerable, pulsePhysics, setBounce, setGlowing, setInvulnerableaddAttachment, 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, setOnGround, setOp, setPassenger, setPortalCooldown, setRawLocation, setRawLocation, setSilent, setSize, setTicksLived, setUniqueId, setVelocity, spigot, teleport, teleport, teleport, teleport, teleportToEnd, teleportToSpawn, toString, updateBoundingBoxclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddPassenger, 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, spigot, teleport, teleport, teleport, teleportgetMetadata, hasMetadata, removeMetadata, setMetadatagetName, sendMessage, sendMessage, sendMessage, sendMessagepublic static final com.flowpowered.network.Message[] EMPTY_MESSAGE_ARRAY
public GlowFishingHook(org.bukkit.Location location,
org.bukkit.inventory.ItemStack itemStack,
org.bukkit.entity.Player angler)
location - the locationitemStack - the fishing rod (used to handle enchantments) or null (equivalent toangler - the player who is casting this fish hook (must be set at spawn time)public void setShooter(org.bukkit.projectiles.ProjectileSource shooter)
setShooter in interface org.bukkit.entity.ProjectilesetShooter in class GlowProjectilepublic List<com.flowpowered.network.Message> createSpawnMessage()
GlowEntityMessages which can be sent to a client to spawn this entity.
Implementations in concrete subclasses may return a shallowly immutable list.createSpawnMessage in class GlowProjectilepublic void collide(org.bukkit.block.Block block)
GlowEntitycollide in class GlowProjectileblock - a block whose type Material.isOccluding()public void collide(org.bukkit.entity.LivingEntity entity)
collide in class GlowProjectileprotected int getObjectId()
getObjectId in class GlowProjectilepublic boolean shouldSave()
GlowEntityshouldSave in class GlowEntity@Deprecated public double getBiteChance()
getBiteChance in interface org.bukkit.entity.FishHook@Deprecated public void setBiteChance(double v) throws IllegalArgumentException
setBiteChance in interface org.bukkit.entity.FishHookIllegalArgumentExceptionpublic void pulse()
GlowEntitypulse in class GlowEntitypublic void reelIn()
Copyright © 2021. All rights reserved.