public class EntityArrow extends EntityProjectile implements Arrow
| Modifier and Type | Field and Description |
|---|---|
protected float |
drag |
protected float |
gravity |
static int |
PICKUP_ANY |
static int |
PICKUP_CREATIVE |
static int |
PICKUP_NONE |
protected int |
pickupMode |
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 |
|---|
EntityArrow(EntityType<Arrow> type,
Location location) |
| Modifier and Type | Method and Description |
|---|---|
protected float |
getBaseDamage() |
float |
getDrag() |
float |
getGravity() |
float |
getHeight() |
float |
getLength() |
int |
getPickupMode() |
int |
getResultDamage() |
float |
getWidth() |
void |
loadAdditionalData(com.nukkitx.nbt.NbtMap tag) |
boolean |
onUpdate(int currentTick) |
void |
saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag) |
void |
setPickupMode(int pickupMode) |
attack, canCollideWith, getDamage, initEntity, isCritical, onCollideWithEntity, setCritical, setCritical, setDamageaddEffect, addMotion, addMovement, attack, broadcastLinkPacket, canBeMovedByCurrents, canClimb, canClimbWalls, canCollide, canPassThrough, canTriggerPressurePlate, canTriggerWalking, checkBlockCollision, checkChunks, checkGroundState, checkObstruction, checkObstruction, close, createAddEntityPacket, despawnFrom, despawnFromAll, dismount, entityBaseTick, entityBaseTick, extinguish, fall, fastMove, getAbsorption, getAir, getBaseOffset, getBlocksAround, getBoundingBox, getCardinalDirection, getCollisionBlocks, getData, getDirection, getDirectionPlane, getDirectionVector, getEffect, getEffects, getEyeHeight, getFireTicks, getHealth, getHighestPosition, getHorizontalDirection, getLastDamageCause, getLevel, getLocation, getMaxHealth, getMetadata, 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, hasMetadata, 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, removeMetadata, resetFallDistance, respawnToAll, scheduleUpdate, sendData, sendData, sendFlags, sendPotionEffects, setAbsorption, setAir, setCanClimb, setCanClimb, setCanClimbWalls, setCanClimbWalls, setFallDistance, setHealth, setHighestPosition, setImmobile, setImmobile, setInvulnerable, setLastDamageCause, setMaxHealth, setMetadata, setMotion, setNameTag, setNameTagAlwaysVisible, setNameTagAlwaysVisible, setNameTagVisible, setNameTagVisible, setNoDamageTicks, setOnFire, setOnGround, setOwner, setPosition, setPositionAndRotation, setRotation, setScale, setScoreTag, setSeatPosition, spawnTo, spawnToAll, switchLevel, teleport, teleport, teleport, teleport, toString, updateFallState, updateMovement, updatePassengerPosition, updatePassengersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDamage, getShooter, isCritical, setCritical, setCritical, setDamage, setShooteraddEffect, attack, attack, canBeMovedByCurrents, canCollide, canCollideWith, canPassThrough, canTriggerPressurePlate, close, despawnFrom, despawnFromAll, dismount, extinguish, fall, getAbsorption, getBoundingBox, getData, getDirection, getDirectionPlane, getDirectionVector, getEffect, getEffects, getEyeHeight, getFireTicks, getHealth, getHighestPosition, getHorizontalDirection, getLastDamageCause, getLevel, getLocation, getMaxHealth, getMotion, getName, getNameTag, getNoDamageTicks, getOwner, getPassengers, getPitch, getPosition, getRuntimeId, getScale, getSeatPosition, getServer, getTag, getType, getUniqueId, getVehicle, getViewers, getX, getY, getYaw, getZ, hasControllingPassenger, hasEffect, hasNameTag, heal, heal, isAlive, isClosed, isControlling, isNameTagVisible, isOnFire, isOnGround, isPassenger, isUndead, kill, mount, mount, onDismount, onEntityCollision, onInteract, onMount, onStruckByLightning, removeAllEffects, removeEffect, resetFallDistance, setAbsorption, setHealth, setHighestPosition, setMaxHealth, setMotion, setNameTag, setNoDamageTicks, setOnFire, setOnGround, setOwner, setPosition, setPositionAndRotation, setRotation, setScale, setSeatPosition, spawnTo, spawnToAll, teleport, teleport, teleport, teleportgetMetadata, hasMetadata, removeMetadata, setMetadatapublic static final int PICKUP_NONE
public static final int PICKUP_ANY
public static final int PICKUP_CREATIVE
protected int pickupMode
protected float gravity
protected float drag
public EntityArrow(EntityType<Arrow> type, Location location)
public float getWidth()
getWidth in interface EntitygetWidth in class BaseEntitypublic float getLength()
getLength in interface EntitygetLength in class BaseEntitypublic float getHeight()
getHeight in interface EntitygetHeight in class BaseEntitypublic float getGravity()
getGravity in interface EntitygetGravity in class BaseEntitypublic float getDrag()
getDrag in interface EntitygetDrag in class BaseEntitypublic int getResultDamage()
getResultDamage in class EntityProjectileprotected float getBaseDamage()
getBaseDamage in class EntityProjectilepublic boolean onUpdate(int currentTick)
onUpdate in interface EntityonUpdate in class EntityProjectilepublic void loadAdditionalData(com.nukkitx.nbt.NbtMap tag)
loadAdditionalData in interface EntityloadAdditionalData in class EntityProjectilepublic void saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)
saveAdditionalData in interface EntitysaveAdditionalData in class EntityProjectilepublic int getPickupMode()
public void setPickupMode(int pickupMode)
Copyright © 2020. All rights reserved.