public class EntityTntMinecart extends EntityAbstractMinecart implements TntMinecart, EntityExplosive
Nukkit Project.
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 |
|---|
EntityTntMinecart(EntityType<TntMinecart> type,
Location location) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(int x,
int y,
int z,
boolean flag) |
void |
dropItem() |
void |
explode() |
void |
explode(double square) |
MinecartType |
getMinecartType() |
void |
initEntity() |
boolean |
isRideable() |
boolean |
mount(Entity entity,
com.nukkitx.protocol.bedrock.data.entity.EntityLinkData.Type mode)
Mount or dismounts an Entity from a/into vehicle
|
boolean |
onInteract(Player player,
Item item,
com.nukkitx.math.vector.Vector3f clickedPos) |
boolean |
onUpdate(int currentTick) |
attack, canDoInteraction, close, getBaseOffset, getDerailedVelocityMod, getDisplayBlock, getDisplayOffset, getDrag, getFlyingVelocityMod, getHeight, getMaxSpeed, getName, getWidth, hasDisplay, hasNameTag, isSlowWhenEmpty, kill, loadAdditionalData, onEntityCollision, saveAdditionalData, setCurrentSpeed, setDerailedVelocityMod, setDisplay, setDisplayBlock, setDisplayBlockOffset, setFlyingVelocityMod, setMaximumSpeed, setName, setSlowWhenEmptygetDamage, getInteractButtonText, getRollingAmplitude, getRollingDirection, performHurtAnimation, setDamage, setRollingAmplitude, setRollingDirectionaddEffect, addMotion, addMovement, attack, broadcastLinkPacket, canBeMovedByCurrents, canClimb, canClimbWalls, canCollide, canCollideWith, canPassThrough, 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, getGravity, getHealth, getHighestPosition, getHorizontalDirection, getLastDamageCause, getLength, getLevel, getLocation, getMaxHealth, getMetadata, getMotion, getMountedOffset, 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, heal, heal, init, isAlive, isClosed, isControlling, isImmobile, isInsideOfFire, isInsideOfSolid, isInsideOfWater, isInvulnerable, isNameTagAlwaysVisible, isNameTagVisible, isOnGround, isPassenger, move, move, onCollideWithPlayer, onDismount, 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, waitaddEffect, attack, attack, canBeMovedByCurrents, canCollide, canCollideWith, canPassThrough, canTriggerPressurePlate, close, despawnFrom, despawnFromAll, dismount, 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, 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 EntityTntMinecart(EntityType<TntMinecart> type, Location location)
public boolean isRideable()
isRideable in class EntityAbstractMinecartpublic void initEntity()
initEntity in class EntityAbstractMinecartpublic boolean onUpdate(int currentTick)
onUpdate in interface EntityonUpdate in class EntityAbstractMinecartpublic void activate(int x,
int y,
int z,
boolean flag)
activate in class EntityAbstractMinecartpublic void explode()
explode in interface EntityExplosivepublic void explode(double square)
public void dropItem()
dropItem in class EntityAbstractMinecartpublic MinecartType getMinecartType()
getMinecartType in class EntityAbstractMinecartpublic boolean onInteract(Player player, Item item, com.nukkitx.math.vector.Vector3f clickedPos)
onInteract in interface EntityonInteract in class EntityAbstractMinecartpublic boolean mount(Entity entity, com.nukkitx.protocol.bedrock.data.entity.EntityLinkData.Type mode)
BaseEntityCopyright © 2020. All rights reserved.