public class EntityBoat extends EntityVehicle implements Boat
| Modifier and Type | Field and Description |
|---|---|
static int |
PASSENGER_INDEX |
static com.nukkitx.math.vector.Vector3f |
PASSENGER_OFFSET |
static int |
RIDER_INDEX |
static com.nukkitx.math.vector.Vector3f |
RIDER_OFFSET |
static com.nukkitx.math.vector.Vector3f |
RIDER_PASSENGER_OFFSET |
static com.nukkitx.math.vector.Vector3f |
RIDER_PLAYER_OFFSET |
protected boolean |
sinking |
static double |
SINKING_DEPTH |
static double |
SINKING_MAX_SPEED |
static double |
SINKING_SPEED |
rollingDirectionabsorption, 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 |
|---|
EntityBoat(EntityType<Boat> type,
Location location) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
attack(EntityDamageEvent source) |
boolean |
canPassThrough() |
void |
close() |
float |
getBaseOffset() |
float |
getDrag() |
float |
getGravity() |
float |
getHeight() |
String |
getInteractButtonText() |
com.nukkitx.math.vector.Vector3f |
getMountedOffset(Entity entity) |
double |
getWaterLevel() |
float |
getWidth() |
int |
getWoodType() |
protected void |
initEntity() |
boolean |
isControlling(Entity entity) |
void |
kill() |
boolean |
mount(Entity entity) |
boolean |
mount(Entity entity,
com.nukkitx.protocol.bedrock.data.entity.EntityLinkData.Type mode)
Mount or dismounts an Entity from a/into vehicle
|
void |
onDismount(Entity passenger) |
void |
onEntityCollision(Entity entity) |
boolean |
onInteract(Player player,
Item item,
com.nukkitx.math.vector.Vector3f clickedPos) |
void |
onMount(Entity passenger) |
void |
onPaddle(com.nukkitx.protocol.bedrock.packet.AnimatePacket.Action animation,
float value) |
boolean |
onUpdate(int currentTick) |
void |
setWoodType(int woodType) |
protected void |
updatePassengerPosition(Entity passenger) |
void |
updatePassengers() |
void |
updatePassengers(boolean sendLinks) |
canDoInteraction, getDamage, getRollingAmplitude, getRollingDirection, performHurtAnimation, setDamage, setRollingAmplitude, setRollingDirectionaddEffect, addMotion, addMovement, attack, broadcastLinkPacket, canBeMovedByCurrents, canClimb, canClimbWalls, canCollide, canCollideWith, canTriggerPressurePlate, canTriggerWalking, checkBlockCollision, checkChunks, checkGroundState, checkObstruction, checkObstruction, createAddEntityPacket, despawnFrom, despawnFromAll, dismount, entityBaseTick, entityBaseTick, extinguish, fall, fastMove, getAbsorption, getAir, getBlocksAround, getBoundingBox, getCardinalDirection, getCollisionBlocks, getData, getDirection, getDirectionPlane, getDirectionVector, getEffect, getEffects, getEyeHeight, getFireTicks, getHealth, getHighestPosition, getHorizontalDirection, getLastDamageCause, getLength, getLevel, getLocation, getMaxHealth, getMetadata, getMotion, 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, isImmobile, isInsideOfFire, isInsideOfSolid, isInsideOfWater, isInvulnerable, isNameTagAlwaysVisible, isNameTagVisible, isOnGround, isPassenger, loadAdditionalData, move, move, onCollideWithPlayer, onInteract, onStruckByLightning, recalculateBoundingBox, recalculateEffectColor, removeAllEffects, removeEffect, removeMetadata, resetFallDistance, respawnToAll, saveAdditionalData, 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, updateMovementclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddEffect, attack, canBeMovedByCurrents, canCollide, canCollideWith, canTriggerPressurePlate, despawnFrom, despawnFromAll, dismount, extinguish, fall, getAbsorption, getBoundingBox, getData, getDirection, getDirectionPlane, getDirectionVector, getEffect, getEffects, getEyeHeight, getFireTicks, getHealth, getHighestPosition, getHorizontalDirection, getLastDamageCause, getLength, 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, isNameTagVisible, isOnFire, isOnGround, isPassenger, isUndead, loadAdditionalData, onStruckByLightning, removeAllEffects, removeEffect, resetFallDistance, saveAdditionalData, 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 com.nukkitx.math.vector.Vector3f RIDER_PLAYER_OFFSET
public static final com.nukkitx.math.vector.Vector3f RIDER_OFFSET
public static final com.nukkitx.math.vector.Vector3f PASSENGER_OFFSET
public static final com.nukkitx.math.vector.Vector3f RIDER_PASSENGER_OFFSET
public static final int RIDER_INDEX
public static final int PASSENGER_INDEX
public static final double SINKING_DEPTH
public static final double SINKING_SPEED
public static final double SINKING_MAX_SPEED
protected boolean sinking
public EntityBoat(EntityType<Boat> type, Location location)
protected void initEntity()
initEntity in class BaseEntitypublic int getWoodType()
public void setWoodType(int woodType)
setWoodType in interface Boatpublic float getHeight()
getHeight in interface EntitygetHeight in class BaseEntitypublic float getWidth()
getWidth in interface EntitygetWidth in class BaseEntitypublic float getDrag()
getDrag in interface EntitygetDrag in class BaseEntitypublic float getGravity()
getGravity in interface EntitygetGravity in class BaseEntitypublic float getBaseOffset()
getBaseOffset in class BaseEntitypublic String getInteractButtonText()
getInteractButtonText in interface EntityInteractablegetInteractButtonText in class EntityVehiclepublic boolean attack(EntityDamageEvent source)
attack in interface Entityattack in class EntityVehiclepublic void close()
close in interface Entityclose in class BaseEntitypublic boolean onUpdate(int currentTick)
onUpdate in interface EntityonUpdate in class EntityVehiclepublic void updatePassengers()
updatePassengers in class BaseEntitypublic void updatePassengers(boolean sendLinks)
public double getWaterLevel()
public void onMount(Entity passenger)
onMount in interface EntityonMount in class BaseEntitypublic void onDismount(Entity passenger)
onDismount in interface EntityonDismount in class BaseEntityprotected void updatePassengerPosition(Entity passenger)
updatePassengerPosition in class BaseEntitypublic boolean isControlling(Entity entity)
isControlling in interface EntityisControlling in class BaseEntitypublic boolean onInteract(Player player, Item item, com.nukkitx.math.vector.Vector3f clickedPos)
onInteract in interface EntityonInteract in class BaseEntitypublic com.nukkitx.math.vector.Vector3f getMountedOffset(Entity entity)
getMountedOffset in class BaseEntitypublic void onPaddle(com.nukkitx.protocol.bedrock.packet.AnimatePacket.Action animation,
float value)
public void onEntityCollision(Entity entity)
onEntityCollision in interface EntityonEntityCollision in class BaseEntitypublic boolean canPassThrough()
canPassThrough in interface EntitycanPassThrough in class BaseEntitypublic void kill()
kill in interface Entitykill in class BaseEntitypublic boolean mount(Entity entity, com.nukkitx.protocol.bedrock.data.entity.EntityLinkData.Type mode)
BaseEntityCopyright © 2020. All rights reserved.