public class GlowExperienceOrb extends GlowEntity implements org.bukkit.entity.ExperienceOrb
active, airDrag, applyDragBeforeAccel, boundingBox, ENTITY_ID_NOBODY, entityId, gravityAccel, liquidDrag, location, metadata, passengerChanged, previousLocation, removed, server, slipMultiplier, teleported, ticksLived, vehicle, velocity, velocityChanged, world, worldLock| Constructor and Description |
|---|
GlowExperienceOrb(org.bukkit.Location location) |
GlowExperienceOrb(org.bukkit.Location location,
int experience)
Creates an experience orb.
|
| Modifier and Type | Method and Description |
|---|---|
List<com.flowpowered.network.Message> |
createSpawnMessage()
Creates a list of
Messages which can be sent to a client to spawn this entity. |
void |
damage(double amount,
org.bukkit.entity.Entity source,
org.bukkit.event.entity.EntityDamageEvent.DamageCause cause) |
int |
getExperience() |
UUID |
getSourceEntityId() |
org.bukkit.entity.ExperienceOrb.SpawnReason |
getSpawnReason() |
UUID |
getTriggerEntityId() |
org.bukkit.entity.EntityType |
getType() |
boolean |
isFromBottle() |
void |
pulse()
Called every game cycle.
|
void |
setExperience(int experience) |
void |
setFromBottle(boolean fromBottle) |
void |
setSourceEntityId(UUID sourceEntityId) |
void |
setSpawnReason(org.bukkit.entity.ExperienceOrb.SpawnReason spawnReason) |
void |
setTriggerEntityId(UUID triggerEntityId) |
addAttachment, addAttachment, addAttachment, addAttachment, addPassenger, addScoreboardTag, collide, createAfterSpawnMessage, createUpdateMessage, damage, damage, damage, eject, entityInteract, equals, fromMobSpawner, getCardinalFacing, getChunk, getCustomName, getCustomTags, getDismountLocation, getEffectivePermissions, getEntityId, getFacing, getFallDistance, getFireTicks, getGravityAccel, getHeight, getLastDamageCause, getLeashedEntities, getLeashHolder, getLocation, getLocation, getMaxFireTicks, getMetadata, getMetadata, getMountLocation, getName, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasDefaultLandingBehavior, hasFriction, hasGravity, hashCode, hasMetadata, hasMoved, hasPermission, hasPermission, hasRotated, intersects, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isLeashed, isOnGround, isOp, isPermissionSet, isPermissionSet, isRemoved, isSilent, isTeleported, isTouchingMaterial, isValid, isWithinDistance, isWithinDistance, leaveVehicle, playEffect, playEffectKnownAndSelf, pulsePhysics, recalculatePermissions, remove, removeAttachment, removeMetadata, removePassenger, removeScoreboardTag, reset, sendMessage, sendMessage, setAirDrag, setApplyDragBeforeAccel, setBoundingBox, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setFriction, setGlowing, setGravity, setGravityAccel, setInvulnerable, setLastDamageCause, setLeashHolder, setLeashHolderUniqueId, setLiquidDrag, setMetadata, setOnGround, setOp, setPassenger, setPortalCooldown, setRawLocation, setRawLocation, setSilent, setSize, setTicksLived, setUniqueId, setVelocity, shouldSave, spigot, teleport, teleport, teleport, teleport, teleportToEnd, teleportToSpawn, toString, updateBoundingBoxclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddPassenger, addScoreboardTag, eject, fromMobSpawner, getChunk, getEntityId, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPortalCooldown, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleportgetMetadata, hasMetadata, removeMetadata, setMetadatagetName, sendMessage, sendMessage, sendMessage, sendMessagepublic GlowExperienceOrb(org.bukkit.Location location)
public GlowExperienceOrb(org.bukkit.Location location,
int experience)
location - the locationexperience - the amount of experience containedpublic List<com.flowpowered.network.Message> createSpawnMessage()
GlowEntityMessages which can be sent to a client to spawn this entity.
Implementations in concrete subclasses may return a shallowly immutable list.createSpawnMessage in class GlowEntitypublic void damage(double amount,
org.bukkit.entity.Entity source,
org.bukkit.event.entity.EntityDamageEvent.DamageCause cause)
damage in class GlowEntitypublic void pulse()
GlowEntitypulse in class GlowEntitypublic void setExperience(int experience)
setExperience in interface org.bukkit.entity.ExperienceOrbpublic org.bukkit.entity.EntityType getType()
getType in interface org.bukkit.entity.EntitygetType in class GlowEntitypublic boolean isFromBottle()
isFromBottle in interface org.bukkit.entity.ExperienceOrbpublic void setFromBottle(boolean fromBottle)
public UUID getSourceEntityId()
getSourceEntityId in interface org.bukkit.entity.ExperienceOrbpublic void setSourceEntityId(UUID sourceEntityId)
public UUID getTriggerEntityId()
getTriggerEntityId in interface org.bukkit.entity.ExperienceOrbpublic void setTriggerEntityId(UUID triggerEntityId)
public org.bukkit.entity.ExperienceOrb.SpawnReason getSpawnReason()
getSpawnReason in interface org.bukkit.entity.ExperienceOrbpublic void setSpawnReason(org.bukkit.entity.ExperienceOrb.SpawnReason spawnReason)
public int getExperience()
getExperience in interface org.bukkit.entity.ExperienceOrbCopyright © 2021. All rights reserved.