net.minecraft.entity

public class ExperienceOrbEntity

extends Entity

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, EntryConvertible

net.minecraft.world.entity.ExperienceOrb
net.minecraft.class_1303
net.minecraft.entity.ExperienceOrbEntity

Field summary

Modifier and TypeField
protected static final TrackedData<Integer>
DATA_VALUE
field_55950
VALUE
private static final int
LIFETIME
field_30055
DESPAWN_AGE
private static final int
ENTITY_SCAN_PERIOD
field_30056
EXPENSIVE_UPDATE_INTERVAL
private static final int
MAX_FOLLOW_DIST
field_30057
field_30057
private static final int
ORB_GROUPS_PER_AREA
field_30058
MERGING_CHANCE_FRACTION
private static final double
ORB_MERGE_DISTANCE
field_30059
field_30059
private static final short
DEFAULT_HEALTH
field_57583
DEFAULT_HEALTH
private static final short
DEFAULT_AGE
field_57584
DEFAULT_AGE
private static final short
DEFAULT_VALUE
field_57585
DEFAULT_VALUE
private static final int
DEFAULT_COUNT
field_57586
DEFAULT_COUNT
private int
age
field_6164
orbAge
private int
health
field_6161
health
private int
count
field_27009
pickingCount
private PlayerEntity
followingPlayer
field_6162
target
private final PositionInterpolator
interpolation
field_55662
interpolator

Constructor summary

ModifierConstructor
public (World world, double x, double y, double z, int amount)
public (World world, Vec3d pos, Vec3d velocity, int amount)
public (EntityType<? extends ExperienceOrbEntity> type, World level)

Method summary

Modifier and TypeMethod
protected void
unstuckIfPossible(double maxDistance)
method_71968(double arg0)
tryMoveToOpenSpace(double boundingBoxLength)
protected Entity$MoveEffect
getMovementEmission()
method_33570()
getMoveEffect()
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
protected double
getDefaultGravity()
method_7490()
getGravity()
public void
tick()
method_5773()
tick()
protected float
getAirDrag()
method_1_5399()
getAirDragModifier()
private void
followNearbyPlayer()
method_66264()
moveTowardsPlayer()
public BlockPos
getBlockPosBelowThatAffectsMyMovement()
method_23314()
getVelocityAffectingPos()
private void
scanForMerges()
method_31498()
expensiveUpdate()
public static void
award(ServerLevel level, Vec3 pos, int amount)
method_31493(class_3218 arg0, class_243 arg1, int arg2)
spawn(ServerWorld world, Vec3d pos, int amount)
public static void
awardWithDirection(ServerLevel level, Vec3 pos, Vec3 roughDirection, int amount)
method_71373(class_3218 arg0, class_243 arg1, class_243 arg2, int arg3)
spawn(ServerWorld world, Vec3d pos, Vec3d velocity, int amount)
private static boolean
tryMergeToExisting(ServerLevel level, Vec3 pos, int value)
method_31496(class_3218 arg0, class_243 arg1, int arg2)
wasMergedIntoExistingOrb(ServerWorld world, Vec3d pos, int amount)
private boolean
canMerge(ExperienceOrb orb)
method_31494(class_1303 arg0)
isMergeable(ExperienceOrbEntity other)
private static boolean
canMerge(ExperienceOrb orb, int id, int value)
method_31495(class_1303 arg0, int arg1, int arg2)
isMergeable(ExperienceOrbEntity orb, int seed, int amount)
private void
merge(ExperienceOrb orb)
method_31497(class_1303 arg0)
merge(ExperienceOrbEntity other)
private void
setUnderwaterMovement()
method_5921()
applyWaterMovement()
protected void
doWaterSplashEffect()
method_5746()
onSwimmingStart()
public final boolean
hurtClient(DamageSource source)
method_5643(class_1282 arg0)
clientDamage(DamageSource arg0)
public final boolean
hurtServer(ServerLevel level, DamageSource source, float damage)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
public void
playerTouch(Player player)
method_5694(class_1657 arg0)
onPlayerCollision(PlayerEntity arg0)
private int
repairPlayerItems(ServerPlayer player, int amount)
method_35051(class_3222 arg0, int arg1)
repairPlayerGears(ServerPlayerEntity player, int amount)
public int
getValue()
method_5919()
getValue()
private void
setValue(int value)
method_66666(int arg0)
setValue(int value)
public int
getIcon()
method_5920()
getOrbSize()
public static int
getExperienceValue(int maxValue)
method_5918(int arg0)
roundToOrbSize(int value)
public boolean
isAttackable()
method_5732()
isAttackable()
public SoundCategory
getSoundSource()
method_5634()
getSoundCategory()
public PositionInterpolator
getInterpolation()
method_66233()
getInterpolator()
public MovementSide
getMoveSimulationType()
method_1_7596()
getMovementSide()
private static boolean
lambda$tryMergeToExisting$0(int arg0, int arg1, ExperienceOrb arg2)
method_31492(int arg0, int arg1, class_1303 arg2)
method_31492(int arg0, int arg1, ExperienceOrbEntity orb)
private void
lambda$unstuckIfPossible$0(Vec3 arg0)
method_71967(class_243 arg0)
method_71967(Vec3d pos)