All Superinterfaces:
Entity
public interface ExperienceOrb
extends Entity
Field Summary
Fields
static final com.google.common.collect.ImmutableList<Integer >
Split sizes used for dropping experience orbs.
Method Summary
All Methods Static Methods Instance Methods Abstract Methods
@org.checkerframework.checker.index.qual.NonNegative int
static int
Returns the largest size of normal XP orb that will be spawned for the specified amount of XP.
@org.checkerframework.checker.index.qual.NonNegative int
void
setExperience (@org.checkerframework.checker.index.qual.NonNegative int experience)
void
setPickupDelay (@org.checkerframework.checker.index.qual.NonNegative int pickupDelay)
Splits the specified amount of XP into an array of acceptable XP orb sizes.
Methods inherited from interface org.cloudburstmc.api.entity.Entity
addEffect , attack , attack , canBeMovedByCurrents , canCollide , canCollideWith , canPassThrough , canTriggerPressurePlate , close , despawnFrom , despawnFromAll , dismount , extinguish , fall , getAbsorption , getBoundingBox , getChunk , getDirection , getDirectionPlane , getDirectionVector , getDrag , getEffect , 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 , getType , getUniqueId , getVehicle , getViewers , getWidth , 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 , onUpdate , 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 , teleport
Field Details
ORB_SPLIT_SIZES
static final com.google.common.collect.ImmutableList<Integer > ORB_SPLIT_SIZES
Split sizes used for dropping experience orbs.
Method Details
getMaxOrbSize
static int getMaxOrbSize (int amount)
Returns the largest size of normal XP orb that will be spawned for the specified amount of XP. Used to split XP
up into multiple orbs when an amount of XP is dropped.
splitIntoOrbSizes
Splits the specified amount of XP into an array of acceptable XP orb sizes.
getExperience
@org.checkerframework.checker.index.qual.NonNegative int getExperience ()
setExperience
void setExperience (@org.checkerframework.checker.index.qual.NonNegative int experience)
getPickupDelay
@org.checkerframework.checker.index.qual.NonNegative int getPickupDelay ()
setPickupDelay
void setPickupDelay (@org.checkerframework.checker.index.qual.NonNegative int pickupDelay)