public class EntityBoat extends EntityVehicle implements org.cloudburstmc.api.entity.vehicle.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(org.cloudburstmc.api.entity.EntityType<org.cloudburstmc.api.entity.vehicle.Boat> type,
org.cloudburstmc.api.level.Location location) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
attack(org.cloudburstmc.api.event.entity.EntityDamageEvent source) |
boolean |
canPassThrough() |
void |
close() |
float |
getBaseOffset() |
float |
getDrag() |
float |
getGravity() |
float |
getHeight() |
String |
getInteractButtonText() |
com.nukkitx.math.vector.Vector3f |
getMountedOffset(org.cloudburstmc.api.entity.Entity entity) |
double |
getWaterLevel() |
float |
getWidth() |
int |
getWoodType() |
protected void |
initEntity() |
boolean |
isControlling(org.cloudburstmc.api.entity.Entity entity) |
void |
kill() |
boolean |
mount(org.cloudburstmc.api.entity.Entity entity) |
boolean |
mount(org.cloudburstmc.api.entity.Entity entity,
org.cloudburstmc.api.util.data.MountType mode)
Mount or dismounts an Entity from a/into vehicle
|
void |
onDismount(org.cloudburstmc.api.entity.Entity passenger) |
void |
onEntityCollision(org.cloudburstmc.api.entity.Entity entity) |
boolean |
onInteract(org.cloudburstmc.api.player.Player player,
org.cloudburstmc.api.item.ItemStack item,
com.nukkitx.math.vector.Vector3f clickedPos) |
void |
onMount(org.cloudburstmc.api.entity.Entity passenger) |
void |
onPaddle(com.nukkitx.protocol.bedrock.packet.AnimatePacket.Action animation,
float value) |
boolean |
onUpdate(int currentTick) |
void |
setWoodType(org.cloudburstmc.api.util.data.TreeSpecies woodType) |
protected void |
updatePassengerPosition(org.cloudburstmc.api.entity.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, despawnFrom, despawnFromAll, dismount, entityBaseTick, entityBaseTick, extinguish, fall, fastMove, getAbsorption, getAir, getBlocksAround, getBoundingBox, getCardinalDirection, getChunk, getCollisionBlocks, getData, getDirection, getDirectionPlane, getDirectionVector, getEffect, getEffect, getEffects, getEyeHeight, getFireTicks, getHealth, getHighestPosition, getHorizontalDirection, getLastDamageCause, getLength, getLevel, getLocation, getMaxHealth, 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, hasEffect, 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, removeEffect, resetFallDistance, respawnToAll, saveAdditionalData, 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, updateMovementclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddEffect, attack, canBeMovedByCurrents, canCollide, canCollideWith, canTriggerPressurePlate, despawnFrom, despawnFromAll, extinguish, fall, getAbsorption, getBoundingBox, getChunk, getDirection, getDirectionPlane, getDirectionVector, getEffect, getEffect, getEffects, getEyeHeight, getFireTicks, getHealth, getHighestPosition, getHorizontalDirection, getLastDamageCause, getLength, 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, isNameTagVisible, isOnFire, isOnGround, isPassenger, isUndead, 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 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(org.cloudburstmc.api.entity.EntityType<org.cloudburstmc.api.entity.vehicle.Boat> type,
org.cloudburstmc.api.level.Location location)
protected void initEntity()
initEntity in class BaseEntitypublic int getWoodType()
public void setWoodType(org.cloudburstmc.api.util.data.TreeSpecies woodType)
setWoodType in interface org.cloudburstmc.api.entity.vehicle.Boatpublic float getHeight()
getHeight in interface org.cloudburstmc.api.entity.EntitygetHeight in class BaseEntitypublic float getWidth()
getWidth in interface org.cloudburstmc.api.entity.EntitygetWidth in class BaseEntitypublic float getDrag()
getDrag in interface org.cloudburstmc.api.entity.EntitygetDrag in class BaseEntitypublic float getGravity()
getGravity in interface org.cloudburstmc.api.entity.EntitygetGravity in class BaseEntitypublic float getBaseOffset()
getBaseOffset in class BaseEntitypublic String getInteractButtonText()
getInteractButtonText in interface org.cloudburstmc.api.entity.InteractablegetInteractButtonText in class EntityVehiclepublic boolean attack(org.cloudburstmc.api.event.entity.EntityDamageEvent source)
attack in interface org.cloudburstmc.api.entity.Entityattack in class EntityVehiclepublic void close()
close in interface org.cloudburstmc.api.entity.Entityclose in class BaseEntitypublic boolean onUpdate(int currentTick)
onUpdate in interface org.cloudburstmc.api.entity.EntityonUpdate in class EntityVehiclepublic void updatePassengers()
updatePassengers in class BaseEntitypublic void updatePassengers(boolean sendLinks)
public double getWaterLevel()
public boolean mount(org.cloudburstmc.api.entity.Entity entity)
mount in interface org.cloudburstmc.api.entity.Entitypublic void onMount(org.cloudburstmc.api.entity.Entity passenger)
onMount in interface org.cloudburstmc.api.entity.EntityonMount in class BaseEntitypublic void onDismount(org.cloudburstmc.api.entity.Entity passenger)
onDismount in interface org.cloudburstmc.api.entity.EntityonDismount in class BaseEntityprotected void updatePassengerPosition(org.cloudburstmc.api.entity.Entity passenger)
updatePassengerPosition in class BaseEntitypublic boolean isControlling(org.cloudburstmc.api.entity.Entity entity)
isControlling in interface org.cloudburstmc.api.entity.EntityisControlling in class BaseEntitypublic boolean onInteract(org.cloudburstmc.api.player.Player player,
org.cloudburstmc.api.item.ItemStack item,
com.nukkitx.math.vector.Vector3f clickedPos)
onInteract in interface org.cloudburstmc.api.entity.EntityonInteract in class BaseEntitypublic com.nukkitx.math.vector.Vector3f getMountedOffset(org.cloudburstmc.api.entity.Entity entity)
getMountedOffset in class BaseEntitypublic void onPaddle(com.nukkitx.protocol.bedrock.packet.AnimatePacket.Action animation,
float value)
public void onEntityCollision(org.cloudburstmc.api.entity.Entity entity)
onEntityCollision in interface org.cloudburstmc.api.entity.EntityonEntityCollision in class BaseEntitypublic boolean canPassThrough()
canPassThrough in interface org.cloudburstmc.api.entity.EntitycanPassThrough in class BaseEntitypublic void kill()
kill in interface org.cloudburstmc.api.entity.Entitykill in class BaseEntitypublic boolean mount(org.cloudburstmc.api.entity.Entity entity,
org.cloudburstmc.api.util.data.MountType mode)
BaseEntitymount in interface org.cloudburstmc.api.entity.Entitymount in interface org.cloudburstmc.api.entity.Rideablemount in class BaseEntityentity - The target Entitytrue if the mounting successfulCopyright © 2021. All rights reserved.