Class EntityFishingHook
java.lang.Object
org.cloudburstmc.server.entity.BaseEntity
org.cloudburstmc.server.entity.projectile.EntityProjectile
org.cloudburstmc.server.entity.projectile.EntityFishingHook
- All Implemented Interfaces:
org.cloudburstmc.api.entity.Entity,org.cloudburstmc.api.entity.Projectile,org.cloudburstmc.api.entity.projectile.FishingHook
public class EntityFishingHook
extends EntityProjectile
implements org.cloudburstmc.api.entity.projectile.FishingHook
Created by PetteriM1
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanintbooleanbooleanstatic intintcom.nukkitx.math.vector.Vector3fstatic intintFields inherited from class org.cloudburstmc.server.entity.projectile.EntityProjectile
closeOnCollide, damage, hadCollisionFields inherited from class org.cloudburstmc.server.entity.BaseEntity
absorption, age, blocksAround, boundingBox, chunk, closed, collisionBlockStates, data, deadTicks, effects, entityCollisionReduction, fallDistance, fireProof, fireTicks, firstMove, hasSpawned, health, highestPosition, inBlock, inPortalTicks, invulnerable, isCollided, isCollidedHorizontally, isCollidedVertically, isPlayer, isStatic, justCreated, keepMovement, lastDamageCause, lastMotion, lastPitch, lastPosition, lastUpdate, lastYaw, level, maxFireTicks, motion, motionChanged, noDamageTicks, onGround, passengers, pitch, pitchDelta, position, positionChanged, scale, server, tag, ticksLived, timing, vehicle, yaw, yawDelta, ySize -
Constructor Summary
ConstructorsConstructorDescriptionEntityFishingHook(org.cloudburstmc.api.entity.EntityType<org.cloudburstmc.api.entity.projectile.FishingHook> type, org.cloudburstmc.api.level.Location location) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidfloatgetDrag()floatfloatfloatorg.cloudburstmc.api.item.ItemStackgetRod()intfloatgetWidth()booleanvoidonCollideWithEntity(org.cloudburstmc.api.entity.Entity entity)booleanonUpdate(int currentTick)voidreelLine()voidsetCritical(boolean critical)voidsetRod(org.cloudburstmc.api.item.ItemStack rod)voidMethods inherited from class org.cloudburstmc.server.entity.projectile.EntityProjectile
attack, canCollideWith, getBaseDamage, getDamage, getResultDamage, initEntity, loadAdditionalData, saveAdditionalData, setCritical, setDamageMethods inherited from class org.cloudburstmc.server.entity.BaseEntity
addEffect, addMotion, addMovement, attack, broadcastLinkPacket, canBeMovedByCurrents, canClimb, canClimbWalls, canCollide, canPassThrough, canTriggerPressurePlate, canTriggerWalking, checkBlockCollision, checkChunks, checkGroundState, checkObstruction, checkObstruction, close, createAddEntityPacket, despawnFrom, despawnFrom, despawnFromAll, dismount, entityBaseTick, entityBaseTick, extinguish, fall, fastMove, getAbsorption, getAir, getBaseOffset, getBlocksAround, getBoundingBox, getCardinalDirection, getChunk, getCollisionBlocks, getData, getDirection, getDirectionPlane, getDirectionVector, getEffect, getEffect, getEffects, getEyeHeight, getFireTicks, getHealth, getHighestPosition, getHorizontalDirection, getLastDamageCause, getLevel, getLocation, getMaxHealth, getMotion, getMountedOffset, getName, getNameTag, getNoDamageTicks, getOwner, getPassenger, getPassengers, getPitch, getPosition, getRuntimeId, getScale, getScoreTag, getSeatPosition, getServer, getStepHeight, getTag, getType, getUniqueId, getVehicle, getViewers, getX, getY, getYaw, getZ, handleLavaMovement, hasControllingPassenger, hasEffect, hasEffect, hasNameTag, heal, heal, init, isAlive, isClosed, isControlling, isImmobile, isInsideOfFire, isInsideOfSolid, isInsideOfWater, isInvulnerable, isNameTagAlwaysVisible, isNameTagVisible, isOnGround, isPassenger, kill, mount, move, move, onCollideWithPlayer, onDismount, onEntityCollision, onInteract, onInteract, onMount, onStruckByLightning, recalculateBoundingBox, recalculateEffectColor, removeAllEffects, removeEffect, removeEffect, resetFallDistance, respawnToAll, scheduleUpdate, sendData, sendData, sendFlags, sendPotionEffects, setAbsorption, setAir, setCanClimb, setCanClimb, setCanClimbWalls, setCanClimbWalls, setFallDistance, setHealth, setHighestPosition, setImmobile, setImmobile, setInvulnerable, setLastDamageCause, setMaxHealth, setMotion, setNameTag, setNameTagAlwaysVisible, setNameTagAlwaysVisible, setNameTagVisible, setNameTagVisible, setNoDamageTicks, setOnFire, setOnGround, setOwner, setPosition, setPositionAndRotation, setRotation, setScale, setScoreTag, setSeatPosition, spawnTo, spawnTo, spawnToAll, switchLevel, teleport, teleport, teleport, teleport, toString, updateFallState, updateMovement, updatePassengerPosition, updatePassengersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.cloudburstmc.api.entity.Entity
addEffect, attack, attack, canBeMovedByCurrents, canCollide, canCollideWith, canPassThrough, canTriggerPressurePlate, close, despawnFrom, despawnFromAll, dismount, extinguish, fall, getAbsorption, getBoundingBox, getChunk, getDirection, getDirectionPlane, getDirectionVector, getEffect, getEffect, getEffects, getEyeHeight, getFireTicks, getHealth, getHighestPosition, getHorizontalDirection, getLastDamageCause, getLevel, getLocation, getMaxHealth, getMotion, getName, getNameTag, getNoDamageTicks, getOwner, getPassengers, getPitch, getPosition, getRuntimeId, getScale, getSeatPosition, getServer, getType, getUniqueId, getVehicle, getViewers, getX, getY, getYaw, getZ, hasControllingPassenger, hasEffect, hasEffect, hasNameTag, heal, heal, isAlive, isClosed, isControlling, isNameTagVisible, isOnFire, isOnGround, isPassenger, isUndead, kill, mount, mount, onDismount, onEntityCollision, onInteract, onMount, onStruckByLightning, removeAllEffects, removeEffect, removeEffect, resetFallDistance, setAbsorption, setHealth, setHighestPosition, setMaxHealth, setMotion, setNameTag, setNameTagVisible, setNoDamageTicks, setOnFire, setOnGround, setOwner, setPosition, setPositionAndRotation, setRotation, setScale, setSeatPosition, spawnTo, spawnToAll, teleport, teleport, teleport, teleportMethods inherited from interface org.cloudburstmc.api.entity.Projectile
getDamage, getShooter, setCritical, setDamage, setShooter
-
Field Details
-
WAIT_CHANCE
public static final int WAIT_CHANCE- See Also:
- Constant Field Values
-
CHANCE
public static final int CHANCE- See Also:
- Constant Field Values
-
chance
public boolean chance -
waitChance
public int waitChance -
attracted
public boolean attracted -
attractTimer
public int attractTimer -
caught
public boolean caught -
coughtTimer
public int coughtTimer -
fish
public com.nukkitx.math.vector.Vector3f fish
-
-
Constructor Details
-
EntityFishingHook
public EntityFishingHook(org.cloudburstmc.api.entity.EntityType<org.cloudburstmc.api.entity.projectile.FishingHook> type, org.cloudburstmc.api.level.Location location)
-
-
Method Details
-
getWidth
public float getWidth()- Specified by:
getWidthin interfaceorg.cloudburstmc.api.entity.Entity- Overrides:
getWidthin classBaseEntity
-
getLength
public float getLength()- Specified by:
getLengthin interfaceorg.cloudburstmc.api.entity.Entity- Overrides:
getLengthin classBaseEntity
-
getHeight
public float getHeight()- Specified by:
getHeightin interfaceorg.cloudburstmc.api.entity.Entity- Overrides:
getHeightin classBaseEntity
-
getGravity
public float getGravity()- Specified by:
getGravityin interfaceorg.cloudburstmc.api.entity.Entity- Overrides:
getGravityin classBaseEntity
-
getDrag
public float getDrag()- Specified by:
getDragin interfaceorg.cloudburstmc.api.entity.Entity- Overrides:
getDragin classBaseEntity
-
getRod
@Nullable public org.cloudburstmc.api.item.ItemStack getRod()- Specified by:
getRodin interfaceorg.cloudburstmc.api.entity.projectile.FishingHook
-
setRod
public void setRod(@Nullable org.cloudburstmc.api.item.ItemStack rod)- Specified by:
setRodin interfaceorg.cloudburstmc.api.entity.projectile.FishingHook
-
onUpdate
public boolean onUpdate(int currentTick)- Specified by:
onUpdatein interfaceorg.cloudburstmc.api.entity.Entity- Overrides:
onUpdatein classEntityProjectile
-
getWaterHeight
public int getWaterHeight() -
fishBites
public void fishBites() -
spawnFish
public void spawnFish() -
attractFish
public boolean attractFish() -
reelLine
public void reelLine()- Specified by:
reelLinein interfaceorg.cloudburstmc.api.entity.projectile.FishingHook
-
onCollideWithEntity
public void onCollideWithEntity(org.cloudburstmc.api.entity.Entity entity)- Overrides:
onCollideWithEntityin classEntityProjectile
-
isCritical
public boolean isCritical()- Specified by:
isCriticalin interfaceorg.cloudburstmc.api.entity.Projectile- Overrides:
isCriticalin classEntityProjectile
-
setCritical
public void setCritical(boolean critical)- Specified by:
setCriticalin interfaceorg.cloudburstmc.api.entity.Projectile- Overrides:
setCriticalin classEntityProjectile
-