public class EntityFishingHook extends EntityProjectile implements org.cloudburstmc.api.entity.projectile.FishingHook
| Modifier and Type | Field and Description |
|---|---|
boolean |
attracted |
int |
attractTimer |
boolean |
caught |
boolean |
chance |
static int |
CHANCE |
int |
coughtTimer |
com.nukkitx.math.vector.Vector3f |
fish |
static int |
WAIT_CHANCE |
int |
waitChance |
closeOnCollide, damage, hadCollisionabsorption, 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 and Description |
|---|
EntityFishingHook(org.cloudburstmc.api.entity.EntityType<org.cloudburstmc.api.entity.projectile.FishingHook> type,
org.cloudburstmc.api.level.Location location) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
attractFish() |
void |
fishBites() |
float |
getDrag() |
float |
getGravity() |
float |
getHeight() |
float |
getLength() |
org.cloudburstmc.api.item.ItemStack |
getRod() |
int |
getWaterHeight() |
float |
getWidth() |
boolean |
isCritical() |
void |
onCollideWithEntity(org.cloudburstmc.api.entity.Entity entity) |
boolean |
onUpdate(int currentTick) |
void |
reelLine() |
void |
setCritical(boolean critical) |
void |
setRod(org.cloudburstmc.api.item.ItemStack rod) |
void |
spawnFish() |
attack, canCollideWith, getBaseDamage, getDamage, getResultDamage, initEntity, loadAdditionalData, saveAdditionalData, setCritical, setDamageaddEffect, 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, updatePassengersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDamage, getShooter, setCritical, setDamage, setShooteraddEffect, 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, teleportpublic static final int WAIT_CHANCE
public static final int CHANCE
public boolean chance
public int waitChance
public boolean attracted
public int attractTimer
public boolean caught
public int coughtTimer
public com.nukkitx.math.vector.Vector3f fish
public EntityFishingHook(org.cloudburstmc.api.entity.EntityType<org.cloudburstmc.api.entity.projectile.FishingHook> type,
org.cloudburstmc.api.level.Location location)
public float getWidth()
getWidth in interface org.cloudburstmc.api.entity.EntitygetWidth in class BaseEntitypublic float getLength()
getLength in interface org.cloudburstmc.api.entity.EntitygetLength in class BaseEntitypublic float getHeight()
getHeight in interface org.cloudburstmc.api.entity.EntitygetHeight in class BaseEntitypublic float getGravity()
getGravity in interface org.cloudburstmc.api.entity.EntitygetGravity in class BaseEntitypublic float getDrag()
getDrag in interface org.cloudburstmc.api.entity.EntitygetDrag in class BaseEntity@Nullable public org.cloudburstmc.api.item.ItemStack getRod()
getRod in interface org.cloudburstmc.api.entity.projectile.FishingHookpublic void setRod(@Nullable org.cloudburstmc.api.item.ItemStack rod)
setRod in interface org.cloudburstmc.api.entity.projectile.FishingHookpublic boolean onUpdate(int currentTick)
onUpdate in interface org.cloudburstmc.api.entity.EntityonUpdate in class EntityProjectilepublic int getWaterHeight()
public void fishBites()
public void spawnFish()
public boolean attractFish()
public void reelLine()
reelLine in interface org.cloudburstmc.api.entity.projectile.FishingHookpublic void onCollideWithEntity(org.cloudburstmc.api.entity.Entity entity)
onCollideWithEntity in class EntityProjectilepublic boolean isCritical()
isCritical in interface org.cloudburstmc.api.entity.ProjectileisCritical in class EntityProjectilepublic void setCritical(boolean critical)
setCritical in interface org.cloudburstmc.api.entity.ProjectilesetCritical in class EntityProjectileCopyright © 2021. All rights reserved.