public class ExperienceOrbEntity extends Entity
Entity.PositionUpdater, Entity.RemovalReason| Modifier and Type | Field and Description |
|---|---|
private int |
amount |
private int |
field_27009 |
private int |
health |
private int |
orbAge |
private PlayerEntity |
target |
age, dataTracker, distanceTraveled, fallDistance, field_25599, firstUpdate, FLAGS, fluidHeight, glowing, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inNetherPortal, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, LOGGER, movementMultiplier, netherPortalTime, noClip, onGround, pitch, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, ridingCooldown, stepHeight, submergedInWater, teleporting, timeUntilRegen, touchingWater, uuid, uuidString, velocityDirty, velocityModified, verticalCollision, world, yawDUMMY| Constructor and Description |
|---|
ExperienceOrbEntity(EntityType<? extends ExperienceOrbEntity> type,
World world) |
ExperienceOrbEntity(World world,
double x,
double y,
double z,
int amount) |
| Modifier and Type | Method and Description |
|---|---|
private void |
applyWaterMovement() |
protected boolean |
canClimb() |
Packet<?> |
createSpawnPacket() |
boolean |
damage(DamageSource source,
float amount) |
int |
getExperienceAmount() |
private int |
getMendingRepairAmount(int experienceAmount) |
private int |
getMendingRepairCost(int repairAmount) |
int |
getOrbSize() |
SoundCategory |
getSoundCategory() |
protected void |
initDataTracker() |
boolean |
isAttackable() |
static void |
method_31493(ServerWorld serverWorld,
Vec3d vec3d,
int int2) |
private boolean |
method_31494(ExperienceOrbEntity experienceOrbEntity) |
private static boolean |
method_31495(ExperienceOrbEntity experienceOrbEntity,
int int2,
int int3) |
private static boolean |
method_31496(ServerWorld serverWorld,
Vec3d vec3d,
int int2) |
private void |
method_31497(ExperienceOrbEntity experienceOrbEntity) |
private void |
method_31498() |
void |
onPlayerCollision(PlayerEntity player) |
protected void |
onSwimmingStart() |
void |
readCustomDataFromTag(CompoundTag tag) |
static int |
roundToOrbSize(int value) |
void |
tick() |
void |
writeCustomDataToTag(CompoundTag tag) |
addPassenger, addScoreboardTag, addVelocity, adjustMovementForCollisions, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, adjustSingleAxisMovementForCollisions, afterSpawn, animateDamage, applyMirror, applyRotation, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeRiddenInWater, canBeSpectated, canExplosionDestroyBlock, canFly, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, checkWaterState, collides, collidesWith, copyFrom, copyPositionAndRotation, dealDamage, destroy, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, entityDataRequiresOperator, equals, equip, equipStack, extinguish, fall, fromTag, getAir, getArmorItems, getBlockPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getCommandSource, getCustomName, getDataTracker, getDefaultName, getDefaultNetherPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityId, getEntityName, getEntityWorld, getEyeHeight, getEyeHeight, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getHeadYaw, getHeight, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getItemsEquipped, getItemsHand, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getMaxAir, getMaxNetherPortalTime, getMountedHeightOffset, getMovementDirection, getName, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPickBlockStack, getPistonBehavior, getPitch, getPos, getPose, getPrimaryPassenger, getRandomBodyY, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getServer, getSplashSound, getStandingEyeHeight, getSwimSound, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getVisibilityBoundingBox, getWidth, getX, getY, getYaw, getZ, handleAttack, handleFallDamage, handleStatus, hasCustomName, hashCode, hasNetherPortalCooldown, hasNoGravity, hasPassenger, hasPassengerDeep, hasPassengers, hasPassengerType, hasPermissionLevel, hasPlayerRider, hasVehicle, hasWings, interact, interactAt, isAlive, isCollidable, isConnectedThroughVehicle, isCustomNameVisible, isDescending, isFireImmune, isGlowing, isImmuneToExplosion, isInLava, isInRange, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isPartOf, isPlayer, isPushable, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, kill, lookAt, method_29241, method_29919, method_30076, method_30330, method_30632, method_30633, method_30634, method_30950, method_30951, method_31166, method_31473, method_31744, method_31746, method_31748, move, moveToBoundingBoxCenter, moveToWorld, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onKilledOther, onPassengerLookAround, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onTrackedDataSet, playFlySound, playSound, playStepSound, playSwimSound, populateCrashReport, pushAwayFrom, pushOutOfBlocks, raycast, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, removeAllPassengers, removePassenger, removeScoreboardTag, requestTeleport, resetNetherPortalCooldown, resetPosition, saveSelfToTag, saveToTag, scheduleVelocityUpdate, sendSystemMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFireTicks, setFlag, setGlowing, setHeadYaw, setInNetherPortal, setInvisible, setInvulnerable, setNoGravity, setOnFireFor, setOnFireFromLava, setOnGround, setPos, setPose, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldBroadcastConsoleToOps, shouldLeaveSwimmingPose, shouldReceiveFeedback, shouldRender, shouldRender, shouldRenderName, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredHorizontalLength, startRiding, startRiding, stopRiding, streamPassengersRecursively, teleport, tickNetherPortal, tickNetherPortalCooldown, tickRiding, toListTag, toListTag, toString, toTag, unsetRemoved, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, wouldPoseNotCollideprivate int orbAge
private int health
private int amount
private int field_27009
private PlayerEntity target
public ExperienceOrbEntity(World world, double x, double y, double z, int amount)
public ExperienceOrbEntity(EntityType<? extends ExperienceOrbEntity> type, World world)
protected void initDataTracker()
initDataTracker in class Entityprivate void method_31498()
public static void method_31493(ServerWorld serverWorld, Vec3d vec3d, int int2)
private static boolean method_31496(ServerWorld serverWorld, Vec3d vec3d, int int2)
private boolean method_31494(ExperienceOrbEntity experienceOrbEntity)
private static boolean method_31495(ExperienceOrbEntity experienceOrbEntity, int int2, int int3)
private void method_31497(ExperienceOrbEntity experienceOrbEntity)
private void applyWaterMovement()
protected void onSwimmingStart()
onSwimmingStart in class Entitypublic boolean damage(DamageSource source, float amount)
public void writeCustomDataToTag(CompoundTag tag)
writeCustomDataToTag in class Entitypublic void readCustomDataFromTag(CompoundTag tag)
readCustomDataFromTag in class Entitypublic void onPlayerCollision(PlayerEntity player)
onPlayerCollision in class Entityprivate int getMendingRepairCost(int repairAmount)
private int getMendingRepairAmount(int experienceAmount)
public int getExperienceAmount()
@Environment(value=CLIENT) public int getOrbSize()
public static int roundToOrbSize(int value)
public boolean isAttackable()
isAttackable in class Entitypublic Packet<?> createSpawnPacket()
createSpawnPacket in class Entitypublic SoundCategory getSoundCategory()
getSoundCategory in class Entity