Package net.minecraft.entity.player
Class PlayerEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<Entity>
net.minecraft.entity.Entity
net.minecraft.entity.LivingEntity
net.minecraft.entity.player.PlayerEntity
- All Implemented Interfaces:
ICommandSource,INameable,ICapabilityProvider,ICapabilitySerializable<CompoundNBT>,IForgeEntity,INBTSerializable<CompoundNBT>
- Direct Known Subclasses:
AbstractClientPlayerEntity,ServerPlayerEntity
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.IMoveCallback -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal PlayerAbilitiesfloatprivate final CooldownTrackerprivate static final DataParameter<Float>protected static final DataParameter<Byte>protected static final DataParameter<Byte>private static final DataParameter<Integer>protected static final DataParameter<CompoundNBT>protected static final DataParameter<CompoundNBT>protected final floatprivate ITextComponentprotected intprotected EnderChestInventoryintfloatprotected FoodStatsprivate Poseprivate final com.mojang.authlib.GameProfilefinal PlayerInventoryfinal PlayerContainerprotected intprivate ItemStackprivate intfloatstatic final Stringprivate final LazyOptional<IItemHandler>private final LazyOptional<IItemHandler>private final LazyOptional<IItemHandler>private static final Map<Pose,EntitySize> private final Collection<IFormattableTextComponent>private booleanprivate intstatic final EntitySizeprivate final Collection<IFormattableTextComponent>intprivate longintprotected booleandoubledoubledoubledoubledoubledoubleFields inherited from class net.minecraft.entity.LivingEntity
animationPosition, animationSpeed, animationSpeedOld, animStep, animStepO, attackAnim, attackStrengthTicker, autoSpinAttackTicks, brain, DATA_LIVING_ENTITY_FLAGS, dead, deathScore, deathTime, fallFlyTicks, flyingSpeed, hurtDir, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYRot, lerpZ, lyHeadRot, noActionTime, oAttackAnim, oRun, removeArrowTime, removeStingerTime, rotA, rotOffs, run, SLEEPING_DIMENSIONS, swinging, swingingArm, swingTime, timeOffs, useItem, useItemRemaining, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zzaFields inherited from class net.minecraft.entity.Entity
blocksBuilding, boardingCooldown, DATA_POSE, DATA_SHARED_FLAGS_ID, ENTITY_COUNTER, entityData, fallDistance, firstTick, fluidHeight, fluidOnEyes, forcedLoading, glowing, hasImpulse, horizontalCollision, hurtMarked, inChunk, invulnerableTime, isInsidePortal, level, LOGGER, maxUpStep, moveDist, noCulling, noPhysics, onGround, portalEntrancePos, portalTime, pushthrough, random, removed, stringUUID, stuckSpeedMultiplier, tickCount, uuid, verticalCollision, walkDist, walkDistO, wasEyeInWater, wasTouchingWater, xChunk, xo, xOld, xRot, xRotO, yChunk, yo, yOld, yRot, yRotO, zChunk, zo, zOldFields inherited from interface net.minecraft.command.ICommandSource
NULL -
Constructor Summary
ConstructorsConstructorDescriptionPlayerEntity(World p_i241920_1_, BlockPos p_i241920_2_, float p_i241920_3_, com.mojang.authlib.GameProfile p_i241920_4_) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactuallyHurt(DamageSource p_70665_1_, float p_70665_2_) voidaddAdditionalSaveData(CompoundNBT p_213281_1_) booleanprivate voidaddParticlesAroundSelf(IParticleData p_213824_1_) voidaiStep()voidintawardRecipes(Collection<IRecipe<?>> p_195065_1_) voidawardRecipesByKey(ResourceLocation[] p_193102_1_) voidvoidvoidawardStat(ResourceLocation p_195066_1_) voidawardStat(ResourceLocation p_195067_1_, int p_195067_2_) booleanblockActionRestricted(World p_223729_1_, BlockPos p_223729_2_, GameType p_223729_3_) protected voidblockUsingShield(LivingEntity p_190629_1_) booleancanEat(boolean p_71043_1_) booleancanHarmPlayer(PlayerEntity p_96122_1_) booleancanTakeItem(ItemStack p_213365_1_) booleanbooleancauseFallDamage(float p_225503_1_, float p_225503_2_) voidcauseFoodExhaustion(float p_71020_1_) voidcheckMovementStatistics(double p_71000_1_, double p_71000_3_, double p_71000_5_) private voidcheckRidingStatistics(double p_71015_1_, double p_71015_3_, double p_71015_5_) voidprotected CooldownTrackerstatic UUIDcreatePlayerUUID(com.mojang.authlib.GameProfile p_146094_0_) static UUIDcreatePlayerUUID(String p_175147_0_) voidprivate IFormattableTextComponentdecorateDisplayNameComponent(IFormattableTextComponent p_208016_1_) protected voidprotected voidvoiddie(DamageSource p_70645_1_) voiddisableShield(boolean p_190777_1_) voiddisplayClientMessage(ITextComponent p_146105_1_, boolean p_146105_2_) protected voiddoAutoAttackOnTouch(LivingEntity p_204804_1_) protected voidbooleandrop(boolean p_225609_1_) protected voidfindRespawnPositionAndUseSpawnBlock(ServerWorld p_242374_0_, BlockPos p_242374_1_, float p_242374_2_, boolean p_242374_3_, boolean p_242374_4_) protected booleanfloatfloatgetAttackStrengthScale(float p_184825_1_) protected float<T> LazyOptional<T>getCapability(Capability<T> capability, Direction facing) Retrieves the Optional handler for the capability requested on the specific side.floatprotected SoundEventfloatgetDestroySpeed(BlockState p_184813_1_) Deprecated.floatgetDigSpeed(BlockState p_184813_1_, BlockPos pos) intgetDimensions(Pose p_213305_1_) com.google.common.collect.ImmutableList<Pose>intprotected intgetExperienceReward(PlayerEntity p_70693_1_) protected SoundEventgetFallDamageSound(int p_184588_1_) protected intcom.mojang.authlib.GameProfileprotected SoundEventgetHurtSound(DamageSource p_184601_1_) getItemBySlot(EquipmentSlotType p_184582_1_) floatgetLuck()doublegetName()intgetProjectile(ItemStack p_213356_1_) getRopeHoldPosition(float p_241843_1_) intgetScore()intfloatgetSpeed()floatgetStandingEyeHeight(Pose p_213348_1_, EntitySize p_213348_2_) protected SoundEventprotected SoundEventprotected SoundEventintvoidgiveExperienceLevels(int p_82242_1_) voidgiveExperiencePoints(int p_195068_1_) voidhandleEntityEvent(byte p_70103_1_) booleanhasCorrectToolForDrops(BlockState p_234569_1_) booleanhurt(DamageSource p_70097_1_, float p_70097_2_) protected voidhurtArmor(DamageSource p_230294_1_, float p_230294_2_) protected voidhurtCurrentlyUsedShield(float p_184590_1_) voidincreaseScore(int p_85039_1_) interactOn(Entity p_190775_1_, Hand p_190775_2_) private booleanbooleanprotected booleanabstract booleanbooleanisHurt()protected booleanbooleanisInvulnerableTo(DamageSource p_180431_1_) booleanbooleanisModelPartShown(PlayerModelPart p_175148_1_) protected booleanbooleanbooleanbooleanbooleanabstract booleanprotected booleanbooleanvoidvoidkilled(ServerWorld p_241847_1_, LivingEntity p_241847_2_) voidvoidmakeStuckInBlock(BlockState p_213295_1_, Vector3d p_213295_2_) protected Vector3dmaybeBackOffFromEdge(Vector3d p_225514_1_, MoverType p_225514_2_) booleanmayBuild()booleanmayUseItemAt(BlockPos p_175151_1_, Direction p_175151_2_, ItemStack p_175151_3_) private voidvoidonEnchantmentPerformed(ItemStack p_192024_1_, int p_192024_2_) protected booleanvoidvoidopenCommandBlock(CommandBlockTileEntity p_184824_1_) voidopenHorseInventory(AbstractHorseEntity p_184826_1_, IInventory p_184826_2_) voidopenItemGui(ItemStack p_184814_1_, Hand p_184814_2_) voidopenJigsawBlock(JigsawTileEntity p_213826_1_) openMenu(INamedContainerProvider p_213829_1_) voidopenMinecartCommandBlock(CommandBlockLogic p_184809_1_) voidopenStructureBlock(StructureBlockTileEntity p_189807_1_) voidopenTextEdit(SignTileEntity p_175141_1_) voidplayNotifySound(SoundEvent p_213823_1_, SoundCategory p_213823_2_, float p_213823_3_, float p_213823_4_) private voidplayShoulderEntityAmbientSound(CompoundNBT p_192028_1_) voidplaySound(SoundEvent p_184185_1_, float p_184185_2_, float p_184185_3_) voidreadAdditionalSaveData(CompoundNBT p_70037_1_) voidForce the displayed name to refresh, by firingPlayerEvent.NameFormat, using the real player name as event parameter.voidremove(boolean keepData) protected voidvoidvoidvoidresetPos()intresetRecipes(Collection<IRecipe<?>> p_195069_1_) voidvoidrespawn()private voidrespawnEntityOnShoulder(CompoundNBT p_192026_1_) voidrideTick()voidsendMerchantOffers(int p_213818_1_, MerchantOffers p_213818_2_, int p_213818_3_, int p_213818_4_, boolean p_213818_5_, boolean p_213818_6_) protected voidvoidsetAbsorptionAmount(float p_110149_1_) booleansetEntityOnShoulder(CompoundNBT p_192027_1_) voidsetForcedPose(Pose pose) Force a pose for the player.voidsetGameMode(GameType p_71033_1_) voidsetItemSlot(EquipmentSlotType p_184201_1_, ItemStack p_184201_2_) voidsetMainArm(HandSide p_184819_1_) voidsetReducedDebugInfo(boolean p_175150_1_) voidsetRemainingFireTicks(int p_241209_1_) voidsetScore(int p_85040_1_) protected voidsetShoulderEntityLeft(CompoundNBT p_192029_1_) protected voidsetShoulderEntityRight(CompoundNBT p_192031_1_) booleanprotected booleanshouldRemoveSoulSpeed(BlockState p_230295_1_) booleanvoidcom.mojang.datafixers.util.Either<PlayerEntity.SleepResult,Unit> startSleepInBed(BlockPos p_213819_1_) voidvoidstopSleepInBed(boolean p_225652_1_, boolean p_225652_2_) voidvoidvoidtick()private voidvoidbooleanprivate voidprotected booleanprotected voidvoidprotected booleanMethods inherited from class net.minecraft.entity.LivingEntity
addEffect, animateHurt, areAllEffectsAmbient, attackable, baseTick, blockedByShield, brainProvider, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, calculateFallDamage, canAttack, canAttack, canAttackType, canBeAffected, canBreatheUnderwater, canSee, canSpawnSoulSpeedParticle, canStandOnFluid, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createLootContext, createWitherRose, curePotionEffects, decreaseAirSupply, doHurtTarget, doPush, dropAllDeathLoot, dropCustomDeathLoot, dropExperience, dropFromLootTable, forceAddEffect, getActiveEffects, getActiveEffectsMap, getAddEntityPacket, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBoundingBoxForCulling, getBrain, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDrinkingSound, getEatingSound, getEffect, getEyeHeight, getFallFlyingTicks, getFeetBlockState, getFluidFallingAdjustedMovement, getHealth, getItemInHand, getJumpPower, getKillCredit, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getLootTable, getMainHandItem, getMaxHealth, getMobType, getNoActionTime, getOffhandItem, getRandom, getRelativePortalPosition, getScale, getSleepingPos, getSoundVolume, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, heal, increaseAirSupply, invalidateCaps, isAffectedByPotions, isAlive, isAutoSpinAttack, isBaby, isBlocking, isDeadOrDying, isEffectiveAi, isFallFlying, isHolding, isHolding, isInvertedHealAndHarm, isInWall, isPickable, isPushable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpInLiquid, kill, knockback, lerpHeadTo, lerpTo, lookAt, makeBrain, markHurt, onChangedBlock, onClimbable, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onItemPickup, onLeaveCombat, onSyncedDataUpdated, outOfWorld, playBlockFallSound, playEquipSound, playHurtSound, push, pushEntities, randomTeleport, releaseUsingItem, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, rideableUnderWater, setArrowCount, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setOnGround, setRecordPlayingNearby, setSleepingPos, setSpeed, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDropExperience, shouldDropLoot, shouldRiderFaceForward, spawnSoulSpeedParticle, startAutoSpinAttack, startSleeping, startUsingItem, stopRiding, stopUsingItem, swing, swing, take, tickDeath, tickEffects, tickHeadTurn, triggerItemUseEffects, tryAddSoulSpeed, updateEffectVisibility, updateInvisibilityStatus, updateSwingTimeMethods inherited from class net.minecraft.entity.Entity
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canChangeDimensions, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkAndResetForcedChunkAdditionFlag, checkAndResetUpdateChunkPos, checkDespawn, checkInsideBlocks, clearFire, closerThan, collideBoundingBox, collideBoundingBoxHeuristically, collideBoundingBoxLegacy, copyPosition, createCommandSourceStack, createHoverEvent, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, ejectPassengers, equals, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBoundingBox, getBoundingBoxForPose, getBrightness, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControllingPassenger, getCustomName, getDeltaMovement, getDirection, getDismountLocationForPassenger, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyePosition, getEyeY, getFluidHeight, getFluidJumpThreshold, getForward, getHorizontalDistanceSqr, getId, getIndirectPassengers, getLeashOffset, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxFallDistance, getMotionDirection, getOnPos, getPacketCoordinates, getPassengers, getPassengersRidingOffset, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPose, getPosition, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRootVehicle, getRotationVector, getSelfAndPassengers, getServer, getSharedFlag, getStringUUID, getTags, getTeam, getTeamColor, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getX, getX, getY, getY, getZ, getZ, handleInsidePortal, handleNetherPortal, hasCustomName, hashCode, hasIndirectPassenger, hasOnePlayerPassenger, hasPassenger, hasPassenger, hasPermissions, ignoreExplosion, interact, interactAt, is, isAddedToWorld, isAlliedTo, isAlliedTo, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFree, isGlowing, isIgnoringBlockTriggers, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isShiftKeyDown, isSilent, isSprinting, isSteppingCarefully, isSuppressingBounce, isUnderWater, isVehicle, isVisuallyCrawling, lavaHurt, lerpMotion, limitPistonMovement, load, makeFlySound, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, pick, playerTouch, playFlySound, playStepSound, playSwimSound, position, positionRider, processPortalCooldown, push, reapplyPosition, refreshDimensions, remove, removeAfterChangingDimensions, removePassenger, removeTag, repositionEntityAfterLoad, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowing, setId, setInvisible, setInvulnerable, setLevel, setLocationFromBoundingbox, setNoGravity, setPacketCoordinates, setPacketCoordinates, setPortalCooldown, setPos, setPosAndOldPos, setPose, setPosRaw, setRot, setSecondsOnFire, setSharedFlag, setShiftKeyDown, setSilent, setSwimming, setUUID, setViewScale, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startRiding, startSeenByPlayer, stopSeenByPlayer, teleportTo, teleportToWithTicket, thunderHit, toString, turn, unRide, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushingMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCapsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeEntity
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getDimensionsForge, getEntity, getEyeHeightForge, getParts, getPickedResult, isMultipartEntity, serializeNBT, shouldRiderSit
-
Field Details
-
PERSISTED_NBT_TAG
- See Also:
-
STANDING_DIMENSIONS
-
POSES
-
DATA_PLAYER_ABSORPTION_ID
-
DATA_SCORE_ID
-
DATA_PLAYER_MODE_CUSTOMISATION
-
DATA_PLAYER_MAIN_HAND
-
DATA_SHOULDER_LEFT
-
DATA_SHOULDER_RIGHT
-
timeEntitySatOnShoulder
private long timeEntitySatOnShoulder -
inventory
-
enderChestInventory
-
inventoryMenu
-
containerMenu
-
foodData
-
jumpTriggerTime
protected int jumpTriggerTime -
oBob
public float oBob -
bob
public float bob -
takeXpDelay
public int takeXpDelay -
xCloakO
public double xCloakO -
yCloakO
public double yCloakO -
zCloakO
public double zCloakO -
xCloak
public double xCloak -
yCloak
public double yCloak -
zCloak
public double zCloak -
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
private final com.mojang.authlib.GameProfile gameProfile -
reducedDebugInfo
private boolean reducedDebugInfo -
lastItemInMainHand
-
cooldowns
-
fishing
-
prefixes
-
suffixes
-
forcedPose
-
displayname
-
playerMainHandler
-
playerEquipmentHandler
-
playerJoinedHandler
-
-
Constructor Details
-
PlayerEntity
-
-
Method Details
-
blockActionRestricted
-
createAttributes
-
defineSynchedData
protected void defineSynchedData()- Overrides:
defineSynchedDatain classLivingEntity
-
tick
public void tick()- Overrides:
tickin classLivingEntity
-
isSecondaryUseActive
public boolean isSecondaryUseActive() -
wantsToStopRiding
protected boolean wantsToStopRiding() -
isStayingOnGroundSurface
protected boolean isStayingOnGroundSurface() -
updateIsUnderwater
protected boolean updateIsUnderwater() -
turtleHelmetTick
private void turtleHelmetTick() -
createItemCooldowns
-
moveCloak
private void moveCloak() -
updatePlayerPose
protected void updatePlayerPose() -
getPortalWaitTime
public int getPortalWaitTime()- Overrides:
getPortalWaitTimein classEntity
-
getSwimSound
- Overrides:
getSwimSoundin classEntity
-
getSwimSplashSound
- Overrides:
getSwimSplashSoundin classEntity
-
getSwimHighSpeedSplashSound
- Overrides:
getSwimHighSpeedSplashSoundin classEntity
-
getDimensionChangingDelay
public int getDimensionChangingDelay()- Overrides:
getDimensionChangingDelayin classEntity
-
playSound
-
playNotifySound
public void playNotifySound(SoundEvent p_213823_1_, SoundCategory p_213823_2_, float p_213823_3_, float p_213823_4_) -
getSoundSource
- Overrides:
getSoundSourcein classEntity
-
getFireImmuneTicks
protected int getFireImmuneTicks()- Overrides:
getFireImmuneTicksin classEntity
-
handleEntityEvent
public void handleEntityEvent(byte p_70103_1_) - Overrides:
handleEntityEventin classLivingEntity
-
addParticlesAroundSelf
-
closeContainer
public void closeContainer() -
rideTick
public void rideTick()- Overrides:
rideTickin classLivingEntity
-
resetPos
public void resetPos() -
serverAiStep
protected void serverAiStep()- Overrides:
serverAiStepin classLivingEntity
-
aiStep
public void aiStep()- Overrides:
aiStepin classLivingEntity
-
playShoulderEntityAmbientSound
-
touch
-
getScore
public int getScore() -
setScore
public void setScore(int p_85040_1_) -
increaseScore
public void increaseScore(int p_85039_1_) -
die
- Overrides:
diein classLivingEntity
-
dropEquipment
protected void dropEquipment()- Overrides:
dropEquipmentin classLivingEntity
-
destroyVanishingCursedItems
protected void destroyVanishingCursedItems() -
getHurtSound
- Overrides:
getHurtSoundin classLivingEntity
-
getDeathSound
- Overrides:
getDeathSoundin classLivingEntity
-
drop
public boolean drop(boolean p_225609_1_) -
drop
-
drop
-
getDestroySpeed
Deprecated. -
getDigSpeed
-
hasCorrectToolForDrops
-
readAdditionalSaveData
- Overrides:
readAdditionalSaveDatain classLivingEntity
-
addAdditionalSaveData
- Overrides:
addAdditionalSaveDatain classLivingEntity
-
isInvulnerableTo
- Overrides:
isInvulnerableToin classEntity
-
hurt
- Overrides:
hurtin classLivingEntity
-
blockUsingShield
- Overrides:
blockUsingShieldin classLivingEntity
-
canHarmPlayer
-
hurtArmor
- Overrides:
hurtArmorin classLivingEntity
-
hurtCurrentlyUsedShield
protected void hurtCurrentlyUsedShield(float p_184590_1_) - Overrides:
hurtCurrentlyUsedShieldin classLivingEntity
-
actuallyHurt
- Overrides:
actuallyHurtin classLivingEntity
-
onSoulSpeedBlock
protected boolean onSoulSpeedBlock()- Overrides:
onSoulSpeedBlockin classLivingEntity
-
openTextEdit
-
openMinecartCommandBlock
-
openCommandBlock
-
openStructureBlock
-
openJigsawBlock
-
openHorseInventory
-
openMenu
-
sendMerchantOffers
public void sendMerchantOffers(int p_213818_1_, MerchantOffers p_213818_2_, int p_213818_3_, int p_213818_4_, boolean p_213818_5_, boolean p_213818_6_) -
openItemGui
-
interactOn
-
getMyRidingOffset
public double getMyRidingOffset()- Overrides:
getMyRidingOffsetin classEntity
-
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() -
attack
-
doAutoAttackOnTouch
- Overrides:
doAutoAttackOnTouchin classLivingEntity
-
disableShield
public void disableShield(boolean p_190777_1_) -
crit
-
magicCrit
-
sweepAttack
public void sweepAttack() -
respawn
public void respawn() -
remove
public void remove(boolean keepData) -
isLocalPlayer
public boolean isLocalPlayer() -
getGameProfile
public com.mojang.authlib.GameProfile getGameProfile() -
startSleepInBed
public com.mojang.datafixers.util.Either<PlayerEntity.SleepResult,Unit> startSleepInBed(BlockPos p_213819_1_) -
stopSleepInBed
public void stopSleepInBed(boolean p_225652_1_, boolean p_225652_2_) -
stopSleeping
public void stopSleeping()- Overrides:
stopSleepingin classLivingEntity
-
findRespawnPositionAndUseSpawnBlock
public static Optional<Vector3d> findRespawnPositionAndUseSpawnBlock(ServerWorld p_242374_0_, BlockPos p_242374_1_, float p_242374_2_, boolean p_242374_3_, boolean p_242374_4_) -
isSleepingLongEnough
public boolean isSleepingLongEnough() -
getSleepTimer
public int getSleepTimer() -
displayClientMessage
-
awardStat
-
awardStat
-
awardStat
-
awardStat
-
resetStat
-
awardRecipes
-
awardRecipesByKey
-
resetRecipes
-
jumpFromGround
public void jumpFromGround()- Overrides:
jumpFromGroundin classLivingEntity
-
travel
- Overrides:
travelin classLivingEntity
-
updateSwimming
public void updateSwimming()- Overrides:
updateSwimmingin classEntity
-
freeAt
-
getSpeed
public float getSpeed()- Overrides:
getSpeedin classLivingEntity
-
checkMovementStatistics
public void checkMovementStatistics(double p_71000_1_, double p_71000_3_, double p_71000_5_) -
checkRidingStatistics
private void checkRidingStatistics(double p_71015_1_, double p_71015_3_, double p_71015_5_) -
causeFallDamage
public boolean causeFallDamage(float p_225503_1_, float p_225503_2_) - Overrides:
causeFallDamagein classLivingEntity
-
tryToStartFallFlying
public boolean tryToStartFallFlying() -
startFallFlying
public void startFallFlying() -
stopFallFlying
public void stopFallFlying() -
doWaterSplashEffect
protected void doWaterSplashEffect()- Overrides:
doWaterSplashEffectin classEntity
-
getFallDamageSound
- Overrides:
getFallDamageSoundin classLivingEntity
-
killed
-
makeStuckInBlock
- Overrides:
makeStuckInBlockin classEntity
-
giveExperiencePoints
public void giveExperiencePoints(int p_195068_1_) -
getEnchantmentSeed
public int getEnchantmentSeed() -
onEnchantmentPerformed
-
giveExperienceLevels
public void giveExperienceLevels(int p_82242_1_) -
getXpNeededForNextLevel
public int getXpNeededForNextLevel() -
causeFoodExhaustion
public void causeFoodExhaustion(float p_71020_1_) -
getFoodData
-
canEat
public boolean canEat(boolean p_71043_1_) -
isHurt
public boolean isHurt() -
mayBuild
public boolean mayBuild() -
mayUseItemAt
-
getExperienceReward
- Overrides:
getExperienceRewardin classLivingEntity
-
isAlwaysExperienceDropper
protected boolean isAlwaysExperienceDropper()- Overrides:
isAlwaysExperienceDropperin classLivingEntity
-
shouldShowName
public boolean shouldShowName()- Overrides:
shouldShowNamein classLivingEntity
-
isMovementNoisy
protected boolean isMovementNoisy()- Overrides:
isMovementNoisyin classEntity
-
onUpdateAbilities
public void onUpdateAbilities() -
setGameMode
-
getName
-
getEnderChestInventory
-
getItemBySlot
- Specified by:
getItemBySlotin classLivingEntity
-
setItemSlot
- Specified by:
setItemSlotin classLivingEntity
-
addItem
-
getHandSlots
- Overrides:
getHandSlotsin classEntity
-
getArmorSlots
- Specified by:
getArmorSlotsin classLivingEntity
-
setEntityOnShoulder
-
removeEntitiesOnShoulder
protected void removeEntitiesOnShoulder() -
respawnEntityOnShoulder
-
isSpectator
public abstract boolean isSpectator()- Overrides:
isSpectatorin classEntity
-
isSwimming
public boolean isSwimming()- Overrides:
isSwimmingin classEntity
-
isCreative
public abstract boolean isCreative() -
isPushedByFluid
public boolean isPushedByFluid()- Overrides:
isPushedByFluidin classEntity
-
getScoreboard
-
getDisplayName
- Specified by:
getDisplayNamein interfaceINameable- Overrides:
getDisplayNamein classEntity
-
decorateDisplayNameComponent
private IFormattableTextComponent decorateDisplayNameComponent(IFormattableTextComponent p_208016_1_) -
getScoreboardName
- Overrides:
getScoreboardNamein classEntity
-
getStandingEyeHeight
- Overrides:
getStandingEyeHeightin classLivingEntity
-
setAbsorptionAmount
public void setAbsorptionAmount(float p_110149_1_) - Overrides:
setAbsorptionAmountin classLivingEntity
-
getAbsorptionAmount
public float getAbsorptionAmount()- Overrides:
getAbsorptionAmountin classLivingEntity
-
createPlayerUUID
-
createPlayerUUID
-
isModelPartShown
-
setSlot
-
isReducedDebugInfo
public boolean isReducedDebugInfo() -
setReducedDebugInfo
public void setReducedDebugInfo(boolean p_175150_1_) -
setRemainingFireTicks
public void setRemainingFireTicks(int p_241209_1_) - Overrides:
setRemainingFireTicksin classEntity
-
getMainArm
- Specified by:
getMainArmin classLivingEntity
-
setMainArm
-
getShoulderEntityLeft
-
setShoulderEntityLeft
-
getShoulderEntityRight
-
setShoulderEntityRight
-
getCurrentItemAttackStrengthDelay
public float getCurrentItemAttackStrengthDelay() -
getAttackStrengthScale
public float getAttackStrengthScale(float p_184825_1_) -
resetAttackStrengthTicker
public void resetAttackStrengthTicker() -
getCooldowns
-
getBlockSpeedFactor
protected float getBlockSpeedFactor()- Overrides:
getBlockSpeedFactorin classLivingEntity
-
getLuck
public float getLuck() -
canUseGameMasterBlocks
public boolean canUseGameMasterBlocks() -
canTakeItem
- Overrides:
canTakeItemin classLivingEntity
-
getDimensions
- Overrides:
getDimensionsin classLivingEntity
-
getDismountPoses
- Overrides:
getDismountPosesin classLivingEntity
-
getProjectile
- Overrides:
getProjectilein classLivingEntity
-
eat
- Overrides:
eatin classLivingEntity
-
shouldRemoveSoulSpeed
- Overrides:
shouldRemoveSoulSpeedin classLivingEntity
-
getRopeHoldPosition
- Overrides:
getRopeHoldPositionin classEntity
-
getPrefixes
-
getSuffixes
-
refreshDisplayName
public void refreshDisplayName()Force the displayed name to refresh, by firingPlayerEvent.NameFormat, using the real player name as event parameter. -
getCapability
Description copied from interface:ICapabilityProviderRetrieves the Optional handler for the capability requested on the specific side. The return value CAN be the same for multiple faces. Modders are encouraged to cache this value, using the listener capabilities of the Optional to be notified if the requested capability get lost.- Specified by:
getCapabilityin interfaceICapabilityProvider- Overrides:
getCapabilityin classLivingEntity- Returns:
- The requested an optional holding the requested capability.
-
setForcedPose
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
- Returns:
- The forced pose if set, null otherwise
-