Class Player
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.entity.Entity
net.minecraft.world.entity.LivingEntity
net.minecraft.world.entity.Avatar
net.minecraft.world.entity.player.Player
- All Implemented Interfaces:
DataComponentGetter, TypedInstance<EntityType<?>>, SyncedDataHolder, DebugValueSource, Attackable, ContainerUser, ItemOwner, SlotProvider, EntityAccess, UniquelyIdentifyable, Nameable, ScoreHolder, Waypoint, WaypointTransmitter, IAttachmentHolder, IEntityExtension, ILivingEntityExtension, IPlayerExtension
- Direct Known Subclasses:
AbstractClientPlayer, ServerPlayer
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class LivingEntity
LivingEntity.FallsoundsNested classes/interfaces inherited from class Entity
Entity.Flags, Entity.MoveFunction, Entity.MovementEmission, Entity.RemovalReasonNested classes/interfaces inherited from class AttachmentHolder
AttachmentHolder.AsFieldNested classes/interfaces inherited from interface DebugValueSource
DebugValueSource.Registration, DebugValueSource.ValueGetter<T>Nested classes/interfaces inherited from interface ItemOwner
ItemOwner.OffsetFromOwnerNested classes/interfaces inherited from interface Waypoint
Waypoint.IconNested classes/interfaces inherited from interface WaypointTransmitter
WaypointTransmitter.BlockConnection, WaypointTransmitter.ChunkConnection, WaypointTransmitter.Connection, WaypointTransmitter.EntityAzimuthConnection, WaypointTransmitter.EntityBlockConnection, WaypointTransmitter.EntityChunkConnection -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Abilitiesprivate final ItemCooldownsstatic final intstatic final floatprivate static final EntityDataAccessor<Float> private static final EntityDataAccessor<Integer> private static final EntityDataAccessor<OptionalInt> private static final EntityDataAccessor<OptionalInt> static final floatstatic final floatprivate static final intprivate static final floatprivate static final intprivate static final intprivate static final shortprivate static final intprotected final floatprivate Componentprotected intstatic final intprotected PlayerEnderChestContainerintfloat@Nullable FishingHookprotected FoodDataprivate @Nullable Poseprivate final GameProfilestatic final intprotected floatprivate final Inventoryfinal InventoryMenuprotected intprivate ItemStackprivate intstatic final intprivate static final intstatic final Stringprivate final Collection<MutableComponent> private booleanstatic final intprivate intprivate final Collection<MutableComponent> intintstatic final intprotected booleanFields inherited from class Avatar
DATA_PLAYER_MAIN_HAND, DATA_PLAYER_MODE_CUSTOMISATION, DEFAULT_EYE_HEIGHT, DEFAULT_MAIN_HAND, DEFAULT_MODEL_CUSTOMIZATION, DEFAULT_VEHICLE_ATTACHMENT, POSES, STANDING_DIMENSIONS, SWIMMING_BB_HEIGHTFields inherited from class LivingEntity
ARMOR_SLOT_OFFSET, attackAnim, attackStrengthTicker, autoSpinAttackDmg, autoSpinAttackItemStack, autoSpinAttackTicks, BASE_JUMP_POWER, BODY_ARMOR_OFFSET, brain, currentExplosionCause, currentImpulseImpactPos, damageContainers, DATA_LIVING_ENTITY_FLAGS, dead, DEATH_DURATION, deathTime, DEFAULT_BABY_SCALE, DEFAULT_BASE_GRAVITY, DEFAULT_KNOCKBACK, elytraAnimationState, equipment, EQUIPMENT_SLOT_OFFSET, EXTRA_RENDER_CULLING_SIZE_WITH_BIG_HAT, fallFlyTicks, hurtDuration, hurtTime, INPUT_FRICTION, interpolation, INVULNERABLE_DURATION, itemSwapTicker, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerMemoryTime, lerpHeadSteps, lerpYHeadRot, LIVING_ENTITY_FLAG_IS_USING, LIVING_ENTITY_FLAG_OFF_HAND, LIVING_ENTITY_FLAG_SPIN_ATTACK, MIN_MOVEMENT_DISTANCE, noActionTime, oAttackAnim, PLAYER_HURT_EXPERIENCE_TIME, PLAYER_NOT_WEARING_DISGUISE_ITEM, PLAYER_NOT_WEARING_DISGUISE_ITEM_FOR_TARGET, recentKineticEnemies, removeArrowTime, removeStingerTime, SADDLE_OFFSET, SLEEPING_DIMENSIONS, swinging, swingingArm, swingTime, TAG_ATTRIBUTES, TAG_BRAIN, TAG_DEATH_TIME, TAG_EQUIPMENT, TAG_FALL_FLYING, TAG_HEALTH, TAG_HURT_BY_TIMESTAMP, TAG_HURT_TIME, TAG_SLEEPING_POS, useItem, useItemRemaining, walkAnimation, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zzaFields inherited from class Entity
BASE_SAFE_FALL_DISTANCE, BASE_TICKS_REQUIRED_TO_FREEZE, blocksBuilding, BOARDING_COOLDOWN, boardingCooldown, CONTENTS_SLOT_INDEX, DATA_POSE, DATA_SHARED_FLAGS_ID, DEFAULT_BB_HEIGHT, DEFAULT_BB_WIDTH, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_2, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_5, DELTA_AFFECTED_BY_BLOCKS_BELOW_1_0, ENTITY_COUNTER, entityData, fallDistance, firstTick, FLAG_FALL_FLYING, FLAG_GLOWING, FLAG_ONFIRE, flyDist, FREEZE_HURT_FREQUENCY, horizontalCollision, hurtMarked, invulnerableTime, isInPowderSnow, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, MAX_MOVEMENTS_HANDELED_PER_TICK, minorHorizontalCollision, moveDist, needsSync, noPhysics, portalProcess, random, stringUUID, stuckSpeedMultiplier, TAG_AIR, TAG_CUSTOM_NAME, TAG_DATA, TAG_FALL_DISTANCE, TAG_FIRE, TAG_GLOWING, TAG_ID, TAG_INVULNERABLE, TAG_MOTION, TAG_NO_GRAVITY, TAG_ON_GROUND, TAG_PASSENGERS, TAG_PORTAL_COOLDOWN, TAG_POS, TAG_ROTATION, TAG_SILENT, TAG_UUID, tickCount, TOTAL_AIR_SUPPLY, uuid, verticalCollision, verticalCollisionBelow, wasEyeInWater, wasInPowderSnow, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOldFields inherited from class AttachmentHolder
ATTACHMENTS_NBT_KEYFields inherited from interface ScoreHolder
WILDCARD, WILDCARD_NAMEFields inherited from interface Waypoint
MAX_RANGE, WAYPOINT_TRANSMIT_RANGE_HIDE_MODIFIERFields inherited from interface WaypointTransmitter
REALLY_FAR_DISTANCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactuallyHurt(ServerLevel level, DamageSource source, float dmg) protected voidaddAdditionalSaveData(ValueOutput output) booleanvoidaiStep()voidanimateHurt(float yaw) voidprivate voidattackVisualEffects(Entity entity, boolean criticalAttack, boolean sweepAttack, boolean fullStrengthAttack, boolean stabAttack, float magicBoost) intawardRecipes(Collection<RecipeHolder<?>> recipes) voidawardRecipesByKey(List<ResourceKey<Recipe<?>>> recipeIds) voidawardStat(Identifier location) voidawardStat(Identifier location, int count) voidvoidprivate floatbooleanblockActionRestricted(Level level, BlockPos pos, GameType gameType) doubleprotected voidblockUsingItem(ServerLevel level, LivingEntity attacker) booleanprivate booleancanCriticalAttack(Entity entity) booleanbooleancanEat(boolean canAlwaysEat) private booleancanFallAtLeast(double deltaX, double deltaZ, double minHeight) protected booleancanGlide()booleancanHarmPlayer(Player target) private booleancannotAttack(Entity entity) booleancannotAttackWithItem(ItemStack itemStack, int tolerance) protected booleanbooleanbooleanbooleanvoidcauseExtraKnockback(Entity entity, float knockbackAmount, Vec3 oldMovement) booleancauseFallDamage(double fallDistance, float damageModifier, DamageSource damageSource) voidcauseFoodExhaustion(float amount) voidprotected static OptionalIntconvertParrotVariant(Optional<Parrot.Variant> variant) private static Optional<Parrot.Variant> convertParrotVariant(OptionalInt variant) private DamageSourcecreateAttackSource(ItemStack attackingItemStack) static AttributeSupplier.Builderprotected EntityEquipmentprotected ItemCooldownsvoidprivate voiddamageStatsAndHearts(Entity entity, float oldLivingEntityHealth) private MutableComponentdecorateDisplayNameComponent(MutableComponent nameComponent) protected voiddefineSynchedData(SynchedEntityData.Builder entityData) private booleandeflectProjectile(Entity entity) protected voidvoiddie(DamageSource source) protected voiddoAutoAttackOnTouch(LivingEntity entity) protected voidprotected booleanprivate voiddoSweepAttack(Entity entity, float baseDamage, DamageSource damageSource, float attackStrengthScale) Deprecated.private voiddoSweepAttack(Entity entity, float baseDamage, DamageSource damageSource, float attackStrengthScale, AABB sweepHitBox) protected void@Nullable ItemEntityprotected voiddropEquipment(ServerLevel level) doubleprotected static Optional<Parrot.Variant> protected booleanabstract @Nullable GameTypegameMode()floatfloatgetAttackStrengthScale(float a) protected intprotected floatdoublefloatprotected SoundEventprivate PosefloatgetDestroySpeed(BlockState state) Deprecated.floatgetDestroySpeed(BlockState state, @Nullable BlockPos pos) intcom.google.common.collect.ImmutableList<Pose> protected floatgetEnchantedDamage(Entity entity, float dmg, DamageSource damageSource) intprotected intprotected float@Nullable PoseNeo:floatprotected SoundEventgetHurtSound(DamageSource source) floatgetItemSwapScale(float a) floatgetLuck()protected floatprotected Entity.MovementEmissiongetName()getProjectile(ItemStack heldWeapon) getRopeHoldPosition(float partialTickTime) intgetScore()int@Nullable SlotAccessgetSlot(int slot) floatgetSpeed()protected SoundEventprotected SoundEventprotected SoundEventfloatintvoidgiveExperienceLevels(int amount) voidgiveExperiencePoints(int i) voidvoidhandleEntityEvent(byte id) voidbooleanbooleanhasContainerOpen(ContainerOpenersCounter container, BlockPos blockPos) booleanhasCorrectToolForDrops(BlockState state) Deprecated.booleanhasCorrectToolForDrops(BlockState state, Level level, BlockPos pos) protected booleanbooleanprotected voidhurtArmor(DamageSource damageSource, float damage) protected voidhurtHelmet(DamageSource damageSource, float damage) booleanhurtServer(ServerLevel level, DamageSource source, float damage) voidincreaseScore(int amount) interactOn(Entity entity, InteractionHand hand, Vec3 location) protected voidinternalSetAbsorptionAmount(float absorptionAmount) private booleanisAboveGround(float maxDownStep) booleanprotected booleanbooleanbooleanbooleanbooleanprivate booleanisEquipped(Item item) booleanisHurt()protected booleanbooleanisInvulnerableTo(ServerLevel level, DamageSource source) protected booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanprotected booleanprivate booleanisSweepAttack(boolean fullStrengthAttack, boolean criticalAttack, boolean knockbackAttack) booleanbooleanbooleanisWithinAttackRange(ItemStack weaponItem, AABB aabb, double buffer) booleanisWithinBlockInteractionRange(BlockPos pos, double buffer) booleanisWithinEntityInteractionRange(Entity entity, double buffer) booleanisWithinEntityInteractionRange(AABB aabb, double buffer) private voiditemAttackInteraction(Entity entity, ItemStack attackingItemStack, DamageSource damageSource, boolean applyToTarget) booleankilledEntity(ServerLevel level, LivingEntity entity, DamageSource source) voidvoidmakeStuckInBlock(BlockState blockState, Vec3 speedMultiplier) protected Vec3maybeBackOffFromEdge(Vec3 delta, MoverType moverType) booleanmayBuild()booleanmayUseItemAt(BlockPos pos, Direction direction, ItemStack itemStack) voidonAboveBubbleColumn(boolean dragDown, BlockPos pos) voidonAttack()booleanvoidonEnchantmentPerformed(ItemStack itemStack, int enchantmentCost) voidonInsideBubbleColumn(boolean dragDown) voidvoidopenCommandBlock(CommandBlockEntity commandBlock) voidopenDialog(Holder<Dialog> dialog) voidopenHorseInventory(AbstractHorse horse, Container container) voidopenItemGui(ItemStack itemStack, InteractionHand hand) voidopenJigsawBlock(JigsawBlockEntity jigsawBlock) openMenu(@Nullable MenuProvider provider) voidopenMinecartCommandBlock(MinecartCommandBlock commandBlock) voidopenNautilusInventory(AbstractNautilus nautilus, Container container) voidopenStructureBlock(StructureBlockEntity structureBlock) voidopenTestBlock(TestBlockEntity testBlock) voidopenTestInstanceBlock(TestInstanceBlockEntity testInstanceBlock) voidopenTextEdit(SignBlockEntity sign, boolean isFrontText) private voidplayServerSideSound(SoundEvent sound) voidplaySound(SoundEvent sound, float volume, float pitch) protected voidplayStepSound(BlockPos onPos, BlockState onState) booleanprivate static StringprintPlayerPermissions(PermissionSet permissions) protected voidreadAdditionalSaveData(ValueInput input) voidNeo: Force the displayed name to refresh, by firingPlayerEvent.NameFormat, using the real player name as event parameter.voidremove(Entity.RemovalReason reason) protected voidvoidvoidvoidintresetRecipes(Collection<RecipeHolder<?>> recipe) voidvoidrideTick()voidsendMerchantOffers(int containerId, MerchantOffers offers, int merchantLevel, int merchantXp, boolean showProgressBar, boolean canRestock) voidsendOverlayMessage(Component message) voidsendSystemMessage(Component message) voidsetForcedPose(@Nullable Pose pose) Neo: Force a pose for the player.voidvoidsetReducedDebugInfo(boolean reducedDebugInfo) voidsetRemainingFireTicks(int remainingTicks) voidsetScore(int value) voidsetShoulderParrotLeft(Optional<Parrot.Variant> variant) voidsetShoulderParrotRight(Optional<Parrot.Variant> variant) booleanbooleanbooleanbooleanstabAttack(EquipmentSlot slot, Entity target, float baseDamage, boolean dealsDamage, boolean dealsKnockback, boolean dismounts) voidstartAutoSpinAttack(int activationTicks, float dmg, ItemStack itemStackUsed) voidstartSleepInBed(BlockPos pos) voidstopSleepInBed(boolean forcefulWakeUp, boolean updateLevelList) voidvoidtick()protected voidprivate voidvoidvoidtriggerRecipeCrafted(RecipeHolder<?> recipe, List<ItemStack> itemStacks) booleanprivate voidprotected booleanprotected voidvoidvoidupdateTutorialInventoryAction(ItemStack itemCarried, ItemStack itemInSlot, ClickAction clickAction) protected booleanMethods inherited from class Avatar
getDefaultDimensions, getMainArm, isModelPartShown, setMainArmMethods inherited from class LivingEntity
activeLocationDependentEnchantments, addEffect, addEffect, applyInput, applyItemBlocking, applyPostImpulseGraceTime, areAllEffectsAmbient, asLivingEntity, attackable, baseTick, blockedByItem, calculateEntityAnimation, calculateFallDamage, canAttack, canBeAffected, canBeSeenByAnyone, canBreatheUnderwater, canDispenserEquipIntoSlot, canEquipWithDispenser, canFreeze, canGlideUsing, canPickUpLoot, canStandOnFluid, canUsePortal, canUseSlot, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, decreaseAirSupply, doHurtEquipment, doHurtTarget, doPush, drop, dropAllDeathLoot, dropCustomDeathLoot, dropExperience, dropFromEntityInteractLootTable, dropFromGiftLootTable, dropFromLootTable, dropFromLootTable, dropFromLootTable, dropFromLootTable, dropFromShearingLootTable, equipmentHasChanged, forceAddEffect, getActiveEffects, getActiveEffectsMap, getActiveItem, getAgeScale, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttackRangeWith, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBrain, getCombatTracker, getComfortableFallDistance, getCurrentSwingDuration, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDefaultGravity, getDimensions, getEffect, getEffectBlendFactor, getEffectiveGravity, getEquipmentSlotForItem, getEquipSound, getExperienceReward, getFallFlyingTicks, getFluidFallingAdjustedMovement, getHealth, getHitbox, getInterpolation, getItemBlockingWith, getItemBySlot, getItemHeldByArm, getItemInHand, getJumpBoostPower, getJumpPower, getJumpPower, getKillCredit, getKnockback, getLastAttacker, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtByPlayer, getLastHurtByPlayerMemoryTime, getLastHurtMob, getLastHurtMobTimestamp, getLiquidCollisionShape, getLocalBoundsForPose, getLootTableSeed, getMainHandItem, getMaxAbsorption, getMaxFallDistance, getMaxHealth, getNoActionTime, getOffhandItem, getPassengerRidingPosition, getPreciseBodyRotation, getRelativePortalPosition, getRiddenInput, getRiddenSpeed, getScale, getSecondsToDisableBlocking, getSleepingPos, getSoundVolume, getStingerCount, getSwimAmount, getTicksSinceLastKineticHitFeedback, getTicksUsingItem, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVisualRotationYInDegrees, getWaterSlowDown, getYHeadRot, goDownInWater, handleDamageEvent, handleExtraItemsCreatedOnUse, hasEffect, hasItemInSlot, hasLandedInLiquid, hasLineOfSight, hasLineOfSight, heal, igniteForTicks, increaseAirSupply, indicateDamage, isAffectedByPotions, isAlive, isAutoSpinAttack, isBaby, isBlocking, isCurrentlyGlowing, isDeadOrDying, isEquippableInSlot, isFallFlying, isHolding, isHolding, isIgnoringFallDamageFromCurrentImpulse, isInPostImpulseGraceTime, isInvertedHealAndHarm, isInWall, isJumping, isLookingAtMe, isPushable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isTransmittingWaypoint, isUsingItem, isVisuallySwimming, jumpFromGround, jumpInLiquid, kill, knockback, lerpHeadRotationStep, lerpHeadTo, lookAt, makeBrain, makePoofParticles, makeSound, makeWaypointConnectionWith, maxUpStep, onAttributeUpdated, onBelowWorld, onChangedBlock, onEffectAdded, onEffectsRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onEquippedItemBroken, onItemPickup, onLeaveCombat, onRemoval, onSyncedDataUpdated, playAttackSound, playBlockFallSound, playHurtSound, postPiercingAttack, push, pushEntities, randomTeleport, recreateFromPacket, releaseUsingItem, rememberStabbedEntity, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeFrost, resetCurrentImpulseContext, resetForwardDirectionOfRelativePortalPosition, resolveMobResponsibleForDamage, resolvePlayerResponsibleForDamage, sanitizeScale, sendEffectToPassengers, serverAiStep, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setIgnoreFallDamageFromCurrentImpulse, setItemInHand, setItemSlot, setItemSlot, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setRecordPlayingNearby, setSleepingPos, setSpeed, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldDropExperience, shouldDropLoot, shouldTakeDrowningDamage, shouldTravelInFluid, skipDropExperience, spawnItemParticles, stabbedEntities, startSleeping, startUsingItem, stopFallFlying, stopRiding, stopUsingItem, swing, swing, take, tickDeath, tickEffects, tickHeadTurn, tickRidden, travelFlying, travelFlying, travelInWater, triggerOnDeathMobEffects, tryAddFrost, tryResetCurrentImpulseContext, updateDataBeforeSync, updateEffectVisibility, updateFallFlying, updateInvisibilityStatus, updateSwingTime, updateUsingItem, updateWalkAnimation, wasExperienceConsumed, wasRecentlyStabbed, waypointIcon, wouldNotSuffocateAtTargetPoseMethods inherited from class Entity
absSnapRotationTo, absSnapTo, absSnapTo, addDeltaMovement, addPassenger, addTag, adjustSpawnLocation, applyComponentsFromItemStack, applyEffectsFromBlocks, applyEffectsFromBlocks, applyEffectsFromBlocksForLastMovements, applyGravity, applyImplicitComponent, applyImplicitComponentIfPresent, applyImplicitComponents, awardKillScore, belowNameDisplay, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canBeHitByProjectile, canCollideWith, canControlVehicle, canInteractWithLevel, canRide, canSpawnSprintParticle, canTeleport, canTrample, captureDrops, captureDrops, castComponentValue, checkBelowWorld, checkDespawn, checkFallDistanceAccumulation, checkSupportingBlock, chunkPosition, clearFire, clearFreeze, clearMovementThisTick, closerThan, closerThan, collectAllColliders, collideBoundingBox, collidedWithFluid, collidedWithShapeMovingFrom, computeSpeed, considersEntityAsAlly, copyPosition, couldAcceptPassenger, countPlayerPassengers, createCommandSourceStackForNameResolution, createHoverEvent, damageSources, dampensVibrations, deflection, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doCheckFallDamage, dropAllLeashConnections, ejectPassengers, entityTags, equals, extinguishFire, fillCrashReportCategory, fireImmune, fixupDimensions, forceSetRotation, fudgePositionAfterSizeChange, gameEvent, gameEvent, get, getAddEntityPacket, getAirSupply, getAttachments, getAvailableSpaceBelow, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getCapability, getCapability, getCollisionHorizontalEscapeVector, getControlledVehicle, getControllingPassenger, getCustomName, getDefaultPassengerAttachmentPoint, getDeltaMovement, getDirection, getDismountLocationForPassenger, getEncodeId, getEntityData, getEyeHeight, getEyeHeight, getEyePosition, getEyePosition, getEyeY, getFirstPassenger, getFluidHeight, getFluidInteractionBox, getFluidJumpThreshold, getForward, getGravity, getHandHoldingItemAngle, getHeadLookAngle, getId, getInBlockState, getIndirectPassengers, getInputVector, getKnownMovement, getKnownSpeed, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getLootTable, getMaxAirSupply, getMotionDirection, getNearestViewDirection, getOnPos, getOnPos, getOnPosLegacy, getPassengerAttachmentPoint, getPassengers, getPassengersAndSelf, getPercentFrozen, getPersistentData, getPickRadius, getPickResult, getPistonPushReaction, getPortalCooldown, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, getQuadLeashHolderOffsets, getRandom, getRandomX, getRandomY, getRandomY, getRandomZ, getRemainingFireTicks, getRemovalReason, getRequiresPrecisePosition, getRootVehicle, getRotationVector, getSelfAndPassengers, getSharedFlag, getStringUUID, getTeam, getTeamColor, getTicksFrozen, getTicksRequiredToFreeze, getType, getTypeName, getUpVector, getUUID, getVehicle, getVehicleAttachmentPoint, getViewScale, getViewVector, getViewXRot, getX, getX, getXRot, getXRot, getY, getY, getYRot, getYRot, getZ, getZ, handleOnAboveBubbleColumn, handleOnInsideBubbleColumn, handlePortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasMovedHorizontallyRecently, hasPassenger, hasPassenger, hasPose, hurt, hurtClient, hurtOrSimulate, igniteForSeconds, ignoreExplosion, interact, is, isAddedToLevel, isAffectedByBlocks, isAlliedTo, isAlliedTo, isAttackable, isColliding, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFlyingVehicle, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInClouds, isInLava, isInLiquid, isInShallowWater, isInterpolating, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableToBase, isInWater, isInWaterOrRain, isLocalInstanceAuthoritative, isNoGravity, isOnFire, isOnPortalCooldown, isOnRails, isPassenger, isPassengerOfSameVehicle, isRemoved, isShiftKeyDown, isSilent, isSprinting, isSteppingCarefully, isSupportedBy, isSuppressingBounce, isUnderWater, isVehicle, isVisuallyCrawling, lavaHurt, lavaIgnite, lerpMotion, lerpPositionAndRotationStep, level, limitPistonMovement, load, makeBoundingBox, makeBoundingBox, markHurt, mayInteract, mirror, modifyPassengerFluidInteractionBox, move, moveOrInterpolateTo, moveOrInterpolateTo, moveOrInterpolateTo, moveOrInterpolateTo, moveRelative, moveTowardsClosestSpace, nextStep, notifyLeasheeRemoved, notifyLeashHolder, oldPosition, onAddedToLevel, onClientRemoval, onExplosionHit, onFlap, onGround, onInsideBlock, onPassengerTurned, onRemovedFromLevel, onSyncedDataUpdated, pick, placePortalTicket, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSwimSound, position, positionRider, positionRider, problemPath, processFlappingMovement, processPortalCooldown, propagateFallToPassengers, push, push, reapplyPosition, refreshDimensions, registerDebugValues, registryAccess, removeAfterChangingDimensions, removeLatestMovementRecording, removePassenger, removeTag, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendBubbleColumnParticles, setAirSupply, setAsInsidePortal, setBoundingBox, setComponent, setCustomName, setCustomNameVisible, setData, setDeltaMovement, setDeltaMovement, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setNoGravity, setOldPos, setOldPosAndRot, setOldPosAndRot, setOldRot, setOnGround, setOnGroundWithMovement, setOnGroundWithMovement, setPortalCooldown, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemoved, setRequiresPrecisePosition, setRot, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYRot, shearOffAllLeashConnections, shouldBlockExplode, shouldPlayLavaHurtSound, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, snapTo, snapTo, snapTo, snapTo, snapTo, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startRiding, startSeenByPlayer, stopSeenByPlayer, supportQuadLeashAsHolder, syncData, syncPacketPositionCodec, teleport, teleportRelative, teleportSetPosition, teleportSetPosition, teleportSpectators, teleportTo, teleportTo, thunderHit, toString, touchingUnloadedChunk, trackingPosition, turn, typeHolder, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidInteraction, waterSwimSoundMethods inherited from class AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, removeData, serializeAttachmentsMethods inherited from interface ContainerUser
getLivingEntityMethods inherited from interface DataComponentGetter
get, getOrDefault, getOrDefault, getTyped, has, hasMethods inherited from interface IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData, syncDataMethods inherited from interface IEntityExtension
canBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canTrample, captureDrops, captureDrops, copyAttachmentsFrom, getClassification, getFluidFallDistanceModifier, getFluidMotionScale, getParts, getPersistentData, getSoundFromFluidType, hasCustomOutlineRendering, isAddedToLevel, isMultipartEntity, isPushedByFluid, onAddedToLevel, onRemovedFromLevel, revive, sendPairingData, shouldRiderSitMethods inherited from interface ILivingEntityExtension
canDrownInFluidType, canSwimInFluidType, jumpInFluid, moveInFluid, onDamageTaken, self, sinkInFluidMethods inherited from interface IPlayerExtension
isCloseEnough, isFakePlayer, mayFly, openMenu, openMenuMethods inherited from interface ScoreHolder
getFeedbackDisplayNameMethods inherited from interface SlotProvider
getSlotsFromRange
-
Field Details
-
PERSISTED_NBT_TAG
- See Also:
-
MAX_HEALTH
public static final int MAX_HEALTH- See Also:
-
SLEEP_DURATION
public static final int SLEEP_DURATION- See Also:
-
WAKE_UP_DURATION
public static final int WAKE_UP_DURATION- See Also:
-
ENDER_SLOT_OFFSET
public static final int ENDER_SLOT_OFFSET- See Also:
-
HELD_ITEM_SLOT
public static final int HELD_ITEM_SLOT- See Also:
-
CRAFTING_SLOT_OFFSET
public static final int CRAFTING_SLOT_OFFSET- See Also:
-
DEFAULT_BLOCK_INTERACTION_RANGE
public static final float DEFAULT_BLOCK_INTERACTION_RANGE- See Also:
-
DEFAULT_ENTITY_INTERACTION_RANGE
public static final float DEFAULT_ENTITY_INTERACTION_RANGE- See Also:
-
DATA_PLAYER_ABSORPTION_ID
-
DATA_SCORE_ID
-
DATA_SHOULDER_PARROT_LEFT
-
DATA_SHOULDER_PARROT_RIGHT
-
DEFAULT_SLEEP_TIMER
private static final short DEFAULT_SLEEP_TIMER- See Also:
-
DEFAULT_EXPERIENCE_PROGRESS
private static final float DEFAULT_EXPERIENCE_PROGRESS- See Also:
-
DEFAULT_EXPERIENCE_LEVEL
private static final int DEFAULT_EXPERIENCE_LEVEL- See Also:
-
DEFAULT_TOTAL_EXPERIENCE
private static final int DEFAULT_TOTAL_EXPERIENCE- See Also:
-
NO_ENCHANTMENT_SEED
private static final int NO_ENCHANTMENT_SEED- See Also:
-
DEFAULT_SELECTED_SLOT
private static final int DEFAULT_SELECTED_SLOT- See Also:
-
DEFAULT_SCORE
private static final int DEFAULT_SCORE- See Also:
-
CREATIVE_ENTITY_INTERACTION_RANGE_MODIFIER_VALUE
public static final float CREATIVE_ENTITY_INTERACTION_RANGE_MODIFIER_VALUE- See Also:
-
inventory
-
enderChestInventory
-
inventoryMenu
-
containerMenu
-
foodData
-
jumpTriggerTime
protected int jumpTriggerTime -
takeXpDelay
public int takeXpDelay -
sleepCounter
private int sleepCounter -
wasUnderwater
protected boolean wasUnderwater -
abilities
-
experienceLevel
public int experienceLevel -
totalExperience
public int totalExperience -
experienceProgress
public float experienceProgress -
enchantmentSeed
protected int enchantmentSeed -
defaultFlySpeed
protected final float defaultFlySpeed- See Also:
-
lastLevelUpTime
private int lastLevelUpTime -
gameProfile
-
reducedDebugInfo
private boolean reducedDebugInfo -
lastItemInMainHand
-
cooldowns
-
lastDeathLocation
-
fishing
-
hurtDir
protected float hurtDir -
prefixes
-
suffixes
-
forcedPose
-
displayname
-
-
Constructor Details
-
Player
-
-
Method Details
-
createEquipment
- Overrides:
createEquipmentin classLivingEntity
-
blockActionRestricted
-
createAttributes
-
defineSynchedData
- Overrides:
defineSynchedDatain classAvatar
-
tick
public void tick()- Overrides:
tickin classLivingEntity
-
getMaxHeadRotationRelativeToBody
protected float getMaxHeadRotationRelativeToBody()- Overrides:
getMaxHeadRotationRelativeToBodyin classLivingEntity
-
isSecondaryUseActive
public boolean isSecondaryUseActive() -
wantsToStopRiding
protected boolean wantsToStopRiding() -
isStayingOnGroundSurface
protected boolean isStayingOnGroundSurface() -
updateIsUnderwater
protected boolean updateIsUnderwater() -
onAboveBubbleColumn
- Overrides:
onAboveBubbleColumnin classEntity
-
onInsideBubbleColumn
public void onInsideBubbleColumn(boolean dragDown) - Overrides:
onInsideBubbleColumnin classEntity
-
turtleHelmetTick
private void turtleHelmetTick() -
isEquipped
-
createItemCooldowns
-
updatePlayerPose
protected void updatePlayerPose() -
getDesiredPose
-
canPlayerFitWithinBlocksAndEntitiesWhen
-
getSwimSound
- Overrides:
getSwimSoundin classEntity
-
getSwimSplashSound
- Overrides:
getSwimSplashSoundin classEntity
-
getSwimHighSpeedSplashSound
- Overrides:
getSwimHighSpeedSplashSoundin classEntity
-
getDimensionChangingDelay
public int getDimensionChangingDelay()- Overrides:
getDimensionChangingDelayin classEntity
-
playSound
-
getSoundSource
- Overrides:
getSoundSourcein classEntity
-
getFireImmuneTicks
protected int getFireImmuneTicks()- Overrides:
getFireImmuneTicksin classEntity
-
handleEntityEvent
public void handleEntityEvent(byte id) - Overrides:
handleEntityEventin classLivingEntity
-
closeContainer
public void closeContainer() -
doCloseContainer
protected void doCloseContainer() -
rideTick
public void rideTick()- Overrides:
rideTickin classLivingEntity
-
aiStep
public void aiStep()- Overrides:
aiStepin classLivingEntity
-
tickRegeneration
protected void tickRegeneration() -
handleShoulderEntities
public void handleShoulderEntities() -
removeEntitiesOnShoulder
protected void removeEntitiesOnShoulder() -
touch
-
getScore
public int getScore() -
setScore
public void setScore(int value) -
increaseScore
public void increaseScore(int amount) -
startAutoSpinAttack
-
getWeaponItem
- Overrides:
getWeaponItemin classLivingEntity
-
die
- Overrides:
diein classLivingEntity
-
dropEquipment
- Overrides:
dropEquipmentin classLivingEntity
-
destroyVanishingCursedItems
protected void destroyVanishingCursedItems() -
getHurtSound
- Overrides:
getHurtSoundin classLivingEntity
-
getDeathSound
- Overrides:
getDeathSoundin classLivingEntity
-
handleCreativeModeItemDrop
-
drop
-
getDestroySpeed
Deprecated.Neo:getDestroySpeed(BlockState, BlockPos)instead -
getDestroySpeed
-
hasCorrectToolForDrops
Deprecated. -
hasCorrectToolForDrops
-
readAdditionalSaveData
- Overrides:
readAdditionalSaveDatain classLivingEntity
-
addAdditionalSaveData
- Overrides:
addAdditionalSaveDatain classLivingEntity
-
isInvulnerableTo
- Overrides:
isInvulnerableToin classLivingEntity
-
hurtServer
- Overrides:
hurtServerin classLivingEntity
-
blockUsingItem
- Overrides:
blockUsingItemin classLivingEntity
-
canBeSeenAsEnemy
public boolean canBeSeenAsEnemy()- Overrides:
canBeSeenAsEnemyin classLivingEntity
-
canHarmPlayer
-
hurtArmor
- Overrides:
hurtArmorin classLivingEntity
-
hurtHelmet
- Overrides:
hurtHelmetin classLivingEntity
-
actuallyHurt
- Overrides:
actuallyHurtin classLivingEntity
-
isTextFilteringEnabled
public boolean isTextFilteringEnabled() -
openTextEdit
-
openMinecartCommandBlock
-
openCommandBlock
-
openStructureBlock
-
openTestBlock
-
openTestInstanceBlock
-
openJigsawBlock
-
openHorseInventory
-
openNautilusInventory
-
openMenu
-
openDialog
-
sendMerchantOffers
public void sendMerchantOffers(int containerId, MerchantOffers offers, int merchantLevel, int merchantXp, boolean showProgressBar, boolean canRestock) -
openItemGui
-
interactOn
-
removeVehicle
public void removeVehicle()- Overrides:
removeVehiclein classEntity
-
isImmobile
protected boolean isImmobile()- Overrides:
isImmobilein classLivingEntity
-
isAffectedByFluids
public boolean isAffectedByFluids()- Overrides:
isAffectedByFluidsin classLivingEntity
-
maybeBackOffFromEdge
- Overrides:
maybeBackOffFromEdgein classEntity
-
isAboveGround
private boolean isAboveGround(float maxDownStep) -
canFallAtLeast
private boolean canFallAtLeast(double deltaX, double deltaZ, double minHeight) -
attack
-
playServerSideSound
-
createAttackSource
-
cannotAttack
-
deflectProjectile
-
canCriticalAttack
-
isSweepAttack
private boolean isSweepAttack(boolean fullStrengthAttack, boolean criticalAttack, boolean knockbackAttack) -
attackVisualEffects
private void attackVisualEffects(Entity entity, boolean criticalAttack, boolean sweepAttack, boolean fullStrengthAttack, boolean stabAttack, float magicBoost) -
damageStatsAndHearts
-
itemAttackInteraction
private void itemAttackInteraction(Entity entity, ItemStack attackingItemStack, DamageSource damageSource, boolean applyToTarget) -
causeExtraKnockback
- Overrides:
causeExtraKnockbackin classLivingEntity
-
getVoicePitch
public float getVoicePitch()- Overrides:
getVoicePitchin classLivingEntity
-
doSweepAttack
@Deprecated private void doSweepAttack(Entity entity, float baseDamage, DamageSource damageSource, float attackStrengthScale) Deprecated. -
doSweepAttack
private void doSweepAttack(Entity entity, float baseDamage, DamageSource damageSource, float attackStrengthScale, AABB sweepHitBox) -
getEnchantedDamage
-
doAutoAttackOnTouch
- Overrides:
doAutoAttackOnTouchin classLivingEntity
-
crit
-
baseDamageScaleFactor
private float baseDamageScaleFactor() -
stabAttack
public boolean stabAttack(EquipmentSlot slot, Entity target, float baseDamage, boolean dealsDamage, boolean dealsKnockback, boolean dismounts) - Overrides:
stabAttackin classLivingEntity
-
magicCrit
-
remove
- Overrides:
removein classLivingEntity
-
isClientAuthoritative
public boolean isClientAuthoritative()- Overrides:
isClientAuthoritativein classEntity
-
isLocalClientAuthoritative
protected boolean isLocalClientAuthoritative()- Overrides:
isLocalClientAuthoritativein classEntity
-
isLocalPlayer
public boolean isLocalPlayer() -
canSimulateMovement
public boolean canSimulateMovement()- Overrides:
canSimulateMovementin classEntity
-
isEffectiveAi
public boolean isEffectiveAi()- Overrides:
isEffectiveAiin classEntity
-
getGameProfile
-
nameAndId
-
getInventory
-
getAbilities
-
hasInfiniteMaterials
public boolean hasInfiniteMaterials()- Overrides:
hasInfiniteMaterialsin classLivingEntity
-
preventsBlockDrops
public boolean preventsBlockDrops() -
updateTutorialInventoryAction
public void updateTutorialInventoryAction(ItemStack itemCarried, ItemStack itemInSlot, ClickAction clickAction) -
hasContainerOpen
public boolean hasContainerOpen() -
canDropItems
public boolean canDropItems() -
startSleepInBed
-
stopSleepInBed
public void stopSleepInBed(boolean forcefulWakeUp, boolean updateLevelList) -
stopSleeping
public void stopSleeping()- Overrides:
stopSleepingin classLivingEntity
-
isSleepingLongEnough
public boolean isSleepingLongEnough() -
getSleepTimer
public int getSleepTimer() -
sendSystemMessage
-
sendOverlayMessage
-
awardStat
-
awardStat
-
awardStat
-
awardStat
-
resetStat
-
awardRecipes
-
triggerRecipeCrafted
-
awardRecipesByKey
-
resetRecipes
-
travel
- Overrides:
travelin classLivingEntity
-
canGlide
protected boolean canGlide()- Overrides:
canGlidein classLivingEntity
-
updateSwimming
public void updateSwimming()- Overrides:
updateSwimmingin classEntity
-
freeAt
-
getSpeed
public float getSpeed()- Overrides:
getSpeedin classLivingEntity
-
causeFallDamage
public boolean causeFallDamage(double fallDistance, float damageModifier, DamageSource damageSource) - Overrides:
causeFallDamagein classLivingEntity
-
tryToStartFallFlying
public boolean tryToStartFallFlying() -
startFallFlying
public void startFallFlying() -
doWaterSplashEffect
protected void doWaterSplashEffect()- Overrides:
doWaterSplashEffectin classEntity
-
playStepSound
- Overrides:
playStepSoundin classEntity
-
getFallSounds
- Overrides:
getFallSoundsin classLivingEntity
-
killedEntity
- Overrides:
killedEntityin classEntity
-
makeStuckInBlock
- Overrides:
makeStuckInBlockin classEntity
-
giveExperiencePoints
public void giveExperiencePoints(int i) -
getEnchantmentSeed
public int getEnchantmentSeed() -
onEnchantmentPerformed
-
giveExperienceLevels
public void giveExperienceLevels(int amount) -
getXpNeededForNextLevel
public int getXpNeededForNextLevel() -
causeFoodExhaustion
public void causeFoodExhaustion(float amount) -
hasEnoughFoodToDoExhaustiveManoeuvres
protected boolean hasEnoughFoodToDoExhaustiveManoeuvres() -
getWardenSpawnTracker
-
getFoodData
-
canEat
public boolean canEat(boolean canAlwaysEat) -
isHurt
public boolean isHurt() -
mayBuild
public boolean mayBuild() -
mayUseItemAt
-
getBaseExperienceReward
- Overrides:
getBaseExperienceRewardin classLivingEntity
-
isAlwaysExperienceDropper
protected boolean isAlwaysExperienceDropper()- Overrides:
isAlwaysExperienceDropperin classLivingEntity
-
shouldShowName
public boolean shouldShowName()- Overrides:
shouldShowNamein classLivingEntity
-
getMovementEmission
- Overrides:
getMovementEmissionin classEntity
-
onUpdateAbilities
public void onUpdateAbilities() -
getName
-
getPlainTextName
- Specified by:
getPlainTextNamein interfaceNameable
-
getEnderChestInventory
-
doesEmitEquipEvent
- Overrides:
doesEmitEquipEventin classLivingEntity
-
addItem
-
gameMode
-
isSpectator
public boolean isSpectator()- Overrides:
isSpectatorin classEntity
-
isPickable
public boolean isPickable()- Overrides:
isPickablein classLivingEntity
-
isSwimming
public boolean isSwimming()- Overrides:
isSwimmingin classEntity
-
isCreative
public boolean isCreative() -
isPushedByFluid
public boolean isPushedByFluid()- Overrides:
isPushedByFluidin classEntity
-
getDisplayName
- Specified by:
getDisplayNamein interfaceNameable- Specified by:
getDisplayNamein interfaceScoreHolder- Overrides:
getDisplayNamein classEntity
-
decorateDisplayNameComponent
-
getScoreboardName
- Specified by:
getScoreboardNamein interfaceScoreHolder- Overrides:
getScoreboardNamein classEntity
-
internalSetAbsorptionAmount
protected void internalSetAbsorptionAmount(float absorptionAmount) - Overrides:
internalSetAbsorptionAmountin classLivingEntity
-
getAbsorptionAmount
public float getAbsorptionAmount()- Overrides:
getAbsorptionAmountin classLivingEntity
-
getSlot
- Specified by:
getSlotin interfaceSlotProvider- Overrides:
getSlotin classLivingEntity
-
isReducedDebugInfo
public boolean isReducedDebugInfo() -
setReducedDebugInfo
public void setReducedDebugInfo(boolean reducedDebugInfo) -
setRemainingFireTicks
public void setRemainingFireTicks(int remainingTicks) - Overrides:
setRemainingFireTicksin classEntity
-
extractParrotVariant
-
convertParrotVariant
-
convertParrotVariant
-
setShoulderParrotLeft
-
getShoulderParrotLeft
-
setShoulderParrotRight
-
getShoulderParrotRight
-
getCurrentItemAttackStrengthDelay
public float getCurrentItemAttackStrengthDelay() -
cannotAttackWithItem
-
getAttackStrengthScale
public float getAttackStrengthScale(float a) -
getItemSwapScale
public float getItemSwapScale(float a) -
resetAttackStrengthTicker
public void resetAttackStrengthTicker() -
onAttack
public void onAttack()- Overrides:
onAttackin classLivingEntity
-
resetOnlyAttackStrengthTicker
public void resetOnlyAttackStrengthTicker() -
getCooldowns
-
getBlockSpeedFactor
protected float getBlockSpeedFactor()- Overrides:
getBlockSpeedFactorin classLivingEntity
-
getLuck
public float getLuck()- Overrides:
getLuckin classLivingEntity
-
canUseGameMasterBlocks
public boolean canUseGameMasterBlocks() -
permissions
-
getDismountPoses
- Overrides:
getDismountPosesin classLivingEntity
-
getProjectile
- Overrides:
getProjectilein classLivingEntity
-
getRopeHoldPosition
- Overrides:
getRopeHoldPositionin classEntity
-
isAlwaysTicking
public boolean isAlwaysTicking()- Specified by:
isAlwaysTickingin interfaceEntityAccess- Overrides:
isAlwaysTickingin classEntity
-
isScoping
public boolean isScoping() -
shouldBeSaved
public boolean shouldBeSaved()- Specified by:
shouldBeSavedin interfaceEntityAccess- Overrides:
shouldBeSavedin classEntity
-
getLastDeathLocation
-
setLastDeathLocation
-
getHurtDir
public float getHurtDir()- Overrides:
getHurtDirin classLivingEntity
-
animateHurt
public void animateHurt(float yaw) - Overrides:
animateHurtin classLivingEntity
-
isMobilityRestricted
public boolean isMobilityRestricted() -
canSprint
-
getFlyingSpeed
protected float getFlyingSpeed()- Overrides:
getFlyingSpeedin classLivingEntity
-
hasContainerOpen
- Specified by:
hasContainerOpenin interfaceContainerUser
-
getContainerInteractionRange
public double getContainerInteractionRange()- Specified by:
getContainerInteractionRangein interfaceContainerUser
-
blockInteractionRange
public double blockInteractionRange() -
entityInteractionRange
public double entityInteractionRange() -
isWithinEntityInteractionRange
-
isWithinEntityInteractionRange
-
isWithinAttackRange
-
isWithinBlockInteractionRange
-
shouldRotateWithMinecart
public boolean shouldRotateWithMinecart() -
onClimbable
public boolean onClimbable()- Overrides:
onClimbablein classLivingEntity
-
debugInfo
-
printPlayerPermissions
-
getProfile
- Specified by:
getProfilein classAvatar
-
getPrefixes
-
getSuffixes
-
refreshDisplayName
public void refreshDisplayName()Neo: Force the displayed name to refresh, by firingPlayerEvent.NameFormat, using the real player name as event parameter. -
setForcedPose
Neo: Force a pose for the player. If set, the vanilla pose determination and clearance check is skipped. Make sure the pose is clear yourself (e.g. in PlayerTick). This has to be set just once, do not set it every tick. Make sure to clear (null) the pose if not required anymore and only use if necessary. -
getForcedPose
-
getDestroySpeed(BlockState, BlockPos)instead