public class EntityExperienceOrb extends BaseEntity implements org.cloudburstmc.api.entity.misc.ExperienceOrb
| Modifier and Type | Field and Description |
|---|---|
CloudPlayer |
closestPlayer |
absorption, 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 |
|---|
EntityExperienceOrb(org.cloudburstmc.api.entity.EntityType<org.cloudburstmc.api.entity.misc.ExperienceOrb> type,
org.cloudburstmc.api.level.Location location) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
attack(org.cloudburstmc.api.event.entity.EntityDamageEvent source) |
boolean |
canCollide() |
boolean |
canCollideWith(org.cloudburstmc.api.entity.Entity entity) |
float |
getDrag() |
int |
getExperience() |
float |
getGravity() |
float |
getHeight() |
float |
getLength() |
int |
getPickupDelay() |
float |
getWidth() |
protected void |
initEntity() |
void |
loadAdditionalData(com.nukkitx.nbt.NbtMap tag) |
boolean |
onUpdate(int currentTick) |
void |
saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag) |
void |
setExperience(int experience) |
void |
setPickupDelay(int pickupDelay) |
addEffect, addMotion, addMovement, attack, broadcastLinkPacket, canBeMovedByCurrents, canClimb, canClimbWalls, canPassThrough, canTriggerPressurePlate, canTriggerWalking, checkBlockCollision, checkChunks, checkGroundState, checkObstruction, checkObstruction, close, createAddEntityPacket, despawnFrom, despawnFrom, despawnFromAll, dismount, entityBaseTick, entityBaseTick, extinguish, fall, fastMove, getAbsorption, getAir, getBaseOffset, getBlocksAround, getBoundingBox, getCardinalDirection, getChunk, getCollisionBlocks, getData, getDirection, getDirectionPlane, getDirectionVector, getEffect, getEffect, getEffects, getEyeHeight, getFireTicks, getHealth, getHighestPosition, getHorizontalDirection, getLastDamageCause, getLevel, getLocation, getMaxHealth, 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, hasEffect, 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, removeEffect, resetFallDistance, respawnToAll, 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, updateMovement, updatePassengerPosition, updatePassengersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMaxOrbSize, splitIntoOrbSizesaddEffect, attack, canBeMovedByCurrents, canPassThrough, canTriggerPressurePlate, close, despawnFrom, despawnFromAll, dismount, extinguish, fall, getAbsorption, getBoundingBox, getChunk, getDirection, getDirectionPlane, getDirectionVector, getEffect, getEffect, getEffects, getEyeHeight, getFireTicks, getHealth, getHighestPosition, getHorizontalDirection, getLastDamageCause, 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, isControlling, isNameTagVisible, isOnFire, isOnGround, isPassenger, isUndead, kill, mount, mount, onDismount, onEntityCollision, onInteract, onMount, 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 CloudPlayer closestPlayer
public EntityExperienceOrb(org.cloudburstmc.api.entity.EntityType<org.cloudburstmc.api.entity.misc.ExperienceOrb> type,
org.cloudburstmc.api.level.Location location)
public float getWidth()
getWidth in interface org.cloudburstmc.api.entity.EntitygetWidth in class BaseEntitypublic float getLength()
getLength in interface org.cloudburstmc.api.entity.EntitygetLength in class BaseEntitypublic float getHeight()
getHeight in interface org.cloudburstmc.api.entity.EntitygetHeight in class BaseEntitypublic float getGravity()
getGravity in interface org.cloudburstmc.api.entity.EntitygetGravity in class BaseEntitypublic float getDrag()
getDrag in interface org.cloudburstmc.api.entity.EntitygetDrag in class BaseEntitypublic boolean canCollide()
canCollide in interface org.cloudburstmc.api.entity.EntitycanCollide in class BaseEntityprotected void initEntity()
initEntity in class BaseEntitypublic void loadAdditionalData(com.nukkitx.nbt.NbtMap tag)
loadAdditionalData in class BaseEntitypublic void saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)
saveAdditionalData in class BaseEntitypublic boolean attack(org.cloudburstmc.api.event.entity.EntityDamageEvent source)
attack in interface org.cloudburstmc.api.entity.Entityattack in class BaseEntitypublic boolean onUpdate(int currentTick)
onUpdate in interface org.cloudburstmc.api.entity.EntityonUpdate in class BaseEntitypublic int getExperience()
getExperience in interface org.cloudburstmc.api.entity.misc.ExperienceOrbpublic void setExperience(int experience)
setExperience in interface org.cloudburstmc.api.entity.misc.ExperienceOrbpublic boolean canCollideWith(org.cloudburstmc.api.entity.Entity entity)
canCollideWith in interface org.cloudburstmc.api.entity.EntitycanCollideWith in class BaseEntitypublic int getPickupDelay()
getPickupDelay in interface org.cloudburstmc.api.entity.misc.ExperienceOrbpublic void setPickupDelay(int pickupDelay)
setPickupDelay in interface org.cloudburstmc.api.entity.misc.ExperienceOrbCopyright © 2021. All rights reserved.