Class ServerPlayerEntity
- All Implemented Interfaces:
Attackable,ScoreHolder,CommandOutput,Nameable,EntityLike
- Mappings:
Namespace Name official aneintermediary net/minecraft/class_3222named net/minecraft/server/network/ServerPlayerEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.player.PlayerEntity
PlayerEntity.SleepFailureReasonNested classes/interfaces inherited from class net.minecraft.entity.LivingEntity
LivingEntity.FallSoundsNested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PlayerAdvancementTrackerprivate booleanprivate ChunkFilterprivate booleanprivate ChatVisibilityprivate booleanprivate static final intprivate static final intprivate static final intprivate booleanprivate booleanprivate intprivate Stringprivate longprivate intprivate intprivate intprivate intprivate floatprivate intprivate intprivate static final Loggerbooleanprivate final ServerRecipeBookprivate final ScreenHandlerListenerprivate final ScreenHandlerSyncHandlerprivate intprivate SculkShriekerWarningManagerprivate booleanfinal MinecraftServerprivate @Nullable PublicPlayerSessionprivate floatprivate booleanprivate RegistryKey<World>private final ServerStatHandlerprivate intprivate intprivate floatprivate booleanprivate final TextStreamprivate intprivate ChunkSectionPosA chunk section position indicating where the player's client is currently watching chunks from.Fields inherited from class net.minecraft.entity.player.PlayerEntity
abilityResyncCountdown, capeX, capeY, capeZ, currentScreenHandler, damageTiltYaw, DEFAULT_EYE_HEIGHT, DEFAULT_MAIN_ARM, enchantmentTableSeed, enderChestInventory, experienceLevel, experiencePickUpDelay, experienceProgress, field_30643, field_30644, field_30645, field_30646, field_30647, field_30648, field_30649, field_30650, field_46175, field_7509, fishHook, hungerManager, isSubmergedInWater, LEFT_SHOULDER_ENTITY, MAIN_ARM, PLAYER_MODEL_PARTS, playerScreenHandler, prevCapeX, prevCapeY, prevCapeZ, prevStrideDistance, RIGHT_SHOULDER_ENTITY, STANDING_DIMENSIONS, strideDistance, totalExperienceFields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, BABY_SCALE_FACTOR, bodyTrackingIncrements, bodyYaw, brain, dead, DEATH_TICKS, deathTime, defaultMaxHealth, despawnCounter, EQUIPMENT_SLOT_ID, field_30063, field_30067, field_30069, field_30070, field_30072, field_30074, field_30075, field_6215, forwardSpeed, GLOWING_FLAG, GRAVITY, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, hurtTime, itemUseTimeLeft, jumping, lastAttackedTicks, lastDamageTaken, lastHandSwingProgress, limbAnimator, LIVING_FLAGS, lookDirection, maxHurtTime, OFF_HAND_ACTIVE_FLAG, playerHitTimer, preferredHand, prevBodyYaw, prevHeadYaw, prevLookDirection, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, riptideTicks, roll, scoreAmount, serverHeadYaw, serverPitch, serverX, serverY, serverYaw, serverZ, sidewaysSpeed, SLEEPING_DIMENSIONS, stepBobbingAmount, stuckArrowTimer, stuckStingerTimer, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAGFields inherited from class net.minecraft.entity.Entity
age, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_FLYING_FLAG_INDEX, fallDistance, field_29991, field_44870, field_44871, field_44872, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inNetherPortal, inPowderSnow, intersectionChecked, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, netherPortalTime, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFireFields inherited from interface net.minecraft.server.command.CommandOutput
DUMMYFields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME -
Constructor Summary
ConstructorsConstructorDescriptionServerPlayerEntity(MinecraftServer server, ServerWorld world, com.mojang.authlib.GameProfile profile, SyncedClientOptions clientOptions) -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanprivate booleanacceptsMessage(boolean overlay) voidaddCritParticles(Entity target) voidaddEnchantedHitParticles(Entity target) voidaddExperience(int experience) voidaddExperienceLevels(int levels) booleanvoidapplyEnchantmentCosts(ItemStack enchantedItem, int experienceLevels) protected voidbooleanvoidprivate intcalculateSpawnOffsetMultiplier(int horizontalSpawnArea) booleancanBeSpectated(ServerPlayerEntity spectator) Returns whetherspectatorcan spectate this entity.booleancanModifyAt(World world, BlockPos pos) Returns whether the entity can modify the world atpos.booleanchangeGameMode(GameMode gameMode) voidCloses the currently open handled screen.protected voidvoidcopyFrom(ServerPlayerEntity oldPlayer, boolean alive) protected ItemCooldownManagerprivate voidcreateEndSpawnPlatform(ServerWorld world, BlockPos centerPos) booleandamage(DamageSource source, float amount) Applies a damage to this entity.booleandropSelectedItem(boolean entireStack) voidvoidprotected voidfall(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition) Called when the entity falls.private voidgameModeFromNbt(@Nullable NbtCompound nbt, String key) getIp()longprotected intReturns the permission level of this entity.protected Optional<BlockLocating.Rectangle>getPortalRect(ServerWorld destWorld, BlockPos destPos, boolean destIsNether, WorldBorder worldBorder) Returns the portal rect atdestPos.private GameModegetServerGameMode(@Nullable GameMode backupGameMode) Returns the server game mode the player should be set to, namely the forced game mode.floatprotected @Nullable TeleportTargetgetTeleportTarget(ServerWorld destination) Returns aTeleportTargetfor the entity based on its current and destination worlds, plus any nether portals that may be present.intReturns the chunk section position the player's client is currently watching from.voidhandleFall(double xDifference, double yDifference, double zDifference, boolean onGround) private voidincreaseRidingMotionStats(double deltaX, double deltaY, double deltaZ) voidincreaseStat(Stat<?> stat, int amount) voidincreaseTravelMotionStats(double deltaX, double deltaY, double deltaZ) private voidprivate booleanisBedObstructed(BlockPos pos, Direction direction) private booleanisBedTooFarAway(BlockPos pos) private booleanisBedTooFarAway(BlockPos pos, Direction direction) booleanReturns whether this player is in creative mode.booleanbooleanbooleanisInvulnerableTo(DamageSource damageSource) Returns whether the entity is invulnerable todamageSource.private booleanbooleanbooleanReturns whether the entity is a spectator.private static booleanisZero(double deltaX, double deltaY, double deltaZ) intlockRecipes(Collection<RecipeEntry<?>> recipes) voidlookAt(EntityAnchorArgumentType.EntityAnchor anchorPoint, Vec3d target) Changes this entity's pitch and yaw to look attarget.voidlookAtEntity(EntityAnchorArgumentType.EntityAnchor anchorPoint, Entity targetEntity, EntityAnchorArgumentType.EntityAnchor targetAnchor) voidprivate voidmoveToSpawn(ServerWorld world) moveToWorld(ServerWorld destination) Moves this entity to another world.protected voidonBlockCollision(BlockState state) Called when this entity's collision box intersectsstate.voidonDeath(DamageSource damageSource) voidvoidRuns closing tasks for the current screen handler and sets it to thePlayerEntity.playerScreenHandler.voidCalled when the entity lands on a block.voidonRecipeCrafted(RecipeEntry<?> recipe, List<ItemStack> ingredients) private voidonScreenHandlerOpened(ScreenHandler screenHandler) voidonSpawn()protected voidonStatusEffectApplied(StatusEffectInstance effect, @Nullable Entity source) protected voidprotected voidonStatusEffectUpgraded(StatusEffectInstance effect, boolean reapplyEffect, @Nullable Entity source) voidvoidopenCommandBlockScreen(CommandBlockBlockEntity commandBlock) voidopenEditSignScreen(SignBlockEntity sign, boolean front) voidopenHorseInventory(AbstractHorseEntity horse, Inventory inventory) voidvoidplaySound(SoundEvent event, SoundCategory category, float volume, float pitch) voidReads custom data fromnbt.voidrefreshPositionAfterTeleport(double x, double y, double z) voidrequestTeleport(double destX, double destY, double destZ) Requests the entity to teleport to the given position.voidrequestTeleportAndDismount(double destX, double destY, double destZ) Requests the entity to teleport to the given position.voidrequestTeleportOffset(double offsetX, double offsetY, double offsetZ) Requests the entity to teleport to the current position offset by the given amount.voidvoidvoidsendChatMessage(SentMessage message, boolean filterMaskEnabled, MessageType.Parameters params) Sends a chat message to the player.voidsendMessage(Text message) Sends a system message.voidsendMessage(Text message, boolean overlay) Adds a message to this player's HUD.voidsendMessageToClient(Text message, boolean overlay) voidsendPickup(Entity item, int count) voidsendServerMetadata(ServerMetadata metadata) voidsendTradeOffers(int syncId, TradeOfferList offers, int levelProgress, int experience, boolean leveled, boolean refreshable) voidsetCameraEntity(@Nullable Entity entity) voidsetChunkFilter(ChunkFilter chunkFilter) voidsetClientOptions(SyncedClientOptions clientOptions) voidsetExperienceLevel(int level) voidsetExperiencePoints(int points) voidvoidsetServerWorld(ServerWorld world) voidsetSession(PublicPlayerSession session) voidsetSpawnPoint(RegistryKey<World> dimension, @Nullable BlockPos pos, float angle, boolean forced, boolean sendMessage) Sets the player's spawn point.voidsetWatchedSection(ChunkSectionPos section) Sets the chunk section position the player's client is currently watching from.booleanshouldDamagePlayer(PlayerEntity player) booleanbooleanvoidbooleanstartRiding(Entity entity, boolean force) Starts ridingentity.voidStops riding the vehicle if present.voidvoidteleport(ServerWorld targetWorld, double x, double y, double z, float yaw, float pitch) booleanteleport(ServerWorld world, double destX, double destY, double destZ, Set<PositionFlag> flags, float yaw, float pitch) Teleports the entity to the given position.voidtick()Ticks this entity.protected voidvoidprotected voidtickItemStackUsage(ItemStack stack) protected voidvoidvoidvoidtiltScreen(double deltaX, double deltaZ) voidAllows you to do certain speed and velocity calculations.voidCalled to trigger advancement criteria when an entity picks up an item thrown by a player.com.mojang.datafixers.util.Either<PlayerEntity.SleepFailureReason,Unit> Tries to start sleeping on a block.intunlockRecipes(Collection<RecipeEntry<?>> recipes) voidunlockRecipes(List<Identifier> recipes) voidupdateInput(float sidewaysSpeed, float forwardSpeed, boolean jumping, boolean sneaking) voidupdateKilledAdvancementCriterion(Entity entityKilled, int score, DamageSource damageSource) voidprotected voidprivate voidupdateScoreboardScore(ScoreHolder targetScoreHolder, ScoreHolder aboutScoreHolder, ScoreboardCriterion[] criterions) private voidupdateScores(ScoreboardCriterion criterion, int score) voidCalled when the player uses (defaults to right click) a writable or written book item.voidwakeUp(boolean skipSleepTimer, boolean updateSleepingPlayers) Wakes this player up.private voidworldChanged(ServerWorld origin) voidWrites custom data tonbt.private voidMethods inherited from class net.minecraft.entity.player.PlayerEntity
addExhaustion, addScore, addShoulderEntity, adjustMovementForSneaking, animateDamage, applyDamage, attackLivingEntity, canBeHitByProjectile, canChangeIntoPose, canConsume, canEquip, canFoodHeal, canHarvest, canModifyBlocks, canPlaceOn, canResetTimeBySleeping, canSprintAsVehicle, canTakeDamage, checkFallFlying, clipAtLedge, createPlayerAttributes, damageArmor, damageHelmet, damageShield, disableShield, dismountVehicle, doesNotSuffocate, dropInventory, dropItem, dropShoulderEntities, eatFood, equipStack, findRespawnPosition, getAbilities, getAbsorptionAmount, getActiveEyeHeight, getArmorItems, getAttackCooldownProgress, getAttackCooldownProgressPerTick, getBlockBreakingSpeed, getBurningDuration, getDamageTiltYaw, getDeathSound, getDefaultPortalCooldown, getDimensions, getDisplayName, getEnchantmentTableSeed, getEnderChestInventory, getEquippedStack, getFallSounds, getGameProfile, getHandItems, getHighSpeedSplashSound, getHungerManager, getHurtSound, getInventory, getItemCooldownManager, getLastDeathPos, getLeashPos, getLuck, getMainArm, getMaxNetherPortalTime, getMaxRelativeHeadRotation, getMoveEffect, getMovementSpeed, getName, getNameForScoreboard, getNextLevelExperience, getOffGroundSpeed, getPoses, getProjectileType, getReachDistance, getScore, getScoreboard, getShoulderEntityLeft, getShoulderEntityRight, getSleepTimer, getSoundCategory, getSplashSound, getStackReference, getSwimSound, getUnscaledRidingOffset, getVelocityMultiplier, getXpToDrop, giveItemStack, handleFallDamage, handleStatus, hasReducedDebugInfo, increaseStat, incrementStat, incrementStat, initDataTracker, interact, isArmorSlot, isBlockBreakingRestricted, isCreativeLevelTwoOp, isImmobile, isMainPlayer, isOnSoulSpeedBlock, isPartVisible, isPlayer, isPushedByFluids, isSwimming, isUsernameValid, isUsingSpyglass, jump, onKilledOther, onPickupSlotClick, onSwimmingStart, openCommandBlockMinecartScreen, openJigsawScreen, openStructureBlockScreen, playSound, playStepSound, remove, requestRespawn, resetLastAttackedTicks, setAbsorptionAmountUnclamped, setFireTicks, setLastDeathPos, setMainArm, setReducedDebugInfo, setScore, setShoulderEntityLeft, setShoulderEntityRight, shouldAlwaysDropXp, shouldCancelInteraction, shouldCloseHandledScreenOnRespawn, shouldDismount, shouldRemoveSoulSpeedBoost, shouldRenderName, shouldSave, shouldSwimInFluids, slowMovement, spawnSweepAttackParticles, startFallFlying, stopFallFlying, takeShieldHit, tickMovement, tickNewAi, updatePose, updateSwimming, updateWaterSubmersionState, useRiptide, vanishCursedItems, wakeUpMethods inherited from class net.minecraft.entity.LivingEntity
addPowderSnowSlowIfNeeded, addSoulSpeedBoostIfNeeded, addStatusEffect, addStatusEffect, applyArmorToDamage, applyFluidMovingSpeed, applyMovementInput, areItemsDifferent, baseTick, blockedByShield, canBreatheInWater, canFreeze, canHaveStatusEffect, canHit, canSee, canTarget, canTarget, canUsePortals, canWalkOnFluid, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, containsOnlyAmbientEffects, createBrainProfile, createLivingAttributes, deserializeBrain, disableExperienceDropping, disablesShield, displaySoulSpeedEffects, drop, dropEquipment, dropLoot, dropXp, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttributeBaseValue, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getAttributeValue, getBaseMovementSpeedMultiplier, getBodyYaw, getBoundingBox, getBrain, getClimbingPos, getControlledMovementInput, getDamageTracker, getDespawnCounter, getDrinkSound, getEatSound, getEyeHeight, getGroup, getHandSwingProgress, getHeadYaw, getHealth, getHitbox, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getJumpVelocity, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getLerpTargetPitch, getLerpTargetX, getLerpTargetY, getLerpTargetYaw, getLerpTargetZ, getLootTable, getLootTableSeed, getMainHandStack, getMaxAbsorption, getMaxHealth, getNextAirOnLand, getNextAirUnderwater, getOffHandStack, getPassengerRidingPos, getPreferredEquipmentSlot, getPrimeAdversary, getRandom, getRecentDamageSource, getRidingOffset, getRoll, getSaddledSpeed, getScaleFactor, getSleepingDirection, getSleepingPosition, getSoundPitch, getSoundVolume, getStackInHand, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getVisibilityBoundingBox, getYaw, hasNoDrag, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isBaby, isBlocking, isClimbing, isDead, isExperienceDroppingDisabled, isFallFlying, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isInsideWall, isInSwimmingPose, isMobOrPlayer, isPartOfGame, isPushable, isSleeping, isTarget, isUndead, isUsingItem, isUsingRiptide, kill, knockback, knockDownwards, markEffectsDirty, method_52539, modifyAppliedDamage, onAttacking, onDamaged, onEquipStack, onKilledBy, onSpawnPacket, onTrackedDataSet, playBlockFallSound, playHurtSound, positionInPortal, positionInPortal, processEquippedStack, pushAway, pushAwayFrom, removePowderSnowSlow, removeSoulSpeedBoost, removeStatusEffect, removeStatusEffectInternal, sendEffectToControllingPlayer, sendEquipmentBreakStatus, sendToolBreakStatus, setAbsorptionAmount, setAttacker, setAttacking, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setMovementSpeed, setNearbySongPlaying, setNoDrag, setSleepingPosition, setSprinting, setStackInHand, setStatusEffect, setStingerCount, setStuckArrowCount, shouldDisplaySoulSpeedEffects, shouldDropLoot, shouldDropXp, spawnConsumptionEffects, stopUsingItem, swimUpward, swingHand, takeKnockback, teleport, tickControlled, tickHandSwing, tickInVoid, tickRiptide, tickStatusEffects, tryAttack, turnHead, updateLimbs, updateLimbs, updatePostDeath, updateTrackedHeadRotation, updateTrackedPositionAndAngles, wouldNotSuffocateInPoseMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addVelocity, addVelocity, adjustMovementForCollisions, adjustMovementForPiston, applyDamageEffects, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canExplosionDestroyBlock, canMoveVoluntarily, canStartRiding, changeLookDirection, checkBlockCollision, checkDespawn, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, detach, discard, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, extinguish, extinguishWithSound, getAir, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingPassenger, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getEffectiveExplosionResistance, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeight, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashOffset, getLerpedPos, getMaxAir, getMinFreezeDamageTicks, getMovementDirection, getNameLabelHeight, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPickBlockStack, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPos, getPose, getPosWithYOffset, getRandomBodyY, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTeam, getServer, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSyncedPos, getTargetingMargin, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getWidth, getWorld, getX, getY, getYaw, getZ, handleAttack, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPermissionLevel, hasPlayerRider, hasPortalCooldown, hasVehicle, interact, interactAt, isAttackable, isCollidable, isConnectedThroughVehicle, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInsideWaterOrBubbleColumn, isInSneakingPose, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartOf, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, lerpPosAndRotation, limitFallDistance, move, occludeVibrationSignals, offsetX, offsetZ, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDataTrackerUpdate, onPassengerLookAround, onPlayerCollision, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSoundIfNotSilent, playSwimSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, readNbt, refreshPosition, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removeCommandTag, removeFromDimension, removePassenger, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, setAir, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFlag, setFrozenTicks, setGlowing, setId, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setStepHeight, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldBroadcastConsoleToOps, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldReceiveFeedback, shouldRender, shouldRender, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, tickPortal, toNbtList, toNbtList, toString, tryCheckBlockCollision, unsetRemoved, updateEventHandler, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateTrackedPosition, updateVelocity, updateWaterState, writeNbtMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilencedMethods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official bLane;b:Lorg/slf4j/Logger;intermediary field_13975Lnet/minecraft/class_3222;field_13975:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/server/network/ServerPlayerEntity;LOGGER:Lorg/slf4j/Logger;
-
field_29769
private static final int field_29769- See Also:
- Mappings:
Namespace Name Mixin selector official cmLane;cm:Iintermediary field_29769Lnet/minecraft/class_3222;field_29769:Inamed field_29769Lnet/minecraft/server/network/ServerPlayerEntity;field_29769:I
-
field_29770
private static final int field_29770- See Also:
- Mappings:
Namespace Name Mixin selector official cnLane;cn:Iintermediary field_29770Lnet/minecraft/class_3222;field_29770:Inamed field_29770Lnet/minecraft/server/network/ServerPlayerEntity;field_29770:I
-
field_46928
private static final int field_46928- See Also:
- Mappings:
Namespace Name Mixin selector official coLane;co:Iintermediary field_46928Lnet/minecraft/class_3222;field_46928:Inamed field_46928Lnet/minecraft/server/network/ServerPlayerEntity;field_46928:I
-
networkHandler
- Mappings:
Namespace Name Mixin selector official cLane;c:Laoc;intermediary field_13987Lnet/minecraft/class_3222;field_13987:Lnet/minecraft/class_3244;named networkHandlerLnet/minecraft/server/network/ServerPlayerEntity;networkHandler:Lnet/minecraft/server/network/ServerPlayNetworkHandler;
-
server
- Mappings:
Namespace Name Mixin selector official dLane;d:Lnet/minecraft/server/MinecraftServer;intermediary field_13995Lnet/minecraft/class_3222;field_13995:Lnet/minecraft/server/MinecraftServer;named serverLnet/minecraft/server/network/ServerPlayerEntity;server:Lnet/minecraft/server/MinecraftServer;
-
interactionManager
- Mappings:
Namespace Name Mixin selector official eLane;e:Lanf;intermediary field_13974Lnet/minecraft/class_3222;field_13974:Lnet/minecraft/class_3225;named interactionManagerLnet/minecraft/server/network/ServerPlayerEntity;interactionManager:Lnet/minecraft/server/network/ServerPlayerInteractionManager;
-
advancementTracker
- Mappings:
Namespace Name Mixin selector official cpLane;cp:Laho;intermediary field_13970Lnet/minecraft/class_3222;field_13970:Lnet/minecraft/class_2985;named advancementTrackerLnet/minecraft/server/network/ServerPlayerEntity;advancementTracker:Lnet/minecraft/advancement/PlayerAdvancementTracker;
-
statHandler
- Mappings:
Namespace Name Mixin selector official cqLane;cq:Lary;intermediary field_13966Lnet/minecraft/class_3222;field_13966:Lnet/minecraft/class_3442;named statHandlerLnet/minecraft/server/network/ServerPlayerEntity;statHandler:Lnet/minecraft/stat/ServerStatHandler;
-
lastHealthScore
private float lastHealthScore- Mappings:
Namespace Name Mixin selector official crLane;cr:Fintermediary field_13963Lnet/minecraft/class_3222;field_13963:Fnamed lastHealthScoreLnet/minecraft/server/network/ServerPlayerEntity;lastHealthScore:F
-
lastFoodScore
private int lastFoodScore- Mappings:
Namespace Name Mixin selector official csLane;cs:Iintermediary field_13983Lnet/minecraft/class_3222;field_13983:Inamed lastFoodScoreLnet/minecraft/server/network/ServerPlayerEntity;lastFoodScore:I
-
lastAirScore
private int lastAirScore- Mappings:
Namespace Name Mixin selector official ctLane;ct:Iintermediary field_13968Lnet/minecraft/class_3222;field_13968:Inamed lastAirScoreLnet/minecraft/server/network/ServerPlayerEntity;lastAirScore:I
-
lastArmorScore
private int lastArmorScore- Mappings:
Namespace Name Mixin selector official cuLane;cu:Iintermediary field_13982Lnet/minecraft/class_3222;field_13982:Inamed lastArmorScoreLnet/minecraft/server/network/ServerPlayerEntity;lastArmorScore:I
-
lastLevelScore
private int lastLevelScore- Mappings:
Namespace Name Mixin selector official cwLane;cw:Iintermediary field_13965Lnet/minecraft/class_3222;field_13965:Inamed lastLevelScoreLnet/minecraft/server/network/ServerPlayerEntity;lastLevelScore:I
-
lastExperienceScore
private int lastExperienceScore- Mappings:
Namespace Name Mixin selector official cxLane;cx:Iintermediary field_13980Lnet/minecraft/class_3222;field_13980:Inamed lastExperienceScoreLnet/minecraft/server/network/ServerPlayerEntity;lastExperienceScore:I
-
syncedHealth
private float syncedHealth- Mappings:
Namespace Name Mixin selector official cyLane;cy:Fintermediary field_13997Lnet/minecraft/class_3222;field_13997:Fnamed syncedHealthLnet/minecraft/server/network/ServerPlayerEntity;syncedHealth:F
-
syncedFoodLevel
private int syncedFoodLevel- Mappings:
Namespace Name Mixin selector official czLane;cz:Iintermediary field_13979Lnet/minecraft/class_3222;field_13979:Inamed syncedFoodLevelLnet/minecraft/server/network/ServerPlayerEntity;syncedFoodLevel:I
-
syncedSaturationIsZero
private boolean syncedSaturationIsZero- Mappings:
Namespace Name Mixin selector official cALane;cA:Zintermediary field_13972Lnet/minecraft/class_3222;field_13972:Znamed syncedSaturationIsZeroLnet/minecraft/server/network/ServerPlayerEntity;syncedSaturationIsZero:Z
-
syncedExperience
private int syncedExperience- Mappings:
Namespace Name Mixin selector official cBLane;cB:Iintermediary field_13978Lnet/minecraft/class_3222;field_13978:Inamed syncedExperienceLnet/minecraft/server/network/ServerPlayerEntity;syncedExperience:I
-
joinInvulnerabilityTicks
private int joinInvulnerabilityTicks- Mappings:
Namespace Name Mixin selector official cCLane;cC:Iintermediary field_13998Lnet/minecraft/class_3222;field_13998:Inamed joinInvulnerabilityTicksLnet/minecraft/server/network/ServerPlayerEntity;joinInvulnerabilityTicks:I
-
clientChatVisibility
- Mappings:
Namespace Name Mixin selector official cDLane;cD:Lcfg;intermediary field_13993Lnet/minecraft/class_3222;field_13993:Lnet/minecraft/class_1659;named clientChatVisibilityLnet/minecraft/server/network/ServerPlayerEntity;clientChatVisibility:Lnet/minecraft/network/message/ChatVisibility;
-
clientChatColorsEnabled
private boolean clientChatColorsEnabled- Mappings:
Namespace Name Mixin selector official cELane;cE:Zintermediary field_13971Lnet/minecraft/class_3222;field_13971:Znamed clientChatColorsEnabledLnet/minecraft/server/network/ServerPlayerEntity;clientChatColorsEnabled:Z
-
lastActionTime
private long lastActionTime- Mappings:
Namespace Name Mixin selector official cFLane;cF:Jintermediary field_13976Lnet/minecraft/class_3222;field_13976:Jnamed lastActionTimeLnet/minecraft/server/network/ServerPlayerEntity;lastActionTime:J
-
cameraEntity
- Mappings:
Namespace Name Mixin selector official cGLane;cG:Lblv;intermediary field_13984Lnet/minecraft/class_3222;field_13984:Lnet/minecraft/class_1297;named cameraEntityLnet/minecraft/server/network/ServerPlayerEntity;cameraEntity:Lnet/minecraft/entity/Entity;
-
inTeleportationState
private boolean inTeleportationState- Mappings:
Namespace Name Mixin selector official cHLane;cH:Zintermediary field_13985Lnet/minecraft/class_3222;field_13985:Znamed inTeleportationStateLnet/minecraft/server/network/ServerPlayerEntity;inTeleportationState:Z
-
seenCredits
private boolean seenCredits- Mappings:
Namespace Name Mixin selector official cILane;cI:Zintermediary field_13969Lnet/minecraft/class_3222;field_13969:Znamed seenCreditsLnet/minecraft/server/network/ServerPlayerEntity;seenCredits:Z
-
recipeBook
- Mappings:
Namespace Name Mixin selector official cJLane;cJ:Larx;intermediary field_13996Lnet/minecraft/class_3222;field_13996:Lnet/minecraft/class_3441;named recipeBookLnet/minecraft/server/network/ServerPlayerEntity;recipeBook:Lnet/minecraft/server/network/ServerRecipeBook;
-
levitationStartPos
- Mappings:
Namespace Name Mixin selector official cKLane;cK:Lelt;intermediary field_13992Lnet/minecraft/class_3222;field_13992:Lnet/minecraft/class_243;named levitationStartPosLnet/minecraft/server/network/ServerPlayerEntity;levitationStartPos:Lnet/minecraft/util/math/Vec3d;
-
levitationStartTick
private int levitationStartTick- Mappings:
Namespace Name Mixin selector official cLLane;cL:Iintermediary field_13973Lnet/minecraft/class_3222;field_13973:Inamed levitationStartTickLnet/minecraft/server/network/ServerPlayerEntity;levitationStartTick:I
-
disconnected
private boolean disconnected- Mappings:
Namespace Name Mixin selector official cMLane;cM:Zintermediary field_13964Lnet/minecraft/class_3222;field_13964:Znamed disconnectedLnet/minecraft/server/network/ServerPlayerEntity;disconnected:Z
-
viewDistance
private int viewDistance- Mappings:
Namespace Name Mixin selector official cNLane;cN:Iintermediary field_44990Lnet/minecraft/class_3222;field_44990:Inamed viewDistanceLnet/minecraft/server/network/ServerPlayerEntity;viewDistance:I
-
language
- Mappings:
Namespace Name Mixin selector official cOLane;cO:Ljava/lang/String;intermediary field_46156Lnet/minecraft/class_3222;field_46156:Ljava/lang/String;named languageLnet/minecraft/server/network/ServerPlayerEntity;language:Ljava/lang/String;
-
fallStartPos
- Mappings:
Namespace Name Mixin selector official cPLane;cP:Lelt;intermediary field_35007Lnet/minecraft/class_3222;field_35007:Lnet/minecraft/class_243;named fallStartPosLnet/minecraft/server/network/ServerPlayerEntity;fallStartPos:Lnet/minecraft/util/math/Vec3d;
-
enteredNetherPos
- Mappings:
Namespace Name Mixin selector official cQLane;cQ:Lelt;intermediary field_13994Lnet/minecraft/class_3222;field_13994:Lnet/minecraft/class_243;named enteredNetherPosLnet/minecraft/server/network/ServerPlayerEntity;enteredNetherPos:Lnet/minecraft/util/math/Vec3d;
-
vehicleInLavaRidingPos
- Mappings:
Namespace Name Mixin selector official cRLane;cR:Lelt;intermediary field_35008Lnet/minecraft/class_3222;field_35008:Lnet/minecraft/class_243;named vehicleInLavaRidingPosLnet/minecraft/server/network/ServerPlayerEntity;vehicleInLavaRidingPos:Lnet/minecraft/util/math/Vec3d;
-
watchedSection
A chunk section position indicating where the player's client is currently watching chunks from. Used referentially for the game to update the chunks watched by this player.- See Also:
- Mappings:
Namespace Name Mixin selector official cSLane;cS:Liz;intermediary field_13990Lnet/minecraft/class_3222;field_13990:Lnet/minecraft/class_4076;named watchedSectionLnet/minecraft/server/network/ServerPlayerEntity;watchedSection:Lnet/minecraft/util/math/ChunkSectionPos;
-
chunkFilter
- Mappings:
Namespace Name Mixin selector official cTLane;cT:Lamr;intermediary field_44991Lnet/minecraft/class_3222;field_44991:Lnet/minecraft/class_8603;named chunkFilterLnet/minecraft/server/network/ServerPlayerEntity;chunkFilter:Lnet/minecraft/server/network/ChunkFilter;
-
spawnPointDimension
- Mappings:
Namespace Name Mixin selector official cULane;cU:Lahf;intermediary field_23191Lnet/minecraft/class_3222;field_23191:Lnet/minecraft/class_5321;named spawnPointDimensionLnet/minecraft/server/network/ServerPlayerEntity;spawnPointDimension:Lnet/minecraft/registry/RegistryKey;
-
spawnPointPosition
- Mappings:
Namespace Name Mixin selector official cVLane;cV:Lhx;intermediary field_23192Lnet/minecraft/class_3222;field_23192:Lnet/minecraft/class_2338;named spawnPointPositionLnet/minecraft/server/network/ServerPlayerEntity;spawnPointPosition:Lnet/minecraft/util/math/BlockPos;
-
spawnForced
private boolean spawnForced- Mappings:
Namespace Name Mixin selector official cWLane;cW:Zintermediary field_23193Lnet/minecraft/class_3222;field_23193:Znamed spawnForcedLnet/minecraft/server/network/ServerPlayerEntity;spawnForced:Z
-
spawnAngle
private float spawnAngle- Mappings:
Namespace Name Mixin selector official cXLane;cX:Fintermediary field_26353Lnet/minecraft/class_3222;field_26353:Fnamed spawnAngleLnet/minecraft/server/network/ServerPlayerEntity;spawnAngle:F
-
textStream
- Mappings:
Namespace Name Mixin selector official cYLane;cY:Laoh;intermediary field_26821Lnet/minecraft/class_3222;field_26821:Lnet/minecraft/class_5513;named textStreamLnet/minecraft/server/network/ServerPlayerEntity;textStream:Lnet/minecraft/server/filter/TextStream;
-
filterText
private boolean filterText- Mappings:
Namespace Name Mixin selector official cZLane;cZ:Zintermediary field_28860Lnet/minecraft/class_3222;field_28860:Znamed filterTextLnet/minecraft/server/network/ServerPlayerEntity;filterText:Z
-
allowServerListing
private boolean allowServerListing- Mappings:
Namespace Name Mixin selector official daLane;da:Zintermediary field_35566Lnet/minecraft/class_3222;field_35566:Znamed allowServerListingLnet/minecraft/server/network/ServerPlayerEntity;allowServerListing:Z
-
sculkShriekerWarningManager
- Mappings:
Namespace Name Mixin selector official dbLane;db:Lceo;intermediary field_39985Lnet/minecraft/class_3222;field_39985:Lnet/minecraft/class_7262;named sculkShriekerWarningManagerLnet/minecraft/server/network/ServerPlayerEntity;sculkShriekerWarningManager:Lnet/minecraft/block/entity/SculkShriekerWarningManager;
-
screenHandlerSyncHandler
- Mappings:
Namespace Name Mixin selector official dcLane;dc:Lcio;intermediary field_29180Lnet/minecraft/class_3222;field_29180:Lnet/minecraft/class_5916;named screenHandlerSyncHandlerLnet/minecraft/server/network/ServerPlayerEntity;screenHandlerSyncHandler:Lnet/minecraft/screen/ScreenHandlerSyncHandler;
-
screenHandlerListener
- Mappings:
Namespace Name Mixin selector official ddLane;dd:Lcin;intermediary field_29181Lnet/minecraft/class_3222;field_29181:Lnet/minecraft/class_1712;named screenHandlerListenerLnet/minecraft/server/network/ServerPlayerEntity;screenHandlerListener:Lnet/minecraft/screen/ScreenHandlerListener;
-
session
- Mappings:
Namespace Name Mixin selector official deLane;de:Lvw;intermediary field_39986Lnet/minecraft/class_3222;field_39986:Lnet/minecraft/class_7822;named sessionLnet/minecraft/server/network/ServerPlayerEntity;session:Lnet/minecraft/network/encryption/PublicPlayerSession;
-
screenHandlerSyncId
private int screenHandlerSyncId- Mappings:
Namespace Name Mixin selector official dfLane;df:Iintermediary field_13986Lnet/minecraft/class_3222;field_13986:Inamed screenHandlerSyncIdLnet/minecraft/server/network/ServerPlayerEntity;screenHandlerSyncId:I
-
notInAnyWorld
public boolean notInAnyWorld- Mappings:
Namespace Name Mixin selector official fLane;f:Zintermediary field_13989Lnet/minecraft/class_3222;field_13989:Znamed notInAnyWorldLnet/minecraft/server/network/ServerPlayerEntity;notInAnyWorld:Z
-
-
Constructor Details
-
ServerPlayerEntity
public ServerPlayerEntity(MinecraftServer server, ServerWorld world, com.mojang.authlib.GameProfile profile, SyncedClientOptions clientOptions) - Mappings:
Namespace Name Mixin selector official <init>Lane;<init>(Lnet/minecraft/server/MinecraftServer;Land;Lcom/mojang/authlib/GameProfile;Lams;)Vintermediary <init>Lnet/minecraft/class_3222;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_3218;Lcom/mojang/authlib/GameProfile;Lnet/minecraft/class_8791;)Vnamed <init>Lnet/minecraft/server/network/ServerPlayerEntity;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/server/world/ServerWorld;Lcom/mojang/authlib/GameProfile;Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;)V
-
-
Method Details
-
moveToSpawn
- Mappings:
Namespace Name Mixin selector official eLane;e(Land;)Vintermediary method_14245Lnet/minecraft/class_3222;method_14245(Lnet/minecraft/class_3218;)Vnamed moveToSpawnLnet/minecraft/server/network/ServerPlayerEntity;moveToSpawn(Lnet/minecraft/server/world/ServerWorld;)V
-
calculateSpawnOffsetMultiplier
private int calculateSpawnOffsetMultiplier(int horizontalSpawnArea) - Mappings:
Namespace Name Mixin selector official uLane;u(I)Iintermediary method_14244Lnet/minecraft/class_3222;method_14244(I)Inamed calculateSpawnOffsetMultiplierLnet/minecraft/server/network/ServerPlayerEntity;calculateSpawnOffsetMultiplier(I)I
-
readCustomDataFromNbt
Reads custom data fromnbt. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
nbtmight not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
readCustomDataFromNbtin classPlayerEntity- See Also:
- Mappings:
Namespace Name Mixin selector official aLblv;a(Lsn;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)Vnamed readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
writeCustomDataToNbt
Writes custom data tonbt. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
- Overrides:
writeCustomDataToNbtin classPlayerEntity- See Also:
- Mappings:
Namespace Name Mixin selector official bLblv;b(Lsn;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)Vnamed writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
setExperiencePoints
public void setExperiencePoints(int points) - Mappings:
Namespace Name Mixin selector official aLane;a(I)Vintermediary method_14228Lnet/minecraft/class_3222;method_14228(I)Vnamed setExperiencePointsLnet/minecraft/server/network/ServerPlayerEntity;setExperiencePoints(I)V
-
setExperienceLevel
public void setExperienceLevel(int level) - Mappings:
Namespace Name Mixin selector official bLane;b(I)Vintermediary method_14252Lnet/minecraft/class_3222;method_14252(I)Vnamed setExperienceLevelLnet/minecraft/server/network/ServerPlayerEntity;setExperienceLevel(I)V
-
addExperienceLevels
public void addExperienceLevels(int levels) - Overrides:
addExperienceLevelsin classPlayerEntity- Mappings:
Namespace Name Mixin selector official cLcfi;c(I)Vintermediary method_7316Lnet/minecraft/class_1657;method_7316(I)Vnamed addExperienceLevelsLnet/minecraft/entity/player/PlayerEntity;addExperienceLevels(I)V
-
applyEnchantmentCosts
- Overrides:
applyEnchantmentCostsin classPlayerEntity- Mappings:
Namespace Name Mixin selector official aLcfi;a(Lcmy;I)Vintermediary method_7286Lnet/minecraft/class_1657;method_7286(Lnet/minecraft/class_1799;I)Vnamed applyEnchantmentCostsLnet/minecraft/entity/player/PlayerEntity;applyEnchantmentCosts(Lnet/minecraft/item/ItemStack;I)V
-
onScreenHandlerOpened
- Mappings:
Namespace Name Mixin selector official aLane;a(Lcib;)Vintermediary method_14235Lnet/minecraft/class_3222;method_14235(Lnet/minecraft/class_1703;)Vnamed onScreenHandlerOpenedLnet/minecraft/server/network/ServerPlayerEntity;onScreenHandlerOpened(Lnet/minecraft/screen/ScreenHandler;)V
-
onSpawn
public void onSpawn()- Mappings:
Namespace Name Mixin selector official hLane;h()Vintermediary method_34225Lnet/minecraft/class_3222;method_34225()Vnamed onSpawnLnet/minecraft/server/network/ServerPlayerEntity;onSpawn()V
-
enterCombat
public void enterCombat()- Overrides:
enterCombatin classLivingEntity- Mappings:
Namespace Name Mixin selector official g_Lbml;g_()Vintermediary method_6000Lnet/minecraft/class_1309;method_6000()Vnamed enterCombatLnet/minecraft/entity/LivingEntity;enterCombat()V
-
endCombat
public void endCombat()- Overrides:
endCombatin classLivingEntity- Mappings:
Namespace Name Mixin selector official h_Lbml;h_()Vintermediary method_6044Lnet/minecraft/class_1309;method_6044()Vnamed endCombatLnet/minecraft/entity/LivingEntity;endCombat()V
-
onBlockCollision
Called when this entity's collision box intersectsstate.- Overrides:
onBlockCollisionin classEntity- See Also:
- Mappings:
Namespace Name Mixin selector official aLblv;a(Ldjh;)Vintermediary method_5622Lnet/minecraft/class_1297;method_5622(Lnet/minecraft/class_2680;)Vnamed onBlockCollisionLnet/minecraft/entity/Entity;onBlockCollision(Lnet/minecraft/block/BlockState;)V
-
createCooldownManager
- Overrides:
createCooldownManagerin classPlayerEntity- Mappings:
Namespace Name Mixin selector official kLcfi;k()Lcmu;intermediary method_7265Lnet/minecraft/class_1657;method_7265()Lnet/minecraft/class_1796;named createCooldownManagerLnet/minecraft/entity/player/PlayerEntity;createCooldownManager()Lnet/minecraft/entity/player/ItemCooldownManager;
-
tick
public void tick()Ticks this entity.- Overrides:
tickin classPlayerEntity- See Also:
- Mappings:
Namespace Name Mixin selector official lLblv;l()Vintermediary method_5773Lnet/minecraft/class_1297;method_5773()Vnamed tickLnet/minecraft/entity/Entity;tick()V
-
playerTick
public void playerTick()- Mappings:
Namespace Name Mixin selector official mLane;m()Vintermediary method_14226Lnet/minecraft/class_3222;method_14226()Vnamed playerTickLnet/minecraft/server/network/ServerPlayerEntity;playerTick()V
-
onLanding
public void onLanding()Called when the entity lands on a block. -
tickFallStartPos
public void tickFallStartPos()- Mappings:
Namespace Name Mixin selector official oLane;o()Vintermediary method_38786Lnet/minecraft/class_3222;method_38786()Vnamed tickFallStartPosLnet/minecraft/server/network/ServerPlayerEntity;tickFallStartPos()V
-
tickVehicleInLavaRiding
public void tickVehicleInLavaRiding()- Mappings:
Namespace Name Mixin selector official pLane;p()Vintermediary method_38787Lnet/minecraft/class_3222;method_38787()Vnamed tickVehicleInLavaRidingLnet/minecraft/server/network/ServerPlayerEntity;tickVehicleInLavaRiding()V
-
updateScores
- Mappings:
Namespace Name Mixin selector official aLane;a(Lena;I)Vintermediary method_14212Lnet/minecraft/class_3222;method_14212(Lnet/minecraft/class_274;I)Vnamed updateScoresLnet/minecraft/server/network/ServerPlayerEntity;updateScores(Lnet/minecraft/scoreboard/ScoreboardCriterion;I)V
-
onDeath
- Overrides:
onDeathin classPlayerEntity- Mappings:
Namespace Name Mixin selector official aLbml;a(Lbkt;)Vintermediary method_6078Lnet/minecraft/class_1309;method_6078(Lnet/minecraft/class_1282;)Vnamed onDeathLnet/minecraft/entity/LivingEntity;onDeath(Lnet/minecraft/entity/damage/DamageSource;)V
-
forgiveMobAnger
private void forgiveMobAnger()- Mappings:
Namespace Name Mixin selector official gsLane;gs()Vintermediary method_29779Lnet/minecraft/class_3222;method_29779()Vnamed forgiveMobAngerLnet/minecraft/server/network/ServerPlayerEntity;forgiveMobAnger()V
-
updateKilledAdvancementCriterion
public void updateKilledAdvancementCriterion(Entity entityKilled, int score, DamageSource damageSource) - Overrides:
updateKilledAdvancementCriterionin classEntity- Mappings:
Namespace Name Mixin selector official aLblv;a(Lblv;ILbkt;)Vintermediary method_5716Lnet/minecraft/class_1297;method_5716(Lnet/minecraft/class_1297;ILnet/minecraft/class_1282;)Vnamed updateKilledAdvancementCriterionLnet/minecraft/entity/Entity;updateKilledAdvancementCriterion(Lnet/minecraft/entity/Entity;ILnet/minecraft/entity/damage/DamageSource;)V
-
updateScoreboardScore
private void updateScoreboardScore(ScoreHolder targetScoreHolder, ScoreHolder aboutScoreHolder, ScoreboardCriterion[] criterions) - Mappings:
Namespace Name Mixin selector official aLane;a(Lemw;Lemw;[Lena;)Vintermediary method_14227Lnet/minecraft/class_3222;method_14227(Lnet/minecraft/class_9015;Lnet/minecraft/class_9015;[Lnet/minecraft/class_274;)Vnamed updateScoreboardScoreLnet/minecraft/server/network/ServerPlayerEntity;updateScoreboardScore(Lnet/minecraft/scoreboard/ScoreHolder;Lnet/minecraft/scoreboard/ScoreHolder;[Lnet/minecraft/scoreboard/ScoreboardCriterion;)V
-
damage
Applies a damage to this entity. The exact implementation differs between subclasses.LivingEntityhas health value, and damaging the entity decreases it. This also handles shields, extra damage to helmets for falling blocks, setting the attacker, playing hurt sound, etc.Some entities like
ItemEntityalso have health value, which the overridden method decrements. There also exist several entities, likeEndCrystalEntity, where any damage discards the entity (perhaps with an explosion).If this is overridden, it must check the result of
Entity.isInvulnerableTo(net.minecraft.entity.damage.DamageSource)and return early.- Overrides:
damagein classPlayerEntity- Returns:
- whether the entity was actually damaged
- See Also:
- Mappings:
Namespace Name Mixin selector official aLblv;a(Lbkt;F)Zintermediary method_5643Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Znamed damageLnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z
-
shouldDamagePlayer
- Overrides:
shouldDamagePlayerin classPlayerEntity- Mappings:
Namespace Name Mixin selector official aLcfi;a(Lcfi;)Zintermediary method_7256Lnet/minecraft/class_1657;method_7256(Lnet/minecraft/class_1657;)Znamed shouldDamagePlayerLnet/minecraft/entity/player/PlayerEntity;shouldDamagePlayer(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
isPvpEnabled
private boolean isPvpEnabled()- Mappings:
Namespace Name Mixin selector official gtLane;gt()Zintermediary method_14230Lnet/minecraft/class_3222;method_14230()Znamed isPvpEnabledLnet/minecraft/server/network/ServerPlayerEntity;isPvpEnabled()Z
-
getTeleportTarget
Returns aTeleportTargetfor the entity based on its current and destination worlds, plus any nether portals that may be present.- Overrides:
getTeleportTargetin classEntity- Returns:
- a
TeleportTargetfor the entity based on its current and destination worlds, plus any nether portals that may be present - Mappings:
Namespace Name Mixin selector official aLblv;a(Land;)Lefo;intermediary method_30329Lnet/minecraft/class_1297;method_30329(Lnet/minecraft/class_3218;)Lnet/minecraft/class_5454;named getTeleportTargetLnet/minecraft/entity/Entity;getTeleportTarget(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/world/TeleportTarget;
-
moveToWorld
Moves this entity to another world.Note all entities except server player entities are completely recreated at the destination.
- Overrides:
moveToWorldin classEntity- Returns:
- the entity in the other world
- Mappings:
Namespace Name Mixin selector official bLblv;b(Land;)Lblv;intermediary method_5731Lnet/minecraft/class_1297;method_5731(Lnet/minecraft/class_3218;)Lnet/minecraft/class_1297;named moveToWorldLnet/minecraft/entity/Entity;moveToWorld(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/entity/Entity;
-
createEndSpawnPlatform
- Mappings:
Namespace Name Mixin selector official aLane;a(Land;Lhx;)Vintermediary method_30313Lnet/minecraft/class_3222;method_30313(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Vnamed createEndSpawnPlatformLnet/minecraft/server/network/ServerPlayerEntity;createEndSpawnPlatform(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)V
-
getPortalRect
protected Optional<BlockLocating.Rectangle> getPortalRect(ServerWorld destWorld, BlockPos destPos, boolean destIsNether, WorldBorder worldBorder) Returns the portal rect atdestPos.- Overrides:
getPortalRectin classEntity- Returns:
- the portal rect at
destPos - See Also:
- Mappings:
Namespace Name Mixin selector official aLblv;a(Land;Lhx;ZLdky;)Ljava/util/Optional;intermediary method_30330Lnet/minecraft/class_1297;method_30330(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;ZLnet/minecraft/class_2784;)Ljava/util/Optional;named getPortalRectLnet/minecraft/entity/Entity;getPortalRect(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;ZLnet/minecraft/world/border/WorldBorder;)Ljava/util/Optional;
-
worldChanged
- Mappings:
Namespace Name Mixin selector official fLane;f(Land;)Vintermediary method_18783Lnet/minecraft/class_3222;method_18783(Lnet/minecraft/class_3218;)Vnamed worldChangedLnet/minecraft/server/network/ServerPlayerEntity;worldChanged(Lnet/minecraft/server/world/ServerWorld;)V
-
canBeSpectated
Returns whetherspectatorcan spectate this entity.Spectator players (other than themselves) cannot be spectated.
- Overrides:
canBeSpectatedin classEntity- Returns:
- whether
spectatorcan spectate this entity - Mappings:
Namespace Name Mixin selector official aLblv;a(Lane;)Zintermediary method_5680Lnet/minecraft/class_1297;method_5680(Lnet/minecraft/class_3222;)Znamed canBeSpectatedLnet/minecraft/entity/Entity;canBeSpectated(Lnet/minecraft/server/network/ServerPlayerEntity;)Z
-
sendPickup
- Overrides:
sendPickupin classLivingEntity- Mappings:
Namespace Name Mixin selector official aLbml;a(Lblv;I)Vintermediary method_6103Lnet/minecraft/class_1309;method_6103(Lnet/minecraft/class_1297;I)Vnamed sendPickupLnet/minecraft/entity/LivingEntity;sendPickup(Lnet/minecraft/entity/Entity;I)V
-
trySleep
public com.mojang.datafixers.util.Either<PlayerEntity.SleepFailureReason,Unit> trySleep(BlockPos pos) Tries to start sleeping on a block.- Overrides:
trySleepin classPlayerEntity- Parameters:
pos- the position of the bed block- Returns:
- an
Either.Rightif successful, otherwise anEither.Leftcontaining the failure reason - Mappings:
Namespace Name Mixin selector official aLcfi;a(Lhx;)Lcom/mojang/datafixers/util/Either;intermediary method_7269Lnet/minecraft/class_1657;method_7269(Lnet/minecraft/class_2338;)Lcom/mojang/datafixers/util/Either;named trySleepLnet/minecraft/entity/player/PlayerEntity;trySleep(Lnet/minecraft/util/math/BlockPos;)Lcom/mojang/datafixers/util/Either;
-
sleep
- Overrides:
sleepin classLivingEntity- Mappings:
Namespace Name Mixin selector official bLbml;b(Lhx;)Vintermediary method_18403Lnet/minecraft/class_1309;method_18403(Lnet/minecraft/class_2338;)Vnamed sleepLnet/minecraft/entity/LivingEntity;sleep(Lnet/minecraft/util/math/BlockPos;)V
-
isBedTooFarAway
- Mappings:
Namespace Name Mixin selector official aLane;a(Lhx;Lic;)Zintermediary method_26285Lnet/minecraft/class_3222;method_26285(Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Znamed isBedTooFarAwayLnet/minecraft/server/network/ServerPlayerEntity;isBedTooFarAway(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
-
isBedTooFarAway
- Mappings:
Namespace Name Mixin selector official iLane;i(Lhx;)Zintermediary method_26287Lnet/minecraft/class_3222;method_26287(Lnet/minecraft/class_2338;)Znamed isBedTooFarAwayLnet/minecraft/server/network/ServerPlayerEntity;isBedTooFarAway(Lnet/minecraft/util/math/BlockPos;)Z
-
isBedObstructed
- Mappings:
Namespace Name Mixin selector official bLane;b(Lhx;Lic;)Zintermediary method_26286Lnet/minecraft/class_3222;method_26286(Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Znamed isBedObstructedLnet/minecraft/server/network/ServerPlayerEntity;isBedObstructed(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
-
wakeUp
public void wakeUp(boolean skipSleepTimer, boolean updateSleepingPlayers) Wakes this player up.- Overrides:
wakeUpin classPlayerEntity- Parameters:
skipSleepTimer- iftrue, the sleep timer will be set straight to 0 instead of 100updateSleepingPlayers- iftrueand called on the logical server, sends sleeping status updates to all players- Mappings:
Namespace Name Mixin selector official aLcfi;a(ZZ)Vintermediary method_7358Lnet/minecraft/class_1657;method_7358(ZZ)Vnamed wakeUpLnet/minecraft/entity/player/PlayerEntity;wakeUp(ZZ)V
-
requestTeleportAndDismount
public void requestTeleportAndDismount(double destX, double destY, double destZ) Requests the entity to teleport to the given position. If the entity is a player, this also dismounts the player.- Overrides:
requestTeleportAndDismountin classEntity- See Also:
- Mappings:
Namespace Name Mixin selector official aLblv;a(DDD)Vintermediary method_33567Lnet/minecraft/class_1297;method_33567(DDD)Vnamed requestTeleportAndDismountLnet/minecraft/entity/Entity;requestTeleportAndDismount(DDD)V
-
isInvulnerableTo
Returns whether the entity is invulnerable todamageSource.This can be overridden to make the entity invulnerable to some damages, but
super.isInvulnerableTo()should be called in this case.- Overrides:
isInvulnerableToin classPlayerEntity- Returns:
- whether the entity is invulnerable to
damageSource - See Also:
- Mappings:
Namespace Name Mixin selector official bLblv;b(Lbkt;)Zintermediary method_5679Lnet/minecraft/class_1297;method_5679(Lnet/minecraft/class_1282;)Znamed isInvulnerableToLnet/minecraft/entity/Entity;isInvulnerableTo(Lnet/minecraft/entity/damage/DamageSource;)Z
-
fall
protected void fall(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition) Called when the entity falls. Flying mobs should override this to do nothing.- Overrides:
fallin classLivingEntity- Mappings:
Namespace Name Mixin selector official aLblv;a(DZLdjh;Lhx;)Vintermediary method_5623Lnet/minecraft/class_1297;method_5623(DZLnet/minecraft/class_2680;Lnet/minecraft/class_2338;)Vnamed fallLnet/minecraft/entity/Entity;fall(DZLnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)V
-
applyMovementEffects
- Overrides:
applyMovementEffectsin classLivingEntity- Mappings:
Namespace Name Mixin selector official cLbml;c(Lhx;)Vintermediary method_6126Lnet/minecraft/class_1309;method_6126(Lnet/minecraft/class_2338;)Vnamed applyMovementEffectsLnet/minecraft/entity/LivingEntity;applyMovementEffects(Lnet/minecraft/util/math/BlockPos;)V
-
handleFall
public void handleFall(double xDifference, double yDifference, double zDifference, boolean onGround) - Mappings:
Namespace Name Mixin selector official aLane;a(DDDZ)Vintermediary method_14207Lnet/minecraft/class_3222;method_14207(DDDZ)Vnamed handleFallLnet/minecraft/server/network/ServerPlayerEntity;handleFall(DDDZ)V
-
tickCramming
protected void tickCramming()- Overrides:
tickCrammingin classLivingEntity- Mappings:
Namespace Name Mixin selector official M_Lbml;M_()Vintermediary method_6070Lnet/minecraft/class_1309;method_6070()Vnamed tickCrammingLnet/minecraft/entity/LivingEntity;tickCramming()V
-
openEditSignScreen
- Overrides:
openEditSignScreenin classPlayerEntity- Mappings:
Namespace Name Mixin selector official aLcfi;a(Ldie;Z)Vintermediary method_7311Lnet/minecraft/class_1657;method_7311(Lnet/minecraft/class_2625;Z)Vnamed openEditSignScreenLnet/minecraft/entity/player/PlayerEntity;openEditSignScreen(Lnet/minecraft/block/entity/SignBlockEntity;Z)V
-
incrementScreenHandlerSyncId
private void incrementScreenHandlerSyncId()- Mappings:
Namespace Name Mixin selector official guLane;gu()Vintermediary method_14237Lnet/minecraft/class_3222;method_14237()Vnamed incrementScreenHandlerSyncIdLnet/minecraft/server/network/ServerPlayerEntity;incrementScreenHandlerSyncId()V
-
openHandledScreen
- Overrides:
openHandledScreenin classPlayerEntity- Mappings:
Namespace Name Mixin selector official aLcfi;a(Lbke;)Ljava/util/OptionalInt;intermediary method_17355Lnet/minecraft/class_1657;method_17355(Lnet/minecraft/class_3908;)Ljava/util/OptionalInt;named openHandledScreenLnet/minecraft/entity/player/PlayerEntity;openHandledScreen(Lnet/minecraft/screen/NamedScreenHandlerFactory;)Ljava/util/OptionalInt;
-
sendTradeOffers
public void sendTradeOffers(int syncId, TradeOfferList offers, int levelProgress, int experience, boolean leveled, boolean refreshable) - Overrides:
sendTradeOffersin classPlayerEntity- Mappings:
Namespace Name Mixin selector official aLcfi;a(ILcso;IIZZ)Vintermediary method_17354Lnet/minecraft/class_1657;method_17354(ILnet/minecraft/class_1916;IIZZ)Vnamed sendTradeOffersLnet/minecraft/entity/player/PlayerEntity;sendTradeOffers(ILnet/minecraft/village/TradeOfferList;IIZZ)V
-
openHorseInventory
- Overrides:
openHorseInventoryin classPlayerEntity- Mappings:
Namespace Name Mixin selector official aLcfi;a(Lbzx;Lbju;)Vintermediary method_7291Lnet/minecraft/class_1657;method_7291(Lnet/minecraft/class_1496;Lnet/minecraft/class_1263;)Vnamed openHorseInventoryLnet/minecraft/entity/player/PlayerEntity;openHorseInventory(Lnet/minecraft/entity/passive/AbstractHorseEntity;Lnet/minecraft/inventory/Inventory;)V
-
useBook
Called when the player uses (defaults to right click) a writable or written book item.This can be called either on the client or the server player. Check
bookfor whether this is a written or a writable book.- Overrides:
useBookin classPlayerEntity- Parameters:
book- the bookhand- the hand holding the book- Mappings:
Namespace Name Mixin selector official aLcfi;a(Lcmy;Lbka;)Vintermediary method_7315Lnet/minecraft/class_1657;method_7315(Lnet/minecraft/class_1799;Lnet/minecraft/class_1268;)Vnamed useBookLnet/minecraft/entity/player/PlayerEntity;useBook(Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/Hand;)V
-
openCommandBlockScreen
- Overrides:
openCommandBlockScreenin classPlayerEntity- Mappings:
Namespace Name Mixin selector official aLcfi;a(Ldhf;)Vintermediary method_7323Lnet/minecraft/class_1657;method_7323(Lnet/minecraft/class_2593;)Vnamed openCommandBlockScreenLnet/minecraft/entity/player/PlayerEntity;openCommandBlockScreen(Lnet/minecraft/block/entity/CommandBlockBlockEntity;)V
-
closeHandledScreen
public void closeHandledScreen()Closes the currently open handled screen.This method can be called on either logical side, and it will synchronize the closing automatically to the other.
- Overrides:
closeHandledScreenin classPlayerEntity- Mappings:
Namespace Name Mixin selector official rLcfi;r()Vintermediary method_7346Lnet/minecraft/class_1657;method_7346()Vnamed closeHandledScreenLnet/minecraft/entity/player/PlayerEntity;closeHandledScreen()V
-
onHandledScreenClosed
public void onHandledScreenClosed()Runs closing tasks for the current screen handler and sets it to thePlayerEntity.playerScreenHandler.- Overrides:
onHandledScreenClosedin classPlayerEntity- Mappings:
Namespace Name Mixin selector official sLcfi;s()Vintermediary method_14247Lnet/minecraft/class_1657;method_14247()Vnamed onHandledScreenClosedLnet/minecraft/entity/player/PlayerEntity;onHandledScreenClosed()V
-
updateInput
public void updateInput(float sidewaysSpeed, float forwardSpeed, boolean jumping, boolean sneaking) - Mappings:
Namespace Name Mixin selector official aLane;a(FFZZ)Vintermediary method_14218Lnet/minecraft/class_3222;method_14218(FFZZ)Vnamed updateInputLnet/minecraft/server/network/ServerPlayerEntity;updateInput(FFZZ)V
-
travel
Allows you to do certain speed and velocity calculations. This is useful for custom vehicle behavior, or custom entity movement. This is not to be confused with AI.See vanilla examples of custom horse vehicle and flying entities.
- Overrides:
travelin classPlayerEntity- Parameters:
movementInput- represents the sidewaysSpeed, upwardSpeed, and forwardSpeed of the entity in that order- Mappings:
Namespace Name Mixin selector official aLbml;a(Lelt;)Vintermediary method_6091Lnet/minecraft/class_1309;method_6091(Lnet/minecraft/class_243;)Vnamed travelLnet/minecraft/entity/LivingEntity;travel(Lnet/minecraft/util/math/Vec3d;)V
-
tickRiding
public void tickRiding()- Overrides:
tickRidingin classPlayerEntity- Mappings:
Namespace Name Mixin selector official tLblv;t()Vintermediary method_5842Lnet/minecraft/class_1297;method_5842()Vnamed tickRidingLnet/minecraft/entity/Entity;tickRiding()V
-
increaseTravelMotionStats
public void increaseTravelMotionStats(double deltaX, double deltaY, double deltaZ) - Mappings:
Namespace Name Mixin selector official bLane;b(DDD)Vintermediary method_54720Lnet/minecraft/class_3222;method_54720(DDD)Vnamed increaseTravelMotionStatsLnet/minecraft/server/network/ServerPlayerEntity;increaseTravelMotionStats(DDD)V
-
increaseRidingMotionStats
private void increaseRidingMotionStats(double deltaX, double deltaY, double deltaZ) - Mappings:
Namespace Name Mixin selector official rLane;r(DDD)Vintermediary method_54721Lnet/minecraft/class_3222;method_54721(DDD)Vnamed increaseRidingMotionStatsLnet/minecraft/server/network/ServerPlayerEntity;increaseRidingMotionStats(DDD)V
-
isZero
private static boolean isZero(double deltaX, double deltaY, double deltaZ) - Mappings:
Namespace Name Mixin selector official sLane;s(DDD)Zintermediary method_54722Lnet/minecraft/class_3222;method_54722(DDD)Znamed isZeroLnet/minecraft/server/network/ServerPlayerEntity;isZero(DDD)Z
-
increaseStat
- Overrides:
increaseStatin classPlayerEntity- Mappings:
Namespace Name Mixin selector official aLcfi;a(Larz;I)Vintermediary method_7342Lnet/minecraft/class_1657;method_7342(Lnet/minecraft/class_3445;I)Vnamed increaseStatLnet/minecraft/entity/player/PlayerEntity;increaseStat(Lnet/minecraft/stat/Stat;I)V
-
resetStat
- Overrides:
resetStatin classPlayerEntity- Mappings:
Namespace Name Mixin selector official aLcfi;a(Larz;)Vintermediary method_7266Lnet/minecraft/class_1657;method_7266(Lnet/minecraft/class_3445;)Vnamed resetStatLnet/minecraft/entity/player/PlayerEntity;resetStat(Lnet/minecraft/stat/Stat;)V
-
unlockRecipes
- Overrides:
unlockRecipesin classPlayerEntity- Mappings:
Namespace Name Mixin selector official aLcfi;a(Ljava/util/Collection;)Iintermediary method_7254Lnet/minecraft/class_1657;method_7254(Ljava/util/Collection;)Inamed unlockRecipesLnet/minecraft/entity/player/PlayerEntity;unlockRecipes(Ljava/util/Collection;)I
-
onRecipeCrafted
- Overrides:
onRecipeCraftedin classPlayerEntity- Mappings:
Namespace Name Mixin selector official aLcfi;a(Lcqe;Ljava/util/List;)Vintermediary method_51283Lnet/minecraft/class_1657;method_51283(Lnet/minecraft/class_8786;Ljava/util/List;)Vnamed onRecipeCraftedLnet/minecraft/entity/player/PlayerEntity;onRecipeCrafted(Lnet/minecraft/recipe/RecipeEntry;Ljava/util/List;)V
-
unlockRecipes
- Overrides:
unlockRecipesin classPlayerEntity- Mappings:
Namespace Name Mixin selector official aLcfi;a(Ljava/util/List;)Vintermediary method_7335Lnet/minecraft/class_1657;method_7335(Ljava/util/List;)Vnamed unlockRecipesLnet/minecraft/entity/player/PlayerEntity;unlockRecipes(Ljava/util/List;)V
-
lockRecipes
- Overrides:
lockRecipesin classPlayerEntity- Mappings:
Namespace Name Mixin selector official bLcfi;b(Ljava/util/Collection;)Iintermediary method_7333Lnet/minecraft/class_1657;method_7333(Ljava/util/Collection;)Inamed lockRecipesLnet/minecraft/entity/player/PlayerEntity;lockRecipes(Ljava/util/Collection;)I
-
addExperience
public void addExperience(int experience) - Overrides:
addExperiencein classPlayerEntity- Mappings:
Namespace Name Mixin selector official dLcfi;d(I)Vintermediary method_7255Lnet/minecraft/class_1657;method_7255(I)Vnamed addExperienceLnet/minecraft/entity/player/PlayerEntity;addExperience(I)V
-
onDisconnect
public void onDisconnect()- Mappings:
Namespace Name Mixin selector official uLane;u()Vintermediary method_14231Lnet/minecraft/class_3222;method_14231()Vnamed onDisconnectLnet/minecraft/server/network/ServerPlayerEntity;onDisconnect()V
-
isDisconnected
public boolean isDisconnected()- Mappings:
Namespace Name Mixin selector official vLane;v()Zintermediary method_14239Lnet/minecraft/class_3222;method_14239()Znamed isDisconnectedLnet/minecraft/server/network/ServerPlayerEntity;isDisconnected()Z
-
markHealthDirty
public void markHealthDirty()- Mappings:
Namespace Name Mixin selector official wLane;w()Vintermediary method_14217Lnet/minecraft/class_3222;method_14217()Vnamed markHealthDirtyLnet/minecraft/server/network/ServerPlayerEntity;markHealthDirty()V
-
sendMessage
Adds a message to this player's HUD.If it's called on
ServerPlayerEntity, it sends a message to the client corresponding to this player so that the client can add a message to their HUD. If it's called onClientPlayerEntity, it just adds a message to their HUD.- Overrides:
sendMessagein classPlayerEntity- Parameters:
message- the message to add- See Also:
- Mappings:
Namespace Name Mixin selector official aLcfi;a(Lvf;Z)Vintermediary method_7353Lnet/minecraft/class_1657;method_7353(Lnet/minecraft/class_2561;Z)Vnamed sendMessageLnet/minecraft/entity/player/PlayerEntity;sendMessage(Lnet/minecraft/text/Text;Z)V
-
consumeItem
protected void consumeItem()- Overrides:
consumeItemin classLivingEntity- Mappings:
Namespace Name Mixin selector official xLbml;x()Vintermediary method_6040Lnet/minecraft/class_1309;method_6040()Vnamed consumeItemLnet/minecraft/entity/LivingEntity;consumeItem()V
-
lookAt
Changes this entity's pitch and yaw to look attarget.- Overrides:
lookAtin classLivingEntity- Mappings:
Namespace Name Mixin selector official aLblv;a(Lee$a;Lelt;)Vintermediary method_5702Lnet/minecraft/class_1297;method_5702(Lnet/minecraft/class_2183$class_2184;Lnet/minecraft/class_243;)Vnamed lookAtLnet/minecraft/entity/Entity;lookAt(Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;Lnet/minecraft/util/math/Vec3d;)V
-
lookAtEntity
public void lookAtEntity(EntityAnchorArgumentType.EntityAnchor anchorPoint, Entity targetEntity, EntityAnchorArgumentType.EntityAnchor targetAnchor) - Mappings:
Namespace Name Mixin selector official aLane;a(Lee$a;Lblv;Lee$a;)Vintermediary method_14222Lnet/minecraft/class_3222;method_14222(Lnet/minecraft/class_2183$class_2184;Lnet/minecraft/class_1297;Lnet/minecraft/class_2183$class_2184;)Vnamed lookAtEntityLnet/minecraft/server/network/ServerPlayerEntity;lookAtEntity(Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;Lnet/minecraft/entity/Entity;Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;)V
-
copyFrom
- Mappings:
Namespace Name Mixin selector official aLane;a(Lane;Z)Vintermediary method_14203Lnet/minecraft/class_3222;method_14203(Lnet/minecraft/class_3222;Z)Vnamed copyFromLnet/minecraft/server/network/ServerPlayerEntity;copyFrom(Lnet/minecraft/server/network/ServerPlayerEntity;Z)V
-
onStatusEffectApplied
protected void onStatusEffectApplied(StatusEffectInstance effect, @Nullable @Nullable Entity source) - Overrides:
onStatusEffectAppliedin classLivingEntity- Mappings:
Namespace Name Mixin selector official aLbml;a(Lbli;Lblv;)Vintermediary method_6020Lnet/minecraft/class_1309;method_6020(Lnet/minecraft/class_1293;Lnet/minecraft/class_1297;)Vnamed onStatusEffectAppliedLnet/minecraft/entity/LivingEntity;onStatusEffectApplied(Lnet/minecraft/entity/effect/StatusEffectInstance;Lnet/minecraft/entity/Entity;)V
-
onStatusEffectUpgraded
protected void onStatusEffectUpgraded(StatusEffectInstance effect, boolean reapplyEffect, @Nullable @Nullable Entity source) - Overrides:
onStatusEffectUpgradedin classLivingEntity- Mappings:
Namespace Name Mixin selector official aLbml;a(Lbli;ZLblv;)Vintermediary method_6009Lnet/minecraft/class_1309;method_6009(Lnet/minecraft/class_1293;ZLnet/minecraft/class_1297;)Vnamed onStatusEffectUpgradedLnet/minecraft/entity/LivingEntity;onStatusEffectUpgraded(Lnet/minecraft/entity/effect/StatusEffectInstance;ZLnet/minecraft/entity/Entity;)V
-
onStatusEffectRemoved
- Overrides:
onStatusEffectRemovedin classLivingEntity- Mappings:
Namespace Name Mixin selector official aLbml;a(Lbli;)Vintermediary method_6129Lnet/minecraft/class_1309;method_6129(Lnet/minecraft/class_1293;)Vnamed onStatusEffectRemovedLnet/minecraft/entity/LivingEntity;onStatusEffectRemoved(Lnet/minecraft/entity/effect/StatusEffectInstance;)V
-
requestTeleport
public void requestTeleport(double destX, double destY, double destZ) Requests the entity to teleport to the given position.For players, this sends the teleport packet. For other entities, this just sets the position of the entity and its passengers.
- Overrides:
requestTeleportin classEntity- See Also:
- Mappings:
Namespace Name Mixin selector official cLblv;c(DDD)Vintermediary method_5859Lnet/minecraft/class_1297;method_5859(DDD)Vnamed requestTeleportLnet/minecraft/entity/Entity;requestTeleport(DDD)V
-
requestTeleportOffset
public void requestTeleportOffset(double offsetX, double offsetY, double offsetZ) Requests the entity to teleport to the current position offset by the given amount.For players, this sends the teleport packet. For other entities, this just sets the position of the entity and its passengers.
- Overrides:
requestTeleportOffsetin classEntity- See Also:
- Mappings:
Namespace Name Mixin selector official dLblv;d(DDD)Vintermediary method_45166Lnet/minecraft/class_1297;method_45166(DDD)Vnamed requestTeleportOffsetLnet/minecraft/entity/Entity;requestTeleportOffset(DDD)V
-
teleport
public boolean teleport(ServerWorld world, double destX, double destY, double destZ, Set<PositionFlag> flags, float yaw, float pitch) Teleports the entity to the given position. Ifworlddiffers from the current world, it copies the entity and discards the current one.- Overrides:
teleportin classEntity- See Also:
- Mappings:
Namespace Name Mixin selector official aLblv;a(Land;DDDLjava/util/Set;FF)Zintermediary method_48105Lnet/minecraft/class_1297;method_48105(Lnet/minecraft/class_3218;DDDLjava/util/Set;FF)Znamed teleportLnet/minecraft/entity/Entity;teleport(Lnet/minecraft/server/world/ServerWorld;DDDLjava/util/Set;FF)Z
-
refreshPositionAfterTeleport
public void refreshPositionAfterTeleport(double x, double y, double z) - Overrides:
refreshPositionAfterTeleportin classEntity- Mappings:
Namespace Name Mixin selector official eLblv;e(DDD)Vintermediary method_24203Lnet/minecraft/class_1297;method_24203(DDD)Vnamed refreshPositionAfterTeleportLnet/minecraft/entity/Entity;refreshPositionAfterTeleport(DDD)V
-
addCritParticles
- Overrides:
addCritParticlesin classPlayerEntity- Mappings:
Namespace Name Mixin selector official aLcfi;a(Lblv;)Vintermediary method_7277Lnet/minecraft/class_1657;method_7277(Lnet/minecraft/class_1297;)Vnamed addCritParticlesLnet/minecraft/entity/player/PlayerEntity;addCritParticles(Lnet/minecraft/entity/Entity;)V
-
addEnchantedHitParticles
- Overrides:
addEnchantedHitParticlesin classPlayerEntity- Mappings:
Namespace Name Mixin selector official bLcfi;b(Lblv;)Vintermediary method_7304Lnet/minecraft/class_1657;method_7304(Lnet/minecraft/class_1297;)Vnamed addEnchantedHitParticlesLnet/minecraft/entity/player/PlayerEntity;addEnchantedHitParticles(Lnet/minecraft/entity/Entity;)V
-
sendAbilitiesUpdate
public void sendAbilitiesUpdate()- Overrides:
sendAbilitiesUpdatein classPlayerEntity- Mappings:
Namespace Name Mixin selector official yLcfi;y()Vintermediary method_7355Lnet/minecraft/class_1657;method_7355()Vnamed sendAbilitiesUpdateLnet/minecraft/entity/player/PlayerEntity;sendAbilitiesUpdate()V
-
getServerWorld
- Mappings:
Namespace Name Mixin selector official zLane;z()Land;intermediary method_51469Lnet/minecraft/class_3222;method_51469()Lnet/minecraft/class_3218;named getServerWorldLnet/minecraft/server/network/ServerPlayerEntity;getServerWorld()Lnet/minecraft/server/world/ServerWorld;
-
changeGameMode
- Mappings:
Namespace Name Mixin selector official aLane;a(Lctm;)Zintermediary method_7336Lnet/minecraft/class_3222;method_7336(Lnet/minecraft/class_1934;)Znamed changeGameModeLnet/minecraft/server/network/ServerPlayerEntity;changeGameMode(Lnet/minecraft/world/GameMode;)Z
-
isSpectator
public boolean isSpectator()Returns whether the entity is a spectator.This returns
falseunless the entity is a player in spectator game mode.- Specified by:
isSpectatorin classPlayerEntity- Returns:
- whether the entity is a spectator
- Mappings:
Namespace Name Mixin selector official P_Lblv;P_()Zintermediary method_7325Lnet/minecraft/class_1297;method_7325()Znamed isSpectatorLnet/minecraft/entity/Entity;isSpectator()Z
-
isCreative
public boolean isCreative()Returns whether this player is in creative mode.- Specified by:
isCreativein classPlayerEntity- Mappings:
Namespace Name Mixin selector official fLcfi;f()Zintermediary method_7337Lnet/minecraft/class_1657;method_7337()Znamed isCreativeLnet/minecraft/entity/player/PlayerEntity;isCreative()Z
-
sendMessage
Sends a system message.- Specified by:
sendMessagein interfaceCommandOutput- Overrides:
sendMessagein classEntity- Mappings:
Namespace Name Mixin selector official aLdr;a(Lvf;)Vintermediary method_43496Lnet/minecraft/class_2165;method_43496(Lnet/minecraft/class_2561;)Vnamed sendMessageLnet/minecraft/server/command/CommandOutput;sendMessage(Lnet/minecraft/text/Text;)V
-
sendMessageToClient
- Mappings:
Namespace Name Mixin selector official bLane;b(Lvf;Z)Vintermediary method_43502Lnet/minecraft/class_3222;method_43502(Lnet/minecraft/class_2561;Z)Vnamed sendMessageToClientLnet/minecraft/server/network/ServerPlayerEntity;sendMessageToClient(Lnet/minecraft/text/Text;Z)V
-
sendChatMessage
public void sendChatMessage(SentMessage message, boolean filterMaskEnabled, MessageType.Parameters params) Sends a chat message to the player.Chat messages have signatures. It is possible to use a bogus signature - such as
SignedMessage.ofUnsigned(java.lang.String)- to send a chat message; however if the signature is invalid (e.g. because the text's content differs from the one sent by the client, or because the passed signature is invalid) the client will show a warning and can discard it depending on the client's options.- See Also:
- Mappings:
Namespace Name Mixin selector official aLane;a(Lvu;ZLvb$a;)Vintermediary method_43505Lnet/minecraft/class_3222;method_43505(Lnet/minecraft/class_7604;ZLnet/minecraft/class_2556$class_7602;)Vnamed sendChatMessageLnet/minecraft/server/network/ServerPlayerEntity;sendChatMessage(Lnet/minecraft/network/message/SentMessage;ZLnet/minecraft/network/message/MessageType$Parameters;)V
-
getIp
- Mappings:
Namespace Name Mixin selector official ALane;A()Ljava/lang/String;intermediary method_14209Lnet/minecraft/class_3222;method_14209()Ljava/lang/String;named getIpLnet/minecraft/server/network/ServerPlayerEntity;getIp()Ljava/lang/String;
-
setClientOptions
- Mappings:
Namespace Name Mixin selector official aLane;a(Lams;)Vintermediary method_14213Lnet/minecraft/class_3222;method_14213(Lnet/minecraft/class_8791;)Vnamed setClientOptionsLnet/minecraft/server/network/ServerPlayerEntity;setClientOptions(Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;)V
-
getClientOptions
- Mappings:
Namespace Name Mixin selector official BLane;B()Lams;intermediary method_53823Lnet/minecraft/class_3222;method_53823()Lnet/minecraft/class_8791;named getClientOptionsLnet/minecraft/server/network/ServerPlayerEntity;getClientOptions()Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;
-
areClientChatColorsEnabled
public boolean areClientChatColorsEnabled()- Mappings:
Namespace Name Mixin selector official CLane;C()Zintermediary method_34879Lnet/minecraft/class_3222;method_34879()Znamed areClientChatColorsEnabledLnet/minecraft/server/network/ServerPlayerEntity;areClientChatColorsEnabled()Z
-
getClientChatVisibility
- Mappings:
Namespace Name Mixin selector official DLane;D()Lcfg;intermediary method_14238Lnet/minecraft/class_3222;method_14238()Lnet/minecraft/class_1659;named getClientChatVisibilityLnet/minecraft/server/network/ServerPlayerEntity;getClientChatVisibility()Lnet/minecraft/network/message/ChatVisibility;
-
acceptsMessage
private boolean acceptsMessage(boolean overlay) - Mappings:
Namespace Name Mixin selector official wLane;w(Z)Zintermediary method_44707Lnet/minecraft/class_3222;method_44707(Z)Znamed acceptsMessageLnet/minecraft/server/network/ServerPlayerEntity;acceptsMessage(Z)Z
-
acceptsChatMessage
private boolean acceptsChatMessage()- Mappings:
Namespace Name Mixin selector official gvLane;gv()Zintermediary method_44706Lnet/minecraft/class_3222;method_44706()Znamed acceptsChatMessageLnet/minecraft/server/network/ServerPlayerEntity;acceptsChatMessage()Z
-
getViewDistance
public int getViewDistance()- Mappings:
Namespace Name Mixin selector official ELane;E()Iintermediary method_52371Lnet/minecraft/class_3222;method_52371()Inamed getViewDistanceLnet/minecraft/server/network/ServerPlayerEntity;getViewDistance()I
-
sendServerMetadata
- Mappings:
Namespace Name Mixin selector official aLane;a(Lagh;)Vintermediary method_43930Lnet/minecraft/class_3222;method_43930(Lnet/minecraft/class_2926;)Vnamed sendServerMetadataLnet/minecraft/server/network/ServerPlayerEntity;sendServerMetadata(Lnet/minecraft/server/ServerMetadata;)V
-
getPermissionLevel
protected int getPermissionLevel()Returns the permission level of this entity.This is
0for non-players.- Overrides:
getPermissionLevelin classEntity- Returns:
- the permission level of this entity
- See Also:
- Mappings:
Namespace Name Mixin selector official FLblv;F()Iintermediary method_5691Lnet/minecraft/class_1297;method_5691()Inamed getPermissionLevelLnet/minecraft/entity/Entity;getPermissionLevel()I
-
updateLastActionTime
public void updateLastActionTime()- Mappings:
Namespace Name Mixin selector official GLane;G()Vintermediary method_14234Lnet/minecraft/class_3222;method_14234()Vnamed updateLastActionTimeLnet/minecraft/server/network/ServerPlayerEntity;updateLastActionTime()V
-
getStatHandler
- Mappings:
Namespace Name Mixin selector official HLane;H()Lary;intermediary method_14248Lnet/minecraft/class_3222;method_14248()Lnet/minecraft/class_3442;named getStatHandlerLnet/minecraft/server/network/ServerPlayerEntity;getStatHandler()Lnet/minecraft/stat/ServerStatHandler;
-
getRecipeBook
- Mappings:
Namespace Name Mixin selector official ILane;I()Larx;intermediary method_14253Lnet/minecraft/class_3222;method_14253()Lnet/minecraft/class_3441;named getRecipeBookLnet/minecraft/server/network/ServerPlayerEntity;getRecipeBook()Lnet/minecraft/server/network/ServerRecipeBook;
-
updatePotionVisibility
protected void updatePotionVisibility()- Overrides:
updatePotionVisibilityin classLivingEntity- Mappings:
Namespace Name Mixin selector official JLbml;J()Vintermediary method_6027Lnet/minecraft/class_1309;method_6027()Vnamed updatePotionVisibilityLnet/minecraft/entity/LivingEntity;updatePotionVisibility()V
-
getCameraEntity
- Mappings:
Namespace Name Mixin selector official KLane;K()Lblv;intermediary method_14242Lnet/minecraft/class_3222;method_14242()Lnet/minecraft/class_1297;named getCameraEntityLnet/minecraft/server/network/ServerPlayerEntity;getCameraEntity()Lnet/minecraft/entity/Entity;
-
setCameraEntity
- Mappings:
Namespace Name Mixin selector official cLane;c(Lblv;)Vintermediary method_14224Lnet/minecraft/class_3222;method_14224(Lnet/minecraft/class_1297;)Vnamed setCameraEntityLnet/minecraft/server/network/ServerPlayerEntity;setCameraEntity(Lnet/minecraft/entity/Entity;)V
-
tickPortalCooldown
protected void tickPortalCooldown()- Overrides:
tickPortalCooldownin classEntity- Mappings:
Namespace Name Mixin selector official LLblv;L()Vintermediary method_5760Lnet/minecraft/class_1297;method_5760()Vnamed tickPortalCooldownLnet/minecraft/entity/Entity;tickPortalCooldown()V
-
attack
- Overrides:
attackin classPlayerEntity- Mappings:
Namespace Name Mixin selector official dLcfi;d(Lblv;)Vintermediary method_7324Lnet/minecraft/class_1657;method_7324(Lnet/minecraft/class_1297;)Vnamed attackLnet/minecraft/entity/player/PlayerEntity;attack(Lnet/minecraft/entity/Entity;)V
-
getLastActionTime
public long getLastActionTime()- Mappings:
Namespace Name Mixin selector official MLane;M()Jintermediary method_14219Lnet/minecraft/class_3222;method_14219()Jnamed getLastActionTimeLnet/minecraft/server/network/ServerPlayerEntity;getLastActionTime()J
-
getPlayerListName
- Mappings:
Namespace Name Mixin selector official NLane;N()Lvf;intermediary method_14206Lnet/minecraft/class_3222;method_14206()Lnet/minecraft/class_2561;named getPlayerListNameLnet/minecraft/server/network/ServerPlayerEntity;getPlayerListName()Lnet/minecraft/text/Text;
-
swingHand
- Overrides:
swingHandin classLivingEntity- Mappings:
Namespace Name Mixin selector official aLbml;a(Lbka;)Vintermediary method_6104Lnet/minecraft/class_1309;method_6104(Lnet/minecraft/class_1268;)Vnamed swingHandLnet/minecraft/entity/LivingEntity;swingHand(Lnet/minecraft/util/Hand;)V
-
isInTeleportationState
public boolean isInTeleportationState()- Mappings:
Namespace Name Mixin selector official OLane;O()Zintermediary method_14208Lnet/minecraft/class_3222;method_14208()Znamed isInTeleportationStateLnet/minecraft/server/network/ServerPlayerEntity;isInTeleportationState()Z
-
onTeleportationDone
public void onTeleportationDone()- Mappings:
Namespace Name Mixin selector official PLane;P()Vintermediary method_14240Lnet/minecraft/class_3222;method_14240()Vnamed onTeleportationDoneLnet/minecraft/server/network/ServerPlayerEntity;onTeleportationDone()V
-
getAdvancementTracker
- Mappings:
Namespace Name Mixin selector official QLane;Q()Laho;intermediary method_14236Lnet/minecraft/class_3222;method_14236()Lnet/minecraft/class_2985;named getAdvancementTrackerLnet/minecraft/server/network/ServerPlayerEntity;getAdvancementTracker()Lnet/minecraft/advancement/PlayerAdvancementTracker;
-
teleport
- Mappings:
Namespace Name Mixin selector official aLane;a(Land;DDDFF)Vintermediary method_14251Lnet/minecraft/class_3222;method_14251(Lnet/minecraft/class_3218;DDDFF)Vnamed teleportLnet/minecraft/server/network/ServerPlayerEntity;teleport(Lnet/minecraft/server/world/ServerWorld;DDDFF)V
-
getSpawnPointPosition
- Mappings:
Namespace Name Mixin selector official RLane;R()Lhx;intermediary method_26280Lnet/minecraft/class_3222;method_26280()Lnet/minecraft/class_2338;named getSpawnPointPositionLnet/minecraft/server/network/ServerPlayerEntity;getSpawnPointPosition()Lnet/minecraft/util/math/BlockPos;
-
getSpawnAngle
public float getSpawnAngle()- Mappings:
Namespace Name Mixin selector official SLane;S()Fintermediary method_30631Lnet/minecraft/class_3222;method_30631()Fnamed getSpawnAngleLnet/minecraft/server/network/ServerPlayerEntity;getSpawnAngle()F
-
getSpawnPointDimension
- Mappings:
Namespace Name Mixin selector official TLane;T()Lahf;intermediary method_26281Lnet/minecraft/class_3222;method_26281()Lnet/minecraft/class_5321;named getSpawnPointDimensionLnet/minecraft/server/network/ServerPlayerEntity;getSpawnPointDimension()Lnet/minecraft/registry/RegistryKey;
-
isSpawnForced
public boolean isSpawnForced()- Mappings:
Namespace Name Mixin selector official ULane;U()Zintermediary method_26282Lnet/minecraft/class_3222;method_26282()Znamed isSpawnForcedLnet/minecraft/server/network/ServerPlayerEntity;isSpawnForced()Z
-
setSpawnPoint
public void setSpawnPoint(RegistryKey<World> dimension, @Nullable @Nullable BlockPos pos, float angle, boolean forced, boolean sendMessage) Sets the player's spawn point.- Parameters:
dimension- the new spawn dimensionpos- the new spawn point, ornullif resetting to the world spawnforced- whether the new spawn point is forcedsendMessage- iftrue, a game message about the spawn point change will be sent- Mappings:
Namespace Name Mixin selector official aLane;a(Lahf;Lhx;FZZ)Vintermediary method_26284Lnet/minecraft/class_3222;method_26284(Lnet/minecraft/class_5321;Lnet/minecraft/class_2338;FZZ)Vnamed setSpawnPointLnet/minecraft/server/network/ServerPlayerEntity;setSpawnPoint(Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/util/math/BlockPos;FZZ)V
-
getWatchedSection
Returns the chunk section position the player's client is currently watching from. This may differ from the chunk section the player is currently in.This is only for chunk loading (watching) purpose. This is updated together with entity tracking, but they are separate mechanisms.
- See Also:
- Mappings:
Namespace Name Mixin selector official VLane;V()Liz;intermediary method_14232Lnet/minecraft/class_3222;method_14232()Lnet/minecraft/class_4076;named getWatchedSectionLnet/minecraft/server/network/ServerPlayerEntity;getWatchedSection()Lnet/minecraft/util/math/ChunkSectionPos;
-
setWatchedSection
Sets the chunk section position the player's client is currently watching from. This is usually called when the player moves to a new chunk section.- Parameters:
section- the updated section position- See Also:
- Mappings:
Namespace Name Mixin selector official aLane;a(Liz;)Vintermediary method_17668Lnet/minecraft/class_3222;method_17668(Lnet/minecraft/class_4076;)Vnamed setWatchedSectionLnet/minecraft/server/network/ServerPlayerEntity;setWatchedSection(Lnet/minecraft/util/math/ChunkSectionPos;)V
-
getChunkFilter
- Mappings:
Namespace Name Mixin selector official WLane;W()Lamr;intermediary method_52372Lnet/minecraft/class_3222;method_52372()Lnet/minecraft/class_8603;named getChunkFilterLnet/minecraft/server/network/ServerPlayerEntity;getChunkFilter()Lnet/minecraft/server/network/ChunkFilter;
-
setChunkFilter
- Mappings:
Namespace Name Mixin selector official aLane;a(Lamr;)Vintermediary method_52373Lnet/minecraft/class_3222;method_52373(Lnet/minecraft/class_8603;)Vnamed setChunkFilterLnet/minecraft/server/network/ServerPlayerEntity;setChunkFilter(Lnet/minecraft/server/network/ChunkFilter;)V
-
playSound
- Overrides:
playSoundin classPlayerEntity- Mappings:
Namespace Name Mixin selector official aLcfi;a(Larr;Lart;FF)Vintermediary method_17356Lnet/minecraft/class_1657;method_17356(Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;FF)Vnamed playSoundLnet/minecraft/entity/player/PlayerEntity;playSound(Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FF)V
-
dropItem
- Overrides:
dropItemin classPlayerEntity- Parameters:
throwRandomly- if true, the item will be thrown in a random direction from the entity regardless of which direction the entity is facing- Mappings:
Namespace Name Mixin selector official aLcfi;a(Lcmy;ZZ)Lcbu;intermediary method_7329Lnet/minecraft/class_1657;method_7329(Lnet/minecraft/class_1799;ZZ)Lnet/minecraft/class_1542;named dropItemLnet/minecraft/entity/player/PlayerEntity;dropItem(Lnet/minecraft/item/ItemStack;ZZ)Lnet/minecraft/entity/ItemEntity;
-
getTextStream
- Mappings:
Namespace Name Mixin selector official XLane;X()Laoh;intermediary method_31273Lnet/minecraft/class_3222;method_31273()Lnet/minecraft/class_5513;named getTextStreamLnet/minecraft/server/network/ServerPlayerEntity;getTextStream()Lnet/minecraft/server/filter/TextStream;
-
setServerWorld
- Mappings:
Namespace Name Mixin selector official cLane;c(Land;)Vintermediary method_51468Lnet/minecraft/class_3222;method_51468(Lnet/minecraft/class_3218;)Vnamed setServerWorldLnet/minecraft/server/network/ServerPlayerEntity;setServerWorld(Lnet/minecraft/server/world/ServerWorld;)V
-
gameModeFromNbt
@Nullable private static @Nullable GameMode gameModeFromNbt(@Nullable @Nullable NbtCompound nbt, String key) - Mappings:
Namespace Name Mixin selector official aLane;a(Lsn;Ljava/lang/String;)Lctm;intermediary method_32745Lnet/minecraft/class_3222;method_32745(Lnet/minecraft/class_2487;Ljava/lang/String;)Lnet/minecraft/class_1934;named gameModeFromNbtLnet/minecraft/server/network/ServerPlayerEntity;gameModeFromNbt(Lnet/minecraft/nbt/NbtCompound;Ljava/lang/String;)Lnet/minecraft/world/GameMode;
-
getServerGameMode
Returns the server game mode the player should be set to, namely the forced game mode.If the forced game mode is not set, returns the
backupGameModeif notnull, or the server's default game mode otherwise.- See Also:
- Mappings:
Namespace Name Mixin selector official bLane;b(Lctm;)Lctm;intermediary method_32746Lnet/minecraft/class_3222;method_32746(Lnet/minecraft/class_1934;)Lnet/minecraft/class_1934;named getServerGameModeLnet/minecraft/server/network/ServerPlayerEntity;getServerGameMode(Lnet/minecraft/world/GameMode;)Lnet/minecraft/world/GameMode;
-
setGameMode
- Mappings:
Namespace Name Mixin selector official cLane;c(Lsn;)Vintermediary method_32748Lnet/minecraft/class_3222;method_32748(Lnet/minecraft/class_2487;)Vnamed setGameModeLnet/minecraft/server/network/ServerPlayerEntity;setGameMode(Lnet/minecraft/nbt/NbtCompound;)V
-
writeGameModeNbt
- Mappings:
Namespace Name Mixin selector official kLane;k(Lsn;)Vintermediary method_32749Lnet/minecraft/class_3222;method_32749(Lnet/minecraft/class_2487;)Vnamed writeGameModeNbtLnet/minecraft/server/network/ServerPlayerEntity;writeGameModeNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
shouldFilterText
public boolean shouldFilterText()- Overrides:
shouldFilterTextin classPlayerEntity- Mappings:
Namespace Name Mixin selector official YLcfi;Y()Zintermediary method_33793Lnet/minecraft/class_1657;method_33793()Znamed shouldFilterTextLnet/minecraft/entity/player/PlayerEntity;shouldFilterText()Z
-
shouldFilterMessagesSentTo
- Mappings:
Namespace Name Mixin selector official bLane;b(Lane;)Zintermediary method_33795Lnet/minecraft/class_3222;method_33795(Lnet/minecraft/class_3222;)Znamed shouldFilterMessagesSentToLnet/minecraft/server/network/ServerPlayerEntity;shouldFilterMessagesSentTo(Lnet/minecraft/server/network/ServerPlayerEntity;)Z
-
canModifyAt
Returns whether the entity can modify the world atpos.This returns
truefor most entities. Players checkWorld.canPlayerModifyAt(net.minecraft.entity.player.PlayerEntity, net.minecraft.util.math.BlockPos)to prevent them from modifying entities in the spawn protection or outside the world border.ProjectileEntitydelegates it to the owner if the owner is a player; if the owner is a non-player entity, this returns the value ofGameRules.DO_MOB_GRIEFING, and ownerless projectiles are always allowed to modify the world.- Overrides:
canModifyAtin classEntity- Returns:
- whether the entity can modify the world at
pos - See Also:
- Mappings:
Namespace Name Mixin selector official aLblv;a(Lctp;Lhx;)Zintermediary method_36971Lnet/minecraft/class_1297;method_36971(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Znamed canModifyAtLnet/minecraft/entity/Entity;canModifyAt(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
tickItemStackUsage
- Overrides:
tickItemStackUsagein classLivingEntity- Mappings:
Namespace Name Mixin selector official aLbml;a(Lcmy;)Vintermediary method_37119Lnet/minecraft/class_1309;method_37119(Lnet/minecraft/class_1799;)Vnamed tickItemStackUsageLnet/minecraft/entity/LivingEntity;tickItemStackUsage(Lnet/minecraft/item/ItemStack;)V
-
dropSelectedItem
public boolean dropSelectedItem(boolean entireStack) - Mappings:
Namespace Name Mixin selector official aLane;a(Z)Zintermediary method_37413Lnet/minecraft/class_3222;method_37413(Z)Znamed dropSelectedItemLnet/minecraft/server/network/ServerPlayerEntity;dropSelectedItem(Z)Z
-
allowsServerListing
public boolean allowsServerListing()- Mappings:
Namespace Name Mixin selector official ZLane;Z()Zintermediary method_39426Lnet/minecraft/class_3222;method_39426()Znamed allowsServerListingLnet/minecraft/server/network/ServerPlayerEntity;allowsServerListing()Z
-
getSculkShriekerWarningManager
- Overrides:
getSculkShriekerWarningManagerin classPlayerEntity- Mappings:
Namespace Name Mixin selector official aaLcfi;aa()Ljava/util/Optional;intermediary method_42272Lnet/minecraft/class_1657;method_42272()Ljava/util/Optional;named getSculkShriekerWarningManagerLnet/minecraft/entity/player/PlayerEntity;getSculkShriekerWarningManager()Ljava/util/Optional;
-
triggerItemPickedUpByEntityCriteria
Called to trigger advancement criteria when an entity picks up an item thrown by a player.- Overrides:
triggerItemPickedUpByEntityCriteriain classLivingEntity- Mappings:
Namespace Name Mixin selector official aLbml;a(Lcbu;)Vintermediary method_29499Lnet/minecraft/class_1309;method_29499(Lnet/minecraft/class_1542;)Vnamed triggerItemPickedUpByEntityCriteriaLnet/minecraft/entity/LivingEntity;triggerItemPickedUpByEntityCriteria(Lnet/minecraft/entity/ItemEntity;)V
-
setSession
- Mappings:
Namespace Name Mixin selector official aLane;a(Lvw;)Vintermediary method_46364Lnet/minecraft/class_3222;method_46364(Lnet/minecraft/class_7822;)Vnamed setSessionLnet/minecraft/server/network/ServerPlayerEntity;setSession(Lnet/minecraft/network/encryption/PublicPlayerSession;)V
-
getSession
- Mappings:
Namespace Name Mixin selector official abLane;ab()Lvw;intermediary method_45163Lnet/minecraft/class_3222;method_45163()Lnet/minecraft/class_7822;named getSessionLnet/minecraft/server/network/ServerPlayerEntity;getSession()Lnet/minecraft/network/encryption/PublicPlayerSession;
-
tiltScreen
public void tiltScreen(double deltaX, double deltaZ) - Overrides:
tiltScreenin classLivingEntity- Mappings:
Namespace Name Mixin selector official aLbml;a(DD)Vintermediary method_48761Lnet/minecraft/class_1309;method_48761(DD)Vnamed tiltScreenLnet/minecraft/entity/LivingEntity;tiltScreen(DD)V
-
startRiding
Starts ridingentity.For example,
player.startRiding(horse)causes the player to ride a horse; the opposite,horse.startRiding(player), will cause the horse to ride a player.This fails when this entity is already riding the entity (or vice versa), or when this entity does not allow riding other entities (or vice versa) unless
forceistrue. If this entity is already riding another entity, it will stop riding that entity first.- Overrides:
startRidingin classEntity- Parameters:
force- whether to bypass the entity's rideability check- Returns:
- whether this entity successfully started riding
- See Also:
- Mappings:
Namespace Name Mixin selector official aLblv;a(Lblv;Z)Zintermediary method_5873Lnet/minecraft/class_1297;method_5873(Lnet/minecraft/class_1297;Z)Znamed startRidingLnet/minecraft/entity/Entity;startRiding(Lnet/minecraft/entity/Entity;Z)Z
-
stopRiding
public void stopRiding()Stops riding the vehicle if present.For example, if
playeris riding on a horse,player.stopRiding()will dismount that player from the horse.- Overrides:
stopRidingin classLivingEntity- See Also:
- Mappings:
Namespace Name Mixin selector official acLblv;ac()Vintermediary method_5848Lnet/minecraft/class_1297;method_5848()Vnamed stopRidingLnet/minecraft/entity/Entity;stopRiding()V
-
createCommonPlayerSpawnInfo
- Mappings:
Namespace Name Mixin selector official dLane;d(Land;)Ladg;intermediary method_52374Lnet/minecraft/class_3222;method_52374(Lnet/minecraft/class_3218;)Lnet/minecraft/class_8589;named createCommonPlayerSpawnInfoLnet/minecraft/server/network/ServerPlayerEntity;createCommonPlayerSpawnInfo(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/network/packet/s2c/play/CommonPlayerSpawnInfo;
-