public abstract class EntityVehicle extends BaseEntity implements Rideable, EntityInteractable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
rollingDirection |
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 and Description |
|---|
EntityVehicle(EntityType<?> type,
Location location) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
attack(EntityDamageEvent source) |
boolean |
canDoInteraction() |
int |
getDamage() |
String |
getInteractButtonText() |
int |
getRollingAmplitude() |
int |
getRollingDirection() |
boolean |
onUpdate(int currentTick) |
protected boolean |
performHurtAnimation() |
void |
setDamage(int damage) |
void |
setRollingAmplitude(int time) |
void |
setRollingDirection(int direction) |
addEffect, addMotion, addMovement, attack, broadcastLinkPacket, canBeMovedByCurrents, canClimb, canClimbWalls, canCollide, canCollideWith, 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, getDrag, getEffect, getEffects, getEyeHeight, getFireTicks, getGravity, getHealth, getHeight, getHighestPosition, getHorizontalDirection, getLastDamageCause, getLength, 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, getWidth, getX, getY, getYaw, getZ, handleLavaMovement, hasControllingPassenger, hasEffect, hasMetadata, hasNameTag, heal, heal, init, initEntity, isAlive, isClosed, isControlling, isImmobile, isInsideOfFire, isInsideOfSolid, isInsideOfWater, isInvulnerable, isNameTagAlwaysVisible, isNameTagVisible, isOnGround, isPassenger, kill, loadAdditionalData, mount, move, move, onCollideWithPlayer, onDismount, onEntityCollision, onInteract, onInteract, onMount, 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, updateMovement, updatePassengerPosition, updatePassengersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddEffect, attack, canBeMovedByCurrents, canCollide, canCollideWith, canPassThrough, canTriggerPressurePlate, close, despawnFrom, despawnFromAll, extinguish, fall, getAbsorption, getBoundingBox, getData, getDirection, getDirectionPlane, getDirectionVector, getDrag, getEffect, getEffects, getEyeHeight, getFireTicks, getGravity, getHealth, getHeight, getHighestPosition, getHorizontalDirection, getLastDamageCause, getLength, getLevel, getLocation, getMaxHealth, getMotion, getName, getNameTag, getNoDamageTicks, getOwner, getPassengers, getPitch, getPosition, getRuntimeId, getScale, getSeatPosition, getServer, getTag, getType, getUniqueId, getVehicle, getViewers, getWidth, getX, getY, getYaw, getZ, hasControllingPassenger, hasEffect, hasNameTag, heal, heal, isAlive, isClosed, isControlling, isNameTagVisible, isOnFire, isOnGround, isPassenger, isUndead, kill, loadAdditionalData, mount, onDismount, onEntityCollision, onInteract, onMount, 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 EntityVehicle(EntityType<?> type, Location location)
public int getRollingAmplitude()
public void setRollingAmplitude(int time)
public int getRollingDirection()
public void setRollingDirection(int direction)
public int getDamage()
public void setDamage(int damage)
public String getInteractButtonText()
getInteractButtonText in interface EntityInteractablepublic boolean canDoInteraction()
canDoInteraction in interface EntityInteractablepublic boolean onUpdate(int currentTick)
onUpdate in interface EntityonUpdate in class BaseEntityprotected boolean performHurtAnimation()
public boolean attack(EntityDamageEvent source)
attack in interface Entityattack in class BaseEntityCopyright © 2020. All rights reserved.