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.
|
@NotNull 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, asHoverEvent, 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, isInBubbleColumn, isInLava, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isOnGround, isPersistent, isSilent, isTicking, 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, sendMessage, sendMessage, sendMessage
audience, audience, clearTitle, empty, hideBossBar, openBook, openBook, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, showBossBar, showTitle, stopSound, toAudience
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
isOp, setOp
customName, customName, 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 @NotNull ExperienceOrb.SpawnReason getSpawnReason()
Copyright © 2021. All rights reserved.