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
Message s 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, setInvulnerable
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, setOnGround, setOp, setPassenger, setPortalCooldown, setRawLocation, setRawLocation, setSilent, setSize, setTicksLived, setUniqueId, setVelocity, spigot, teleport, teleport, teleport, teleport, teleportToEnd, teleportToSpawn, toString, updateBoundingBox
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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, spigot, teleport, teleport, teleport, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage, sendMessage, sendMessage
public 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.Projectile
setShooter
in class GlowProjectile
public List<com.flowpowered.network.Message> createSpawnMessage()
GlowEntity
Message
s which can be sent to a client to spawn this entity.
Implementations in concrete subclasses may return a shallowly immutable list.createSpawnMessage
in class GlowProjectile
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 shouldSave()
GlowEntity
shouldSave
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.FishHook
IllegalArgumentException
public void pulse()
GlowEntity
pulse
in class GlowEntity
public void reelIn()
Copyright © 2021. All rights reserved.