Package net.minecraft.entity
Class ExperienceOrbEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.ExperienceOrbEntity
- All Implemented Interfaces:
class_5568,CommandOutput,Nameable
public class ExperienceOrbEntity extends Entity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.PositionUpdater, Entity.RemovalReason -
Field Summary
Fields Modifier and Type Field Description private intamountprivate intfield_27009private inthealthprivate intorbAgeprivate PlayerEntitytargetFields inherited from class net.minecraft.entity.Entity
age, dataTracker, distanceTraveled, fallDistance, field_25599, field_27857, 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, yawFields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY -
Constructor Summary
Constructors Constructor Description ExperienceOrbEntity(EntityType<? extends ExperienceOrbEntity> type, World world)ExperienceOrbEntity(World world, double x, double y, double z, int amount) -
Method Summary
Modifier and Type Method Description private voidapplyWaterMovement()protected booleancanClimb()Packet<?>createSpawnPacket()booleandamage(DamageSource source, float amount)intgetExperienceAmount()private intgetMendingRepairAmount(int experienceAmount)private intgetMendingRepairCost(int repairAmount)intgetOrbSize()SoundCategorygetSoundCategory()protected voidinitDataTracker()booleanisAttackable()static voidmethod_31493(ServerWorld serverWorld, Vec3d vec3d, int int2)private booleanmethod_31494(ExperienceOrbEntity experienceOrbEntity)private static booleanmethod_31495(ExperienceOrbEntity experienceOrbEntity, int int2, int int3)private static booleanmethod_31496(ServerWorld serverWorld, Vec3d vec3d, int int2)private voidmethod_31497(ExperienceOrbEntity experienceOrbEntity)private voidmethod_31498()voidonPlayerCollision(PlayerEntity player)protected voidonSwimmingStart()voidreadCustomDataFromTag(CompoundTag tag)static introundToOrbSize(int value)voidtick()voidwriteCustomDataToTag(CompoundTag tag)Methods inherited from class net.minecraft.entity.Entity
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, 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, method_32312, method_32313, method_32314, method_32315, method_32316, method_32317, method_32318, method_32319, 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, wouldPoseNotCollide
-
Field Details
-
orbAge
private int orbAge -
health
private int health -
amount
private int amount -
field_27009
private int field_27009 -
target
-
-
Constructor Details
-
ExperienceOrbEntity
-
ExperienceOrbEntity
-
-
Method Details
-
canClimb
protected boolean canClimb() -
initDataTracker
protected void initDataTracker()- Specified by:
initDataTrackerin classEntity
-
tick
public void tick() -
method_31498
private void method_31498() -
method_31493
-
method_31496
-
method_31494
-
method_31495
-
method_31497
-
applyWaterMovement
private void applyWaterMovement() -
onSwimmingStart
protected void onSwimmingStart()- Overrides:
onSwimmingStartin classEntity
-
damage
-
writeCustomDataToTag
- Specified by:
writeCustomDataToTagin classEntity
-
readCustomDataFromTag
- Specified by:
readCustomDataFromTagin classEntity
-
onPlayerCollision
- Overrides:
onPlayerCollisionin classEntity
-
getMendingRepairCost
private int getMendingRepairCost(int repairAmount) -
getMendingRepairAmount
private int getMendingRepairAmount(int experienceAmount) -
getExperienceAmount
public int getExperienceAmount() -
getOrbSize
@Environment(CLIENT) public int getOrbSize() -
roundToOrbSize
public static int roundToOrbSize(int value) -
isAttackable
public boolean isAttackable()- Overrides:
isAttackablein classEntity
-
createSpawnPacket
- Specified by:
createSpawnPacketin classEntity
-
getSoundCategory
- Overrides:
getSoundCategoryin classEntity
-