public interface ExperienceOrb extends Entity
Modifier and Type | Interface and Description |
---|---|
static class |
ExperienceOrb.SpawnReason
Reasons for why this Experience Orb was spawned
|
Entity.Spigot
Modifier and Type | Method and Description |
---|---|
int |
getExperience()
Gets how much experience is contained within this orb
|
UUID |
getSourceEntityId()
If this experience orb was spawned in relation to another
entity, such as a player or other living entity death, or breeding,
return the source entity UUID.
|
ExperienceOrb.SpawnReason |
getSpawnReason()
Gets the reason that this experience orb was spawned.
|
UUID |
getTriggerEntityId()
If this experience orb was triggered to be spawned by
an entity such as a player, due to events such as killing entity,
breaking blocks, smelting in a furnace, etc, this will return the UUID
of the entity that triggered this orb to drop.
|
default boolean |
isFromBottle()
Deprecated.
Use getSpawnReason() == EXP_BOTTLE
|
void |
setExperience(int value)
Sets how much experience is contained within this orb
|
addPassenger, addScoreboardTag, eject, fromMobSpawner, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isPersistent, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleport, teleportAsync, teleportAsync
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage, sendMessage, sendMessage
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
isOp, setOp
getCustomName, setCustomName
getPersistentDataContainer
int getExperience()
void setExperience(int value)
value
- Amount of experience@Deprecated default boolean isFromBottle()
ThrownExpBottle
@Nullable UUID getTriggerEntityId()
@Nullable UUID getSourceEntityId()
@NotNull ExperienceOrb.SpawnReason getSpawnReason()
Copyright © 2022. All rights reserved.