ExperienceOrb
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import crafttweaker.api.entity.type.misc.ExperienceOrb;
Extends
ExperienceOrb extends Entity
.
Implements
ExperienceOrb
implements the following interfaces:
Nameable
,EntityAccess
,CommandSource
,IAttachmentHolder
Undocumented Interfaces
SyncedDataHolder
,ScoreHolder
,IEntityExtension
,INBTSerializable<CompoundTag>
Members
// ExperienceOrb.acceptsFailure as boolmyExperienceOrb.acceptsFailure
Return Type:
bool
Returns: True if the commands from this source should return failure messages, false otherwise.
// ExperienceOrb.acceptsFailure() as bool;myExperienceOrb.acceptsFailure();
Return Type:
bool
// ExperienceOrb.acceptsSuccess as boolmyExperienceOrb.acceptsSuccess
Return Type:
bool
Returns: True if the commands from this source should return successful messages, false otherwise.
// ExperienceOrb.acceptsSuccess() as bool;myExperienceOrb.acceptsSuccess();
Return Type:
bool
Returns: true if the tag was added.
// ExperienceOrb.addTag(tagName as string) as bool;myExperienceOrb.addTag(myString);
Parameters:
tagName: string
Type: string
- The name of the tag to add.
Return Type:
bool
// ExperienceOrb.airSupply as intmyExperienceOrb.airSupply
Return Type:
int
Returns: The current air supply of the entity.
// ExperienceOrb.airSupply() as int;myExperienceOrb.airSupply();
Return Type:
int
// ExperienceOrb.alwaysAccepts as boolmyExperienceOrb.alwaysAccepts
Return Type:
bool
Returns: True if the command source always accepts, false otherwise.
// ExperienceOrb.alwaysAccepts() as bool;myExperienceOrb.alwaysAccepts();
Return Type:
bool
// ExperienceOrb.bbHeight as floatmyExperienceOrb.bbHeight
Return Type:
float
Returns: The height of the bounding box of the entity.
// ExperienceOrb.bbHeight() as float;myExperienceOrb.bbHeight();
Return Type:
float
// ExperienceOrb.bbWidth as floatmyExperienceOrb.bbWidth
Return Type:
float
Returns: The width of the bounding box of the entity.
// ExperienceOrb.bbWidth() as float;myExperienceOrb.bbWidth();
Return Type:
float
// ExperienceOrb.blockX as intmyExperienceOrb.blockX
Return Type:
int
Returns: The x coordinate of the entity.
// ExperienceOrb.blockX() as int;myExperienceOrb.blockX();
Return Type:
int
// ExperienceOrb.blockY as intmyExperienceOrb.blockY
Return Type:
int
Returns: The y coordinate of the entity.
// ExperienceOrb.blockY() as int;myExperienceOrb.blockY();
Return Type:
int
// ExperienceOrb.blockZ as intmyExperienceOrb.blockZ
Return Type:
int
Returns: The z coordinate of the entity.
// ExperienceOrb.blockZ() as int;myExperienceOrb.blockZ();
Return Type:
int
// ExperienceOrb.canBeCollidedWith as boolmyExperienceOrb.canBeCollidedWith
Return Type:
bool
Returns: true if the entity can be collided with.
// ExperienceOrb.canBeCollidedWith() as bool;myExperienceOrb.canBeCollidedWith();
Return Type:
bool
Returns: true if the entity can collide with the given entity.
myExperienceOrb.canCollideWith(myEntity);
Return Type:
bool
// ExperienceOrb.canFreeze as boolmyExperienceOrb.canFreeze
Return Type:
bool
Returns: Whether the entity can freeze.
// ExperienceOrb.canFreeze() as bool;myExperienceOrb.canFreeze();
Return Type:
bool
// ExperienceOrb.clearFire();myExperienceOrb.clearFire();
Returns: true if the entity is closer than the given distance to the other entity.
myExperienceOrb.closerThan(myEntity, myDouble);
Parameters:
Return Type:
bool
net.minecraft.world.entity.item.ItemEntity
s who's item is in the dampens_vibrations item tag.// ExperienceOrb.dampensVibrations as boolmyExperienceOrb.dampensVibrations
Return Type:
bool
net.minecraft.world.entity.item.ItemEntity
s who's item is in the dampens_vibrations item tag.Returns: true if the entity dampens vibrations.
// ExperienceOrb.dampensVibrations() as bool;myExperienceOrb.dampensVibrations();
Return Type:
bool
// ExperienceOrb.dimensionChangingDelay as intmyExperienceOrb.dimensionChangingDelay
Return Type:
int
Returns: The dimension changing delay of the entity.
// ExperienceOrb.dimensionChangingDelay() as int;myExperienceOrb.dimensionChangingDelay();
Return Type:
int
// ExperienceOrb.discard();myExperienceOrb.discard();
// ExperienceOrb.dismountsUnderwater as boolmyExperienceOrb.dismountsUnderwater
Return Type:
bool
Returns: true if the entity dismounts underwater.
// ExperienceOrb.dismountsUnderwater() as bool;myExperienceOrb.dismountsUnderwater();
Return Type:
bool
Returns: The squared distance to the given position.
// ExperienceOrb.distanceToSqr(x as double, y as double, z as double) as double;myExperienceOrb.distanceToSqr(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
- The x position to get the squared distance to. y: double
Type: double
- The y position to get the squared distance to. z: double
Type: double
- The z position to get the squared distance to.
Return Type:
double
Returns: The squared distance to the given entity.
myExperienceOrb.distanceToSqr(myEntity);
Return Type:
double
// ExperienceOrb.ejectPassengers();myExperienceOrb.ejectPassengers();
// ExperienceOrb.eyeHeight as floatmyExperienceOrb.eyeHeight
Return Type:
float
Returns: The eye height of the entity.
// ExperienceOrb.eyeHeight() as float;myExperienceOrb.eyeHeight();
Return Type:
float
// ExperienceOrb.eyeY as doublemyExperienceOrb.eyeY
Return Type:
double
Returns: The y coordinate of the entity's eyes.
// ExperienceOrb.eyeY() as double;myExperienceOrb.eyeY();
Return Type:
double
// ExperienceOrb.fireImmune as boolmyExperienceOrb.fireImmune
Return Type:
bool
Returns: true if the entity is fire immune.
// ExperienceOrb.fireImmune() as bool;myExperienceOrb.fireImmune();
Return Type:
bool
// ExperienceOrb.fireTicks as intmyExperienceOrb.fireTicks
Return Type:
int
// ExperienceOrb.fireTicks = (ticks as int);myExperienceOrb.fireTicks = myInt;
Parameters:
ticks: int
Type: int
- The number of ticks to set the remaining fire ticks to. // ExperienceOrb.fireTicks(ticks as int);myExperienceOrb.fireTicks(myInt);
Parameters:
ticks: int
Type: int
- The number of ticks to set the remaining fire ticks to. Returns: The remaining fire ticks of the entity.
// ExperienceOrb.fireTicks() as int;myExperienceOrb.fireTicks();
Return Type:
int
// ExperienceOrb.fluidJumpThreshold as doublemyExperienceOrb.fluidJumpThreshold
Return Type:
double
Returns: The fluid jump threshold of the entity.
// ExperienceOrb.fluidJumpThreshold() as double;myExperienceOrb.fluidJumpThreshold();
Return Type:
double
myExperienceOrb.getAttachmentData<T>(myAttachmentType);
Parameters:
type: AttachmentType<T>
Type: AttachmentType<T>
Return Type:
T
myExperienceOrb.getAttachmentData<T>(mySupplier);
Parameters:
type: Supplier<AttachmentType<T>>
Type: Supplier<AttachmentType<T>>
Return Type:
T
Returns: The x coordinate of the entity.
// ExperienceOrb.getX(scale as double) as double;myExperienceOrb.getX(myDouble);
Parameters:
scale: double
Type: double
- The scale to get the x coordinate of the entity.
Return Type:
double
Returns: The y coordinate of the entity.
// ExperienceOrb.getY(scale as double) as double;myExperienceOrb.getY(myDouble);
Parameters:
scale: double
Type: double
- The scale to get the y coordinate of the entity.
Return Type:
double
Returns: The z coordinate of the entity.
// ExperienceOrb.getZ(scale as double) as double;myExperienceOrb.getZ(myDouble);
Parameters:
scale: double
Type: double
- The scale to get the z coordinate of the entity.
Return Type:
double
myExperienceOrb.hasAttachmentData<T>(myAttachmentType);
Parameters:
type: AttachmentType<T>
Type: AttachmentType<T>
Return Type:
bool
myExperienceOrb.hasAttachmentData<T>(mySupplier);
Parameters:
type: Supplier<AttachmentType<T>>
Type: Supplier<AttachmentType<T>>
Return Type:
bool
// ExperienceOrb.hasCustomName as boolmyExperienceOrb.hasCustomName
Return Type:
bool
// ExperienceOrb.hasCustomName as boolmyExperienceOrb.hasCustomName
Return Type:
bool
Returns: true if the entity has a custom name.
// ExperienceOrb.hasCustomName() as bool;myExperienceOrb.hasCustomName();
Return Type:
bool
// ExperienceOrb.hasCustomName() as bool;myExperienceOrb.hasCustomName();
Return Type:
bool
// ExperienceOrb.hasExactlyOnePlayerPassenger as boolmyExperienceOrb.hasExactlyOnePlayerPassenger
Return Type:
bool
Returns: true if the entity has exactly one player passenger.
// ExperienceOrb.hasExactlyOnePlayerPassenger() as bool;myExperienceOrb.hasExactlyOnePlayerPassenger();
Return Type:
bool
// ExperienceOrb.hasGlowingTag as boolmyExperienceOrb.hasGlowingTag
Return Type:
bool
Returns: true if the entity is currently glowing.
// ExperienceOrb.hasGlowingTag() as bool;myExperienceOrb.hasGlowingTag();
Return Type:
bool
Returns: true if the entity has an indirect passenger.
myExperienceOrb.hasIndirectPassenger(myEntity);
Return Type:
bool
Returns: true if the entity has a passenger that matches the predicate.
myExperienceOrb.hasPassenger(myPredicate);
Parameters:
Return Type:
bool
DamageSource
and amount.Returns: true if the entity was hurt.
myExperienceOrb.hurt(myDamageSource, myFloat);
Parameters:
amount: float
Type: float
- The amount of damage to deal.
Return Type:
bool
// ExperienceOrb.icon as intmyExperienceOrb.icon
Return Type:
int
Returns: The icon index of the experience orb.
// ExperienceOrb.icon() as int;myExperienceOrb.icon();
Return Type:
int
// ExperienceOrb.id as intmyExperienceOrb.id
Return Type:
int
Returns: The ID of the entity.
// ExperienceOrb.id() as int;myExperienceOrb.id();
Return Type:
int
BlockState
that this entity is currently inside.// ExperienceOrb.inBlockState as BlockStatemyExperienceOrb.inBlockState
Return Type:
BlockState
BlockState
that this entity is currently inside.Returns: The block state that this entity is currently inside
myExperienceOrb.inBlockState();
Return Type:
BlockState
// ExperienceOrb.isAlive as boolmyExperienceOrb.isAlive
Return Type:
bool
Returns: true if the entity is alive.
// ExperienceOrb.isAlive() as bool;myExperienceOrb.isAlive();
Return Type:
bool
// ExperienceOrb.isAlwaysTicking as boolmyExperienceOrb.isAlwaysTicking
Return Type:
bool
Returns: true if the entity is always ticking.
// ExperienceOrb.isAlwaysTicking() as bool;myExperienceOrb.isAlwaysTicking();
Return Type:
bool
// ExperienceOrb.isAttackable as boolmyExperienceOrb.isAttackable
Return Type:
bool
Returns: true if the entity is attackable.
// ExperienceOrb.isAttackable() as bool;myExperienceOrb.isAttackable();
Return Type:
bool
BlockState
at the given BlockPos
.Returns: true if the entity is colliding with the block.
myExperienceOrb.isColliding(myBlockPos, myBlockState);
Parameters:
Return Type:
bool
// ExperienceOrb.isCrouching as boolmyExperienceOrb.isCrouching
Return Type:
bool
Returns: true if the entity is crouching.
// ExperienceOrb.isCrouching() as bool;myExperienceOrb.isCrouching();
Return Type:
bool
// ExperienceOrb.isCurrentlyGlowing as boolmyExperienceOrb.isCurrentlyGlowing
Return Type:
bool
Returns: true if the entity is currently glowing.
// ExperienceOrb.isCurrentlyGlowing() as bool;myExperienceOrb.isCurrentlyGlowing();
Return Type:
bool
// ExperienceOrb.isCustomNameVisible as boolmyExperienceOrb.isCustomNameVisible
Return Type:
bool
Returns: true if the custom name is visible.
// ExperienceOrb.isCustomNameVisible() as bool;myExperienceOrb.isCustomNameVisible();
Return Type:
bool
// ExperienceOrb.isDescending as boolmyExperienceOrb.isDescending
Return Type:
bool
Returns: true if the entity is descending.
// ExperienceOrb.isDescending() as bool;myExperienceOrb.isDescending();
Return Type:
bool
// ExperienceOrb.isDiscrete as boolmyExperienceOrb.isDiscrete
Return Type:
bool
Returns: true if the entity is being discrete.
// ExperienceOrb.isDiscrete() as bool;myExperienceOrb.isDiscrete();
Return Type:
bool
Returns: true if the entity is free to move in the given position.
// ExperienceOrb.isFree(x as double, y as double, z as double) as bool;myExperienceOrb.isFree(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
- The x position to check. y: double
Type: double
- The y position to check. z: double
Type: double
- The z position to check.
Return Type:
bool
// ExperienceOrb.isFullyFrozen as boolmyExperienceOrb.isFullyFrozen
Return Type:
bool
Returns: true if the entity is fully frozen.
// ExperienceOrb.isFullyFrozen() as bool;myExperienceOrb.isFullyFrozen();
Return Type:
bool
// ExperienceOrb.isInLava as boolmyExperienceOrb.isInLava
Return Type:
bool
Returns: true if the entity is in lava.
// ExperienceOrb.isInLava() as bool;myExperienceOrb.isInLava();
Return Type:
bool
// ExperienceOrb.isInvisible as boolmyExperienceOrb.isInvisible
Return Type:
bool
Returns: true if the entity is invisible.
// ExperienceOrb.isInvisible() as bool;myExperienceOrb.isInvisible();
Return Type:
bool
// ExperienceOrb.isInvulnerable as boolmyExperienceOrb.isInvulnerable
Return Type:
bool
Returns: true if the entity is invulnerable.
// ExperienceOrb.isInvulnerable() as bool;myExperienceOrb.isInvulnerable();
Return Type:
bool
DamageSource
.Returns: true if the entity is invulnerable to the damage source.
myExperienceOrb.isInvulnerableTo(myDamageSource);
Parameters:
Return Type:
bool
// ExperienceOrb.isInWall as boolmyExperienceOrb.isInWall
Return Type:
bool
Returns: true if the entity is in a wall.
// ExperienceOrb.isInWall() as bool;myExperienceOrb.isInWall();
Return Type:
bool
// ExperienceOrb.isInWater as boolmyExperienceOrb.isInWater
Return Type:
bool
Returns: true if the entity is in water.
// ExperienceOrb.isInWater() as bool;myExperienceOrb.isInWater();
Return Type:
bool
// ExperienceOrb.isInWaterOrBubble as boolmyExperienceOrb.isInWaterOrBubble
Return Type:
bool
Returns: true if the entity is in water or a bubble column.
// ExperienceOrb.isInWaterOrBubble() as bool;myExperienceOrb.isInWaterOrBubble();
Return Type:
bool
// ExperienceOrb.isInWaterOrRain as boolmyExperienceOrb.isInWaterOrRain
Return Type:
bool
Returns: true if the entity is in water or rain.
// ExperienceOrb.isInWaterOrRain() as bool;myExperienceOrb.isInWaterOrRain();
Return Type:
bool
// ExperienceOrb.isInWaterRainOrBubble as boolmyExperienceOrb.isInWaterRainOrBubble
Return Type:
bool
Returns: true if the entity is in water or rain or a bubble column.
// ExperienceOrb.isInWaterRainOrBubble() as bool;myExperienceOrb.isInWaterRainOrBubble();
Return Type:
bool
// ExperienceOrb.isNoGravity as boolmyExperienceOrb.isNoGravity
Return Type:
bool
Returns: true if the entity has no gravity.
// ExperienceOrb.isNoGravity() as bool;myExperienceOrb.isNoGravity();
Return Type:
bool
// ExperienceOrb.isOnFire as boolmyExperienceOrb.isOnFire
Return Type:
bool
Returns: true if the entity is on fire.
// ExperienceOrb.isOnFire() as bool;myExperienceOrb.isOnFire();
Return Type:
bool
// ExperienceOrb.isOnPortalCooldown as boolmyExperienceOrb.isOnPortalCooldown
Return Type:
bool
Returns: true if the entity is on portal cooldown.
// ExperienceOrb.isOnPortalCooldown() as bool;myExperienceOrb.isOnPortalCooldown();
Return Type:
bool
// ExperienceOrb.isPassenger as boolmyExperienceOrb.isPassenger
Return Type:
bool
Returns: true if the entity is a passenger.
// ExperienceOrb.isPassenger() as bool;myExperienceOrb.isPassenger();
Return Type:
bool
Returns: true if the entity is a passenger of the same vehicle.
myExperienceOrb.isPassengerOfSameVehicle(myEntity);
Return Type:
bool
// ExperienceOrb.isPickable as boolmyExperienceOrb.isPickable
Return Type:
bool
Returns: true if the entity is pickable.
// ExperienceOrb.isPickable() as bool;myExperienceOrb.isPickable();
Return Type:
bool
// ExperienceOrb.isPushable as boolmyExperienceOrb.isPushable
Return Type:
bool
Returns: true if the entity is pushable.
// ExperienceOrb.isPushable() as bool;myExperienceOrb.isPushable();
Return Type:
bool
// ExperienceOrb.isPushedByFluid as boolmyExperienceOrb.isPushedByFluid
Return Type:
bool
Returns: true if the entity is pushed by fluid.
// ExperienceOrb.isPushedByFluid() as bool;myExperienceOrb.isPushedByFluid();
Return Type:
bool
// ExperienceOrb.isRemoved as boolmyExperienceOrb.isRemoved
Return Type:
bool
Returns: Whether the entity has been removed.
// ExperienceOrb.isRemoved() as bool;myExperienceOrb.isRemoved();
Return Type:
bool
// ExperienceOrb.isShiftKeyDown as boolmyExperienceOrb.isShiftKeyDown
Return Type:
bool
Returns: true if the shift key is down.
// ExperienceOrb.isShiftKeyDown() as bool;myExperienceOrb.isShiftKeyDown();
Return Type:
bool
// ExperienceOrb.isSilent as boolmyExperienceOrb.isSilent
Return Type:
bool
Returns: true if the entity is silent.
// ExperienceOrb.isSilent() as bool;myExperienceOrb.isSilent();
Return Type:
bool
// ExperienceOrb.isSpectator as boolmyExperienceOrb.isSpectator
Return Type:
bool
Returns: true if the entity is a spectator.
// ExperienceOrb.isSpectator() as bool;myExperienceOrb.isSpectator();
Return Type:
bool
// ExperienceOrb.isSprinting as boolmyExperienceOrb.isSprinting
Return Type:
bool
Returns: true if the entity is sprinting.
// ExperienceOrb.isSprinting() as bool;myExperienceOrb.isSprinting();
Return Type:
bool
// ExperienceOrb.isSteppingCarefully as boolmyExperienceOrb.isSteppingCarefully
Return Type:
bool
Returns: true if the entity is stepping carefully.
// ExperienceOrb.isSteppingCarefully() as bool;myExperienceOrb.isSteppingCarefully();
Return Type:
bool
// ExperienceOrb.isSuppressingBounce as boolmyExperienceOrb.isSuppressingBounce
Return Type:
bool
Returns: true if the entity is suppressing bounce.
// ExperienceOrb.isSuppressingBounce() as bool;myExperienceOrb.isSuppressingBounce();
Return Type:
bool
// ExperienceOrb.isSwimming as boolmyExperienceOrb.isSwimming
Return Type:
bool
Returns: true if the entity is swimming.
// ExperienceOrb.isSwimming() as bool;myExperienceOrb.isSwimming();
Return Type:
bool
// ExperienceOrb.isUnderWater as boolmyExperienceOrb.isUnderWater
Return Type:
bool
Returns: true if the entity is underwater.
// ExperienceOrb.isUnderWater() as bool;myExperienceOrb.isUnderWater();
Return Type:
bool
// ExperienceOrb.isVehicle as boolmyExperienceOrb.isVehicle
Return Type:
bool
Returns: true if the entity is a vehicle.
// ExperienceOrb.isVehicle() as bool;myExperienceOrb.isVehicle();
Return Type:
bool
// ExperienceOrb.isVisuallyCrawling as boolmyExperienceOrb.isVisuallyCrawling
Return Type:
bool
Returns: true if the entity is visually crawling.
// ExperienceOrb.isVisuallyCrawling() as bool;myExperienceOrb.isVisuallyCrawling();
Return Type:
bool
// ExperienceOrb.isVisuallySwimming as boolmyExperienceOrb.isVisuallySwimming
Return Type:
bool
Returns: true if the entity is visually swimming.
// ExperienceOrb.isVisuallySwimming() as bool;myExperienceOrb.isVisuallySwimming();
Return Type:
bool
// ExperienceOrb.kill();myExperienceOrb.kill();
// ExperienceOrb.lavaHurt();myExperienceOrb.lavaHurt();
// ExperienceOrb.maxAirSupply as intmyExperienceOrb.maxAirSupply
Return Type:
int
Returns: The maximum air supply of the entity.
// ExperienceOrb.maxAirSupply() as int;myExperienceOrb.maxAirSupply();
Return Type:
int
// ExperienceOrb.maxFallDistance as intmyExperienceOrb.maxFallDistance
Return Type:
int
Returns: The maximum fall distance of the entity.
// ExperienceOrb.maxFallDistance() as int;myExperienceOrb.maxFallDistance();
Return Type:
int
myExperienceOrb.moveRelative(myFloat, myVec3);
// ExperienceOrb.moveTo(x as double, y as double, z as double);myExperienceOrb.moveTo(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
- The x position to move the entity to. y: double
Type: double
- The y position to move the entity to. z: double
Type: double
- The z position to move the entity to. myExperienceOrb.moveTo(myBlockPos, myFloat, myFloat);
// ExperienceOrb.moveTo(x as double, y as double, z as double, yaw as float, pitch as float);myExperienceOrb.moveTo(myDouble, myDouble, myDouble, myFloat, myFloat);
Parameters:
x: double
Type: double
- The x position to move the entity to. y: double
Type: double
- The y position to move the entity to. z: double
Type: double
- The z position to move the entity to. yaw: float
Type: float
- The yaw to move the entity to. pitch: float
Type: float
- The pitch to move the entity to. // ExperienceOrb.onGround as boolmyExperienceOrb.onGround
Return Type:
bool
// ExperienceOrb.percentFrozen as floatmyExperienceOrb.percentFrozen
Return Type:
float
Returns: The percent the entity is frozen.
// ExperienceOrb.percentFrozen() as float;myExperienceOrb.percentFrozen();
Return Type:
float
// ExperienceOrb.pistonPushReaction as PushReactionmyExperienceOrb.pistonPushReaction
Return Type:
PushReaction
Returns: The piston push reaction of the entity.
myExperienceOrb.pistonPushReaction();
Return Type:
PushReaction
myExperienceOrb.playSound(mySoundEvent, myFloat, myFloat);
Parameters:
volume: float
Type: float
- The volume of the sound. pitch: float
Type: float
- The pitch of the sound. // ExperienceOrb.registryName as ResourceLocationmyExperienceOrb.registryName
Return Type:
ResourceLocation
Returns: The registry name of the entity.
myExperienceOrb.registryName();
Return Type:
ResourceLocation
Returns: true if the tag was removed.
// ExperienceOrb.removeTag(tagName as string) as bool;myExperienceOrb.removeTag(myString);
Parameters:
tagName: string
Type: string
- The name of the tag to remove.
Return Type:
bool
// ExperienceOrb.removeVehicle();myExperienceOrb.removeVehicle();
// ExperienceOrb.setAirSupply(air as int);myExperienceOrb.setAirSupply(myInt);
Parameters:
air: int
Type: int
- The new air supply of the entity. myExperienceOrb.setAttachmentData<T>(myAttachmentType, myT);
Parameters:
type: AttachmentType<T>
Type: AttachmentType<T>
data: T
Type: T
Return Type:
T?
myExperienceOrb.setAttachmentData<T>(mySupplier, myT);
Parameters:
type: Supplier<AttachmentType<T>>
Type: Supplier<AttachmentType<T>>
data: T
Type: T
Return Type:
T?
// ExperienceOrb.setCustomNameVisible(visible as bool);myExperienceOrb.setCustomNameVisible(myBool);
Parameters:
visible: bool
Type: bool
- true if the custom name should be visible. // ExperienceOrb.setDeltaMovement(xDelta as double, yDelta as double, zDelta as double);myExperienceOrb.setDeltaMovement(myDouble, myDouble, myDouble);
Parameters:
xDelta: double
Type: double
- The x delta movement to set. yDelta: double
Type: double
- The y delta movement to set. zDelta: double
Type: double
- The z delta movement to set. // ExperienceOrb.setGlowingTag(glowing as bool);myExperienceOrb.setGlowingTag(myBool);
Parameters:
glowing: bool
Type: bool
- true if the entity should be glowing. // ExperienceOrb.setInvisible(invisible as bool);myExperienceOrb.setInvisible(myBool);
Parameters:
invisible: bool
Type: bool
- true if the entity should be invisible. // ExperienceOrb.setInvulnerable(invulnerable as bool);myExperienceOrb.setInvulnerable(myBool);
Parameters:
invulnerable: bool
Type: bool
- true if the entity should be invulnerable. // ExperienceOrb.setIsInPowderSnow(inPowderSnow as bool);myExperienceOrb.setIsInPowderSnow(myBool);
Parameters:
inPowderSnow: bool
Type: bool
- Whether the entity is in powder snow. // ExperienceOrb.setNoGravity(noGravity as bool);myExperienceOrb.setNoGravity(myBool);
Parameters:
noGravity: bool
Type: bool
- The no gravity state to set the entity to. // ExperienceOrb.setOldPosAndRot();myExperienceOrb.setOldPosAndRot();
// ExperienceOrb.setOnGround(onGround as bool);myExperienceOrb.setOnGround(myBool);
Parameters:
onGround: bool
Type: bool
- The on ground state to set the entity to. // ExperienceOrb.setPortalCooldown();myExperienceOrb.setPortalCooldown();
// ExperienceOrb.setPos(x as double, y as double, z as double);myExperienceOrb.setPos(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
- The x position to set the entity to. y: double
Type: double
- The y position to set the entity to. z: double
Type: double
- The z position to set the entity to. // ExperienceOrb.setPosRaw(x as double, y as double, z as double);myExperienceOrb.setPosRaw(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
- The x coordinate to set the position to. y: double
Type: double
- The y coordinate to set the position to. z: double
Type: double
- The z coordinate to set the position to. myExperienceOrb.setRemoved(myRemovalReason);
Parameters:
// ExperienceOrb.setShiftKeyDown(keyDown as bool);myExperienceOrb.setShiftKeyDown(myBool);
Parameters:
keyDown: bool
Type: bool
- true if the shift key is down. // ExperienceOrb.setSilent(silent as bool);myExperienceOrb.setSilent(myBool);
Parameters:
silent: bool
Type: bool
- The silent state to set the entity to. // ExperienceOrb.setSprinting(sprinting as bool);myExperienceOrb.setSprinting(myBool);
Parameters:
sprinting: bool
Type: bool
- true if the entity should be sprinting. // ExperienceOrb.setSwimming(swimming as bool);myExperienceOrb.setSwimming(myBool);
Parameters:
swimming: bool
Type: bool
- true if the entity should be swimming. // ExperienceOrb.setTicksFrozen(ticks as int);myExperienceOrb.setTicksFrozen(myInt);
Parameters:
ticks: int
Type: int
- The new number of ticks the entity has been frozen. // ExperienceOrb.shouldBeSaved as boolmyExperienceOrb.shouldBeSaved
Return Type:
bool
Returns: true if the entity should be saved.
// ExperienceOrb.shouldBeSaved() as bool;myExperienceOrb.shouldBeSaved();
Return Type:
bool
// ExperienceOrb.shouldInformAdmins as boolmyExperienceOrb.shouldInformAdmins
Return Type:
bool
Returns: True if the commands from this source should inform admins, false otherwise.
// ExperienceOrb.shouldInformAdmins() as bool;myExperienceOrb.shouldInformAdmins();
Return Type:
bool
// ExperienceOrb.shouldShowName as boolmyExperienceOrb.shouldShowName
Return Type:
bool
Returns: true if the entity should show its name.
// ExperienceOrb.shouldShowName() as bool;myExperienceOrb.shouldShowName();
Return Type:
bool
// ExperienceOrb.showVehicleHealth as boolmyExperienceOrb.showVehicleHealth
Return Type:
bool
Returns: true if the entity should show vehicle health.
// ExperienceOrb.showVehicleHealth() as bool;myExperienceOrb.showVehicleHealth();
Return Type:
bool
SoundSource
of the entity.// ExperienceOrb.soundSource as SoundSourcemyExperienceOrb.soundSource
Return Type:
SoundSource
SoundSource
of the entity.Returns: The sound source of the entity.
myExperienceOrb.soundSource();
Return Type:
SoundSource
Returns: true if the entity started riding.
myExperienceOrb.startRiding(myEntity, myBool);
Parameters:
Return Type:
bool
// ExperienceOrb.stopRiding();myExperienceOrb.stopRiding();
// ExperienceOrb.stringUUID as stringmyExperienceOrb.stringUUID
Return Type:
string
Returns: The UUID of the entity as a string.
// ExperienceOrb.stringUUID() as string;myExperienceOrb.stringUUID();
Return Type:
string
These tags are arbitrary strings that can be attached to an entity. A single entity is limited to 1024.
// ExperienceOrb.tags as Set<string>myExperienceOrb.tags
Return Type:
Set<string>
These tags are arbitrary strings that can be attached to an entity. A single entity is limited to 1024.
Returns: The tags of the entity.
// ExperienceOrb.tags() as Set<string>;myExperienceOrb.tags();
Return Type:
Set<string>
// ExperienceOrb.teamColor as intmyExperienceOrb.teamColor
Return Type:
int
Returns: The team color of the entity.
// ExperienceOrb.teamColor() as int;myExperienceOrb.teamColor();
Return Type:
int
// ExperienceOrb.teleportTo(x as double, y as double, z as double);myExperienceOrb.teleportTo(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
- The x coordinate to teleport to. y: double
Type: double
- The y coordinate to teleport to. z: double
Type: double
- The z coordinate to teleport to. // ExperienceOrb.ticksFrozen as intmyExperienceOrb.ticksFrozen
Return Type:
int
Returns: The number of ticks the entity has been frozen.
// ExperienceOrb.ticksFrozen() as int;myExperienceOrb.ticksFrozen();
Return Type:
int
// ExperienceOrb.ticksRequiredToFreeze as intmyExperienceOrb.ticksRequiredToFreeze
Return Type:
int
Returns: The number of ticks required to freeze the entity.
// ExperienceOrb.ticksRequiredToFreeze() as int;myExperienceOrb.ticksRequiredToFreeze();
Return Type:
int
// ExperienceOrb.turn(yaw as double, pitch as double);myExperienceOrb.turn(myDouble, myDouble);
Parameters:
yaw: double
Type: double
- The yaw to turn the entity to. pitch: double
Type: double
- The pitch to turn the entity to. EntityType
of the entity.Returns: The EntityType
of the entity.
myExperienceOrb.type();
Return Type:
EntityType<Entity>
// ExperienceOrb.unRide();myExperienceOrb.unRide();
// ExperienceOrb.uuid as UUIDmyExperienceOrb.uuid
Return Type:
UUID
Returns: The UUID of the entity.
// ExperienceOrb.uuid() as UUID;myExperienceOrb.uuid();
Return Type:
UUID
// ExperienceOrb.value as intmyExperienceOrb.value
Return Type:
int
Returns: The value of the experience orb.
// ExperienceOrb.value() as int;myExperienceOrb.value();
Return Type:
int
// ExperienceOrb.x as doublemyExperienceOrb.x
Return Type:
double
Returns: The x coordinate of the entity.
// ExperienceOrb.x() as double;myExperienceOrb.x();
Return Type:
double
// ExperienceOrb.y as doublemyExperienceOrb.y
Return Type:
double
Returns: The y coordinate of the entity.
// ExperienceOrb.y() as double;myExperienceOrb.y();
Return Type:
double
// ExperienceOrb.z as doublemyExperienceOrb.z
Return Type:
double
Returns: The z coordinate of the entity.
// ExperienceOrb.z() as double;myExperienceOrb.z();
Return Type:
double