Class ServerPlayerEntity
- All Implemented Interfaces:
Attackable
,DataTracked
,ScoreHolder
,Nameable
,EntityLike
- Mappings:
Namespace Name named net/minecraft/server/network/ServerPlayerEntity
intermediary net/minecraft/class_3222
official asi
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.player.PlayerEntity
PlayerEntity.SleepFailureReason
Nested classes/interfaces inherited from class net.minecraft.entity.LivingEntity
LivingEntity.FallSounds
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
-
Field Summary
Modifier and TypeFieldDescriptionprivate final PlayerAdvancementTracker
private boolean
private ChunkFilter
private boolean
private ChatVisibility
private final CommandOutput
private static final EntityAttributeModifier
private static final EntityAttributeModifier
private boolean
static final String
static final String
private final Set
<EnderPearlEntity> private static final int
private static final int
private static final int
static final double
static final double
static final int
private boolean
private boolean
private int
private String
private long
private int
private int
private int
private int
private float
private int
private int
private static final Logger
private Vec3d
boolean
private ParticlesMode
private PlayerInput
private final ServerRecipeBook
private final ScreenHandlerListener
private final ScreenHandlerSyncHandler
private int
private SculkShriekerWarningManager
boolean
final MinecraftServer
private @Nullable PublicPlayerSession
private float
private boolean
private boolean
private RegistryKey
<World> private final ServerStatHandler
private int
private int
private float
private boolean
private final TextStream
private int
private ChunkSectionPos
A 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, currentExplosionImpactPos, currentScreenHandler, damageTiltYaw, DEFAULT_EYE_HEIGHT, DEFAULT_MAIN_ARM, enchantingTableSeed, enderChestInventory, experienceLevel, experiencePickUpDelay, experienceProgress, explodedBy, field_30644, field_30645, field_30646, field_30647, field_30648, field_30649, field_30650, field_46175, field_47819, field_47820, field_49734, field_49735, field_7509, fishHook, hungerManager, isSubmergedInWater, LEFT_SHOULDER_ENTITY, MAIN_ARM, PLAYER_MODEL_PARTS, playerScreenHandler, prevCapeX, prevCapeY, prevCapeZ, prevStrideDistance, RIGHT_SHOULDER_ENTITY, STANDING_DIMENSIONS, strideDistance, totalExperience, VEHICLE_ATTACHMENT_POS
Fields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, ATTRIBUTES_NBT_KEY, BABY_SCALE_FACTOR, bodyTrackingIncrements, bodyYaw, brain, dead, DEATH_TICKS, deathTime, defaultMaxHealth, despawnCounter, elytraFlightController, EQUIPMENT_SLOT_ID, field_30069, field_30070, field_30072, field_30074, field_30075, field_44874, field_47756, field_48827, field_6215, forwardSpeed, glidingTicks, GLOWING_FLAG, GRAVITY, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, hurtTime, itemUseTimeLeft, jumping, lastAttackedTicks, lastDamageTaken, lastHandSwingProgress, limbAnimator, LIVING_FLAGS, lookDirection, maxHurtTime, NOT_WEARING_GAZE_DISGUISE_PREDICATE, OFF_HAND_ACTIVE_FLAG, playerHitTimer, preferredHand, prevBodyYaw, prevHeadYaw, prevLookDirection, prevScale, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, riptideAttackDamage, riptideStack, riptideTicks, scoreAmount, serverHeadYaw, serverPitch, serverX, serverY, serverYaw, serverZ, sidewaysSpeed, SLEEPING_DIMENSIONS, stepBobbingAmount, stuckArrowTimer, stuckStingerTimer, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAG
Fields inherited from class net.minecraft.entity.Entity
age, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLIDING_FLAG_INDEX, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, ID_KEY, inPowderSnow, intersectionChecked, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, portalManager, POSE, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow
Fields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME
-
Constructor Summary
ConstructorDescriptionServerPlayerEntity
(MinecraftServer server, ServerWorld world, com.mojang.authlib.GameProfile profile, SyncedClientOptions clientOptions) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
private boolean
acceptsMessage
(boolean overlay) void
addCritParticles
(Entity target) void
addEnchantedHitParticles
(Entity target) void
addEnderPearl
(EnderPearlEntity enderPearl) static long
addEnderPearlTicket
(ServerWorld world, ChunkPos chunkPos) void
addExperience
(int experience) void
addExperienceLevels
(int levels) boolean
void
applyEnchantmentCosts
(ItemStack enchantedItem, int experienceLevels) protected void
applyMovementEffects
(ServerWorld world, BlockPos pos) boolean
void
private int
calculateSpawnOffsetMultiplier
(int horizontalSpawnArea) boolean
canBeSpectated
(ServerPlayerEntity spectator) Returns whetherspectator
can spectate this entity.boolean
canModifyAt
(ServerWorld world, BlockPos pos) Returns whether the entity can modify the world atpos
.private boolean
canSpawnIn
(ServerWorld world, Box box) boolean
changeGameMode
(GameMode gameMode) void
void
Closes the currently open handled screen.protected void
void
copyFrom
(ServerPlayerEntity oldPlayer, boolean alive) protected ItemCooldownManager
boolean
damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.void
private @Nullable ItemEntity
dropPlayerItem
(ItemStack stack, boolean throwRandomly, boolean retainOwnership) boolean
dropSelectedItem
(boolean entireStack) void
void
protected void
fall
(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition) Called when the entity falls.private static Optional
<ServerPlayerEntity.RespawnPos> findRespawnPosition
(ServerWorld world, BlockPos pos, float spawnAngle, boolean spawnForced, boolean alive) private void
gameModeFromNbt
(@Nullable NbtCompound nbt, String key) protected float
getDamageAgainst
(Entity target, float baseDamage, DamageSource damageSource) getIp()
long
protected int
int
getRespawnTarget
(boolean alive, TeleportTarget.PostDimensionTransition postDimensionTransition) private GameMode
getServerGameMode
(@Nullable GameMode backupGameMode) Returns the server game mode the player should be set to, namely the forced game mode.float
int
Returns the chunk section position the player's client is currently watching from.getWorldSpawnPos
(ServerWorld world, BlockPos basePos) void
giveOrDropStack
(ItemStack stack) void
handleFall
(double xDifference, double yDifference, double zDifference, boolean onGround) long
handleThrownEnderPearl
(EnderPearlEntity enderPearl) private void
increaseRidingMotionStats
(double deltaX, double deltaY, double deltaZ) void
increaseStat
(Stat<?> stat, int amount) void
increaseTravelMotionStats
(double deltaX, double deltaY, double deltaZ) private void
private boolean
isBedObstructed
(BlockPos pos, Direction direction) private boolean
isBedWithinRange
(BlockPos pos) private boolean
isBedWithinRange
(BlockPos pos, Direction direction) boolean
Returns whether this player is in creative mode.boolean
boolean
boolean
isInvulnerableTo
(ServerWorld world, DamageSource source) private boolean
boolean
boolean
Returns whether the entity is a spectator.private static boolean
isZero
(double deltaX, double deltaY, double deltaZ) void
jump()
int
lockRecipes
(Collection<RecipeEntry<?>> recipes) void
lookAt
(EntityAnchorArgumentType.EntityAnchor anchorPoint, Vec3d target) Changes this entity's pitch and yaw to look attarget
.void
lookAtEntity
(EntityAnchorArgumentType.EntityAnchor anchorPoint, Entity targetEntity, EntityAnchorArgumentType.EntityAnchor targetAnchor) void
void
onBlockCollision
(BlockState state) Called when this entity's collision box intersectsstate
.void
onDeath
(DamageSource damageSource) void
void
onExplodedBy
(@Nullable Entity entity) void
Runs closing tasks for the current screen handler and sets it to thePlayerEntity.playerScreenHandler
.void
Called when the entity lands on a block.void
onRecipeCrafted
(RecipeEntry<?> recipe, List<ItemStack> ingredients) private void
onScreenHandlerOpened
(ScreenHandler screenHandler) void
onSpawn()
protected void
onStatusEffectApplied
(StatusEffectInstance effect, @Nullable Entity source) protected void
protected void
onStatusEffectUpgraded
(StatusEffectInstance effect, boolean reapplyEffect, @Nullable Entity source) void
void
openCommandBlockScreen
(CommandBlockBlockEntity commandBlock) void
openEditSignScreen
(SignBlockEntity sign, boolean front) void
openHorseInventory
(AbstractHorseEntity horse, Inventory inventory) void
void
playSoundToPlayer
(SoundEvent sound, SoundCategory category, float volume, float pitch) Playssound
to this player only.void
Reads custom data fromnbt
.void
void
void
void
refreshPositionAfterTeleport
(double x, double y, double z) void
removeEnderPearl
(EnderPearlEntity enderPearl) void
requestTeleport
(double destX, double destY, double destZ) Requests the entity to teleport to the given position.void
requestTeleportAndDismount
(double destX, double destY, double destZ) Requests the entity to teleport to the given position.void
requestTeleportOffset
(double offsetX, double offsetY, double offsetZ) Requests the entity to teleport to the current position offset by the given amount.void
void
rotate
(float yaw, float pitch) void
void
sendChatMessage
(SentMessage message, boolean filterMaskEnabled, MessageType.Parameters params) Sends a chat message to the player.void
sendEquipmentBreakStatus
(Item item, EquipmentSlot slot) private void
sendMapPacket
(ItemStack stack) void
sendMessage
(Text message) void
sendMessage
(Text message, boolean overlay) Adds a message to this player's HUD.void
sendMessageToClient
(Text message, boolean overlay) void
sendPickup
(Entity item, int count) void
sendServerMetadata
(ServerMetadata metadata) void
sendTradeOffers
(int syncId, TradeOfferList offers, int levelProgress, int experience, boolean leveled, boolean refreshable) void
setCameraEntity
(@Nullable Entity entity) void
setChunkFilter
(ChunkFilter chunkFilter) void
setClientOptions
(SyncedClientOptions clientOptions) void
setExperienceLevel
(int level) void
setExperiencePoints
(int points) void
setMovement
(Vec3d movement) void
setPlayerInput
(PlayerInput playerInput) void
setServerWorld
(ServerWorld world) void
setSession
(PublicPlayerSession session) void
setSpawnExtraParticlesOnFall
(boolean spawnExtraParticlesOnFall) void
setSpawnPoint
(RegistryKey<World> dimension, @Nullable BlockPos pos, float angle, boolean forced, boolean sendMessage) Sets the player's spawn point.void
setSpawnPointFrom
(ServerPlayerEntity player) void
setStartRaidPos
(BlockPos startRaidPos) void
setWatchedSection
(ChunkSectionPos section) Sets the chunk section position the player's client is currently watching from.boolean
shouldDamagePlayer
(PlayerEntity player) boolean
boolean
void
boolean
startRiding
(Entity entity, boolean force) Starts ridingentity
.void
Stops riding the vehicle if present.void
boolean
teleport
(ServerWorld world, double destX, double destY, double destZ, Set<PositionFlag> flags, float yaw, float pitch, boolean resetCamera) Teleports the entity to the given position.teleportTo
(TeleportTarget teleportTarget) Teleports this entity to another location, potentially in another world.void
tick()
Ticks this entity.protected void
void
protected void
protected void
tickItemStackUsage
(ItemStack stack) protected void
void
void
void
tiltScreen
(double deltaX, double deltaZ) void
Called 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.int
unlockRecipes
(Collection<RecipeEntry<?>> recipes) void
unlockRecipes
(List<RegistryKey<Recipe<?>>> recipes) private void
void
updateKilledAdvancementCriterion
(Entity entityKilled, int score, DamageSource damageSource) void
protected void
private void
updateScoreboardScore
(ScoreHolder targetScoreHolder, ScoreHolder aboutScoreHolder, ScoreboardCriterion[] criterions) private void
updateScores
(ScoreboardCriterion criterion, int score) void
Called when the player uses (defaults to right click) a writable or written book item.void
wakeUp
(boolean skipSleepTimer, boolean updateSleepingPlayers) Wakes this player up.private void
worldChanged
(ServerWorld origin) void
Writes custom data tonbt
.private void
private void
private void
Methods inherited from class net.minecraft.entity.player.PlayerEntity
addExhaustion, addScore, addShoulderEntity, adjustMovementForSneaking, animateDamage, applyDamage, attackLivingEntity, canBeHitByProjectile, canChangeIntoPose, canConsume, canDropItems, canFoodHeal, canGlide, canHarvest, canInteractWithBlockAt, canInteractWithEntity, canInteractWithEntityIn, canModifyBlocks, canPlaceOn, canResetTimeBySleeping, canSprintAsVehicle, canTakeDamage, canUseSlot, checkGliding, clearCurrentExplosion, clipAtLedge, createPlayerAttributes, damageArmor, damageHelmet, damageShield, disableShield, dismountVehicle, doesNotSuffocate, dropCreativeStack, dropInventory, dropItem, dropShoulderEntities, equipStack, getAbilities, getAbsorptionAmount, getArmorItems, getAttackCooldownProgress, getAttackCooldownProgressPerTick, getBaseDimensions, getBlockBreakingSpeed, getBlockInteractionRange, getBurningDuration, getDamageTiltYaw, getDeathSound, getDefaultPortalCooldown, getDisplayName, getEnchantingTableSeed, getEnderChestInventory, getEntityInteractionRange, getEquippedStack, getFallSounds, getGameProfile, getHandItems, getHighSpeedSplashSound, getHungerManager, getHurtSound, getInventory, getItemCooldownManager, getLastDeathPos, getLeashPos, getLuck, getMainArm, getMaxRelativeHeadRotation, getMoveEffect, getMovementSpeed, getName, getNameForScoreboard, getNextLevelExperience, getOffGroundSpeed, getPoses, getProjectileType, getScore, getScoreboard, getShoulderEntityLeft, getShoulderEntityRight, getSleepTimer, getSoundCategory, getSplashSound, getStackReference, getSwimSound, getVelocityMultiplier, getWeaponStack, getXpToDrop, giveItemStack, handleFallDamage, handleStatus, hasPermissionLevel, hasReducedDebugInfo, increaseStat, incrementStat, incrementStat, initDataTracker, interact, isArmorSlot, isBlockBreakingRestricted, isControlledByPlayer, isCreativeLevelTwoOp, isImmobile, isInCreativeMode, isMainPlayer, isPartVisible, isPlayer, isPushedByFluids, isSwimming, isUsingSpyglass, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onKilledOther, onPickupSlotClick, onSwimmingStart, openCommandBlockMinecartScreen, openJigsawScreen, openStructureBlockScreen, playSound, playStepSound, remove, requestRespawn, resetLastAttackedTicks, setAbsorptionAmountUnclamped, setFireTicks, setIgnoreFallDamageFromCurrentExplosion, setLastDeathPos, setMainArm, setReducedDebugInfo, setScore, setShoulderEntityLeft, setShoulderEntityRight, shouldAlwaysDropXp, shouldCancelInteraction, shouldCloseHandledScreenOnRespawn, shouldDismount, shouldIgnoreFallDamageFromCurrentExplosion, shouldRenderName, shouldRotateWithMinecart, shouldSave, shouldSwimInFluids, slowMovement, spawnSweepAttackParticles, startGliding, stopGliding, takeShieldHit, tickMovement, tickNewAi, travel, tryClearCurrentExplosion, updatePose, updateSwimming, updateWaterSubmersionState, useRiptide, vanishCursedItems, wakeUp
Methods inherited from class net.minecraft.entity.LivingEntity
addDeathParticles, addPowderSnowSlowIfNeeded, addStatusEffect, addStatusEffect, applyArmorToDamage, applyFluidMovingSpeed, areItemsDifferent, baseTick, blockedByShield, canBreatheInWater, canDispenserEquipSlot, canEquip, canEquipFromDispenser, canFreeze, canGlideWith, canHaveStatusEffect, canHit, canPickUpLoot, canSee, canSee, canTarget, canTarget, canUsePortals, canWalkOnFluid, clampScale, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, containsOnlyAmbientEffects, createBrainProfile, createLivingAttributes, damageEquipment, deserializeBrain, disableExperienceDropping, disablesShield, drop, dropEquipment, dropLoot, dropXp, forEachGeneratedItem, forEachGiftedItem, forEachShearedItem, getActiveHand, getActiveItem, getActiveStatusEffects, getAllArmorItems, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseMovementSpeedMultiplier, getBlockingItem, getBodyYaw, getBoundingBox, getBrain, getClimbingPos, getControlledMovementInput, getDamageTracker, getDespawnCounter, getDimensions, getEffectiveGravity, getEquippedItems, getGlidingTicks, getGravity, getHandSwingProgress, getHeadYaw, getHealth, getHitbox, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getJumpVelocity, getJumpVelocity, getKnockbackAgainst, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getLerpTargetPitch, getLerpTargetX, getLerpTargetY, getLerpTargetYaw, getLerpTargetZ, getLocationBasedEnchantmentEffects, getLootTableSeed, getMainHandStack, getMaxAbsorption, getMaxHealth, getNextAirOnLand, getNextAirUnderwater, getOffHandStack, getPassengerRidingPos, getPlayerHitTimer, getPreferredEquipmentSlot, getPrimeAdversary, getRecentDamageSource, getSaddledSpeed, getSafeFallDistance, getSafeFallDistance, getScale, getScaleFactor, getSleepingDirection, getSleepingPosition, getSlotForHand, getSoundPitch, getSoundVolume, getStackInArm, getStackInHand, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getXpToDrop, getYaw, hasInvertedHealingAndHarm, hasLandedInFluid, hasNoDrag, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isBaby, isBlocking, isClimbing, isDead, isEntityLookingAtMe, isExperienceDroppingDisabled, isGliding, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isInsideWall, isInSwimmingPose, isMobOrPlayer, isPartOfGame, isPushable, isSleeping, isUsingItem, isUsingRiptide, kill, knockback, knockDownwards, lerpHeadYaw, lerpYaw, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onEquipStack, onKilledBy, onRemoval, onSpawnPacket, onTrackedDataSet, playBlockFallSound, playHurtSound, playSound, positionInPortal, positionInPortal, processEquippedStack, pushAway, pushAwayFrom, removePowderSnowSlow, removeStatusEffect, removeStatusEffectInternal, resetLerp, sendEffectToControllingPlayer, setAbsorptionAmount, setAttacker, setAttacking, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setMovementSpeed, setNearbySongPlaying, setNoDrag, setOnFireForTicks, setSleepingPosition, setSprinting, setStackInHand, setStatusEffect, setStingerCount, setStuckArrowCount, shouldDropLoot, shouldDropXp, spawnItemParticles, stopUsingItem, swimUpward, swingHand, takeKnockback, teleport, tickControlled, tickGliding, tickHandSwing, tickInVoid, tickRiptide, tickStatusEffects, tryAttack, turnHead, updateAttribute, updateLimbs, updateLimbs, updatePostDeath, updateTrackedHeadRotation, updateTrackedPositionAndAngles, wouldNotSuffocateInPose
Methods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, applyGravity, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canExplosionDestroyBlock, canMoveVoluntarily, canStartRiding, canTeleportBetween, changeLookDirection, checkDespawn, clientDamage, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, detach, discard, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, extinguish, extinguishWithSound, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingPassenger, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getEffectiveExplosionResistance, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeight, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLastRenderPos, getLeashOffset, getLeashOffset, getLerpedPitch, getLerpedPos, getLerpedYaw, getLootTableKey, getMaxAir, getMinFreezeDamageTicks, getMovementDirection, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPickBlockStack, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPos, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getScoreboardTeam, getServer, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSyncedPos, getTargetingMargin, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getWidth, getWorld, getX, getY, getYaw, getZ, handleAttack, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPlayerRider, hasPortalCooldown, hasVehicle, interact, interactAt, isAlwaysInvulnerableTo, isAttackable, isCollidable, isConnectedThroughVehicle, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInSameTeam, isInsideWaterOrBubbleColumn, isInSneakingPose, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLocalPlayerOrLogicalSideForUpdatingMovement, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartOf, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, lerpPosAndRotation, limitFallDistance, move, movementInputToVelocity, occludeVibrationSignals, offsetX, offsetZ, onDataTrackerUpdate, onPassengerLookAround, onPlayerCollision, onRemove, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSoundIfNotSilent, playSwimSound, playSwimSound, populateCrashReport, pushOutOfBlocks, queueBlockCollisionCheck, raycast, readNbt, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removeCommandTag, removeFromDimension, removePassenger, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, serverDamage, setAir, setAngles, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFlag, setFrozenTicks, setGlowing, setId, setInPowderSnow, setInvisible, setInvulnerable, setMovement, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setPosition, setPrevPositionAndAngles, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRender, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTickBlockCollision, sidedDamage, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, tickBlockCollision, tickBlockCollision, tickPortalTeleportation, toNbtList, toNbtList, toString, tryUsePortal, unsetRemoved, updateEventHandler, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updatePrevAngles, updatePrevPosition, updateSupportingBlockPos, updateTrackedPosition, updateVelocity, updateWaterState, writeNbt
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/server/network/ServerPlayerEntity;LOGGER:Lorg/slf4j/Logger;
intermediary field_13975
Lnet/minecraft/class_3222;field_13975:Lorg/slf4j/Logger;
official cz
Lasi;cz:Lorg/slf4j/Logger;
-
field_29769
private static final int field_29769- See Also:
- Mappings:
Namespace Name Mixin selector named field_29769
Lnet/minecraft/server/network/ServerPlayerEntity;field_29769:I
intermediary field_29769
Lnet/minecraft/class_3222;field_29769:I
official cC
Lasi;cC:I
-
field_29770
private static final int field_29770- See Also:
- Mappings:
Namespace Name Mixin selector named field_29770
Lnet/minecraft/server/network/ServerPlayerEntity;field_29770:I
intermediary field_29770
Lnet/minecraft/class_3222;field_29770:I
official cD
Lasi;cD:I
-
field_46928
private static final int field_46928- See Also:
- Mappings:
Namespace Name Mixin selector named field_46928
Lnet/minecraft/server/network/ServerPlayerEntity;field_46928:I
intermediary field_46928
Lnet/minecraft/class_3222;field_46928:I
official cE
Lasi;cE:I
-
field_54046
public static final double field_54046- See Also:
- Mappings:
Namespace Name Mixin selector named field_54046
Lnet/minecraft/server/network/ServerPlayerEntity;field_54046:D
intermediary field_54046
Lnet/minecraft/class_3222;field_54046:D
official a
Lasi;a:D
-
field_54047
public static final double field_54047- See Also:
- Mappings:
Namespace Name Mixin selector named field_54047
Lnet/minecraft/server/network/ServerPlayerEntity;field_54047:D
intermediary field_54047
Lnet/minecraft/class_3222;field_54047:D
official b
Lasi;b:D
-
field_54207
public static final int field_54207- See Also:
- Mappings:
Namespace Name Mixin selector named field_54207
Lnet/minecraft/server/network/ServerPlayerEntity;field_54207:I
intermediary field_54207
Lnet/minecraft/class_3222;field_54207:I
official c
Lasi;c:I
-
ENDER_PEARLS_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named ENDER_PEARLS_KEY
Lnet/minecraft/server/network/ServerPlayerEntity;ENDER_PEARLS_KEY:Ljava/lang/String;
intermediary field_54209
Lnet/minecraft/class_3222;field_54209:Ljava/lang/String;
official d
Lasi;d:Ljava/lang/String;
-
ENDER_PEARLS_DIMENSION_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named ENDER_PEARLS_DIMENSION_KEY
Lnet/minecraft/server/network/ServerPlayerEntity;ENDER_PEARLS_DIMENSION_KEY:Ljava/lang/String;
intermediary field_54210
Lnet/minecraft/class_3222;field_54210:Ljava/lang/String;
official e
Lasi;e:Ljava/lang/String;
-
CREATIVE_BLOCK_INTERACTION_RANGE_MODIFIER
- Mappings:
Namespace Name Mixin selector named CREATIVE_BLOCK_INTERACTION_RANGE_MODIFIER
Lnet/minecraft/server/network/ServerPlayerEntity;CREATIVE_BLOCK_INTERACTION_RANGE_MODIFIER:Lnet/minecraft/entity/attribute/EntityAttributeModifier;
intermediary field_47709
Lnet/minecraft/class_3222;field_47709:Lnet/minecraft/class_1322;
official cF
Lasi;cF:Lbxl;
-
CREATIVE_ENTITY_INTERACTION_RANGE_MODIFIER
- Mappings:
Namespace Name Mixin selector named CREATIVE_ENTITY_INTERACTION_RANGE_MODIFIER
Lnet/minecraft/server/network/ServerPlayerEntity;CREATIVE_ENTITY_INTERACTION_RANGE_MODIFIER:Lnet/minecraft/entity/attribute/EntityAttributeModifier;
intermediary field_47710
Lnet/minecraft/class_3222;field_47710:Lnet/minecraft/class_1322;
official cG
Lasi;cG:Lbxl;
-
networkHandler
- Mappings:
Namespace Name Mixin selector named networkHandler
Lnet/minecraft/server/network/ServerPlayerEntity;networkHandler:Lnet/minecraft/server/network/ServerPlayNetworkHandler;
intermediary field_13987
Lnet/minecraft/class_3222;field_13987:Lnet/minecraft/class_3244;
official f
Lasi;f:Latk;
-
server
- Mappings:
Namespace Name Mixin selector named server
Lnet/minecraft/server/network/ServerPlayerEntity;server:Lnet/minecraft/server/MinecraftServer;
intermediary field_13995
Lnet/minecraft/class_3222;field_13995:Lnet/minecraft/server/MinecraftServer;
official g
Lasi;g:Lnet/minecraft/server/MinecraftServer;
-
interactionManager
- Mappings:
Namespace Name Mixin selector named interactionManager
Lnet/minecraft/server/network/ServerPlayerEntity;interactionManager:Lnet/minecraft/server/network/ServerPlayerInteractionManager;
intermediary field_13974
Lnet/minecraft/class_3222;field_13974:Lnet/minecraft/class_3225;
official h
Lasi;h:Lasj;
-
advancementTracker
- Mappings:
Namespace Name Mixin selector named advancementTracker
Lnet/minecraft/server/network/ServerPlayerEntity;advancementTracker:Lnet/minecraft/advancement/PlayerAdvancementTracker;
intermediary field_13970
Lnet/minecraft/class_3222;field_13970:Lnet/minecraft/class_2985;
official cH
Lasi;cH:Lamh;
-
statHandler
- Mappings:
Namespace Name Mixin selector named statHandler
Lnet/minecraft/server/network/ServerPlayerEntity;statHandler:Lnet/minecraft/stat/ServerStatHandler;
intermediary field_13966
Lnet/minecraft/class_3222;field_13966:Lnet/minecraft/class_3442;
official cI
Lasi;cI:Laxl;
-
lastHealthScore
private float lastHealthScore- Mappings:
Namespace Name Mixin selector named lastHealthScore
Lnet/minecraft/server/network/ServerPlayerEntity;lastHealthScore:F
intermediary field_13963
Lnet/minecraft/class_3222;field_13963:F
official cJ
Lasi;cJ:F
-
lastFoodScore
private int lastFoodScore- Mappings:
Namespace Name Mixin selector named lastFoodScore
Lnet/minecraft/server/network/ServerPlayerEntity;lastFoodScore:I
intermediary field_13983
Lnet/minecraft/class_3222;field_13983:I
official cK
Lasi;cK:I
-
lastAirScore
private int lastAirScore- Mappings:
Namespace Name Mixin selector named lastAirScore
Lnet/minecraft/server/network/ServerPlayerEntity;lastAirScore:I
intermediary field_13968
Lnet/minecraft/class_3222;field_13968:I
official cL
Lasi;cL:I
-
lastArmorScore
private int lastArmorScore- Mappings:
Namespace Name Mixin selector named lastArmorScore
Lnet/minecraft/server/network/ServerPlayerEntity;lastArmorScore:I
intermediary field_13982
Lnet/minecraft/class_3222;field_13982:I
official cM
Lasi;cM:I
-
lastLevelScore
private int lastLevelScore- Mappings:
Namespace Name Mixin selector named lastLevelScore
Lnet/minecraft/server/network/ServerPlayerEntity;lastLevelScore:I
intermediary field_13965
Lnet/minecraft/class_3222;field_13965:I
official cN
Lasi;cN:I
-
lastExperienceScore
private int lastExperienceScore- Mappings:
Namespace Name Mixin selector named lastExperienceScore
Lnet/minecraft/server/network/ServerPlayerEntity;lastExperienceScore:I
intermediary field_13980
Lnet/minecraft/class_3222;field_13980:I
official cO
Lasi;cO:I
-
syncedHealth
private float syncedHealth- Mappings:
Namespace Name Mixin selector named syncedHealth
Lnet/minecraft/server/network/ServerPlayerEntity;syncedHealth:F
intermediary field_13997
Lnet/minecraft/class_3222;field_13997:F
official cP
Lasi;cP:F
-
syncedFoodLevel
private int syncedFoodLevel- Mappings:
Namespace Name Mixin selector named syncedFoodLevel
Lnet/minecraft/server/network/ServerPlayerEntity;syncedFoodLevel:I
intermediary field_13979
Lnet/minecraft/class_3222;field_13979:I
official cQ
Lasi;cQ:I
-
syncedSaturationIsZero
private boolean syncedSaturationIsZero- Mappings:
Namespace Name Mixin selector named syncedSaturationIsZero
Lnet/minecraft/server/network/ServerPlayerEntity;syncedSaturationIsZero:Z
intermediary field_13972
Lnet/minecraft/class_3222;field_13972:Z
official cR
Lasi;cR:Z
-
syncedExperience
private int syncedExperience- Mappings:
Namespace Name Mixin selector named syncedExperience
Lnet/minecraft/server/network/ServerPlayerEntity;syncedExperience:I
intermediary field_13978
Lnet/minecraft/class_3222;field_13978:I
official cS
Lasi;cS:I
-
joinInvulnerabilityTicks
private int joinInvulnerabilityTicks- Mappings:
Namespace Name Mixin selector named joinInvulnerabilityTicks
Lnet/minecraft/server/network/ServerPlayerEntity;joinInvulnerabilityTicks:I
intermediary field_13998
Lnet/minecraft/class_3222;field_13998:I
official cT
Lasi;cT:I
-
clientChatVisibility
- Mappings:
Namespace Name Mixin selector named clientChatVisibility
Lnet/minecraft/server/network/ServerPlayerEntity;clientChatVisibility:Lnet/minecraft/network/message/ChatVisibility;
intermediary field_13993
Lnet/minecraft/class_3222;field_13993:Lnet/minecraft/class_1659;
official cU
Lasi;cU:Lcpt;
-
particlesMode
- Mappings:
Namespace Name Mixin selector named particlesMode
Lnet/minecraft/server/network/ServerPlayerEntity;particlesMode:Lnet/minecraft/particle/ParticlesMode;
intermediary field_52358
Lnet/minecraft/class_3222;field_52358:Lnet/minecraft/class_4066;
official cV
Lasi;cV:Larz;
-
clientChatColorsEnabled
private boolean clientChatColorsEnabled- Mappings:
Namespace Name Mixin selector named clientChatColorsEnabled
Lnet/minecraft/server/network/ServerPlayerEntity;clientChatColorsEnabled:Z
intermediary field_13971
Lnet/minecraft/class_3222;field_13971:Z
official cW
Lasi;cW:Z
-
lastActionTime
private long lastActionTime- Mappings:
Namespace Name Mixin selector named lastActionTime
Lnet/minecraft/server/network/ServerPlayerEntity;lastActionTime:J
intermediary field_13976
Lnet/minecraft/class_3222;field_13976:J
official cX
Lasi;cX:J
-
cameraEntity
- Mappings:
Namespace Name Mixin selector named cameraEntity
Lnet/minecraft/server/network/ServerPlayerEntity;cameraEntity:Lnet/minecraft/entity/Entity;
intermediary field_13984
Lnet/minecraft/class_3222;field_13984:Lnet/minecraft/class_1297;
official cY
Lasi;cY:Lbvj;
-
inTeleportationState
private boolean inTeleportationState- Mappings:
Namespace Name Mixin selector named inTeleportationState
Lnet/minecraft/server/network/ServerPlayerEntity;inTeleportationState:Z
intermediary field_13985
Lnet/minecraft/class_3222;field_13985:Z
official cZ
Lasi;cZ:Z
-
seenCredits
public boolean seenCredits- Mappings:
Namespace Name Mixin selector named seenCredits
Lnet/minecraft/server/network/ServerPlayerEntity;seenCredits:Z
intermediary field_13969
Lnet/minecraft/class_3222;field_13969:Z
official i
Lasi;i:Z
-
recipeBook
- Mappings:
Namespace Name Mixin selector named recipeBook
Lnet/minecraft/server/network/ServerPlayerEntity;recipeBook:Lnet/minecraft/server/network/ServerRecipeBook;
intermediary field_13996
Lnet/minecraft/class_3222;field_13996:Lnet/minecraft/class_3441;
official da
Lasi;da:Laxk;
-
levitationStartPos
- Mappings:
Namespace Name Mixin selector named levitationStartPos
Lnet/minecraft/server/network/ServerPlayerEntity;levitationStartPos:Lnet/minecraft/util/math/Vec3d;
intermediary field_13992
Lnet/minecraft/class_3222;field_13992:Lnet/minecraft/class_243;
official db
Lasi;db:Lfbx;
-
levitationStartTick
private int levitationStartTick- Mappings:
Namespace Name Mixin selector named levitationStartTick
Lnet/minecraft/server/network/ServerPlayerEntity;levitationStartTick:I
intermediary field_13973
Lnet/minecraft/class_3222;field_13973:I
official dc
Lasi;dc:I
-
disconnected
private boolean disconnected- Mappings:
Namespace Name Mixin selector named disconnected
Lnet/minecraft/server/network/ServerPlayerEntity;disconnected:Z
intermediary field_13964
Lnet/minecraft/class_3222;field_13964:Z
official dd
Lasi;dd:Z
-
viewDistance
private int viewDistance- Mappings:
Namespace Name Mixin selector named viewDistance
Lnet/minecraft/server/network/ServerPlayerEntity;viewDistance:I
intermediary field_44990
Lnet/minecraft/class_3222;field_44990:I
official de
Lasi;de:I
-
language
- Mappings:
Namespace Name Mixin selector named language
Lnet/minecraft/server/network/ServerPlayerEntity;language:Ljava/lang/String;
intermediary field_46156
Lnet/minecraft/class_3222;field_46156:Ljava/lang/String;
official df
Lasi;df:Ljava/lang/String;
-
fallStartPos
- Mappings:
Namespace Name Mixin selector named fallStartPos
Lnet/minecraft/server/network/ServerPlayerEntity;fallStartPos:Lnet/minecraft/util/math/Vec3d;
intermediary field_35007
Lnet/minecraft/class_3222;field_35007:Lnet/minecraft/class_243;
official dg
Lasi;dg:Lfbx;
-
enteredNetherPos
- Mappings:
Namespace Name Mixin selector named enteredNetherPos
Lnet/minecraft/server/network/ServerPlayerEntity;enteredNetherPos:Lnet/minecraft/util/math/Vec3d;
intermediary field_13994
Lnet/minecraft/class_3222;field_13994:Lnet/minecraft/class_243;
official dh
Lasi;dh:Lfbx;
-
vehicleInLavaRidingPos
- Mappings:
Namespace Name Mixin selector named vehicleInLavaRidingPos
Lnet/minecraft/server/network/ServerPlayerEntity;vehicleInLavaRidingPos:Lnet/minecraft/util/math/Vec3d;
intermediary field_35008
Lnet/minecraft/class_3222;field_35008:Lnet/minecraft/class_243;
official di
Lasi;di:Lfbx;
-
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 named watchedSection
Lnet/minecraft/server/network/ServerPlayerEntity;watchedSection:Lnet/minecraft/util/math/ChunkSectionPos;
intermediary field_13990
Lnet/minecraft/class_3222;field_13990:Lnet/minecraft/class_4076;
official dj
Lasi;dj:Lkj;
-
chunkFilter
- Mappings:
Namespace Name Mixin selector named chunkFilter
Lnet/minecraft/server/network/ServerPlayerEntity;chunkFilter:Lnet/minecraft/server/network/ChunkFilter;
intermediary field_44991
Lnet/minecraft/class_3222;field_44991:Lnet/minecraft/class_8603;
official dk
Lasi;dk:Larr;
-
spawnPointDimension
- Mappings:
Namespace Name Mixin selector named spawnPointDimension
Lnet/minecraft/server/network/ServerPlayerEntity;spawnPointDimension:Lnet/minecraft/registry/RegistryKey;
intermediary field_23191
Lnet/minecraft/class_3222;field_23191:Lnet/minecraft/class_5321;
official dl
Lasi;dl:Laly;
-
spawnPointPosition
- Mappings:
Namespace Name Mixin selector named spawnPointPosition
Lnet/minecraft/server/network/ServerPlayerEntity;spawnPointPosition:Lnet/minecraft/util/math/BlockPos;
intermediary field_23192
Lnet/minecraft/class_3222;field_23192:Lnet/minecraft/class_2338;
official dm
Lasi;dm:Ljh;
-
spawnForced
private boolean spawnForced- Mappings:
Namespace Name Mixin selector named spawnForced
Lnet/minecraft/server/network/ServerPlayerEntity;spawnForced:Z
intermediary field_23193
Lnet/minecraft/class_3222;field_23193:Z
official dn
Lasi;dn:Z
-
spawnAngle
private float spawnAngle- Mappings:
Namespace Name Mixin selector named spawnAngle
Lnet/minecraft/server/network/ServerPlayerEntity;spawnAngle:F
intermediary field_26353
Lnet/minecraft/class_3222;field_26353:F
official do
Lasi;do:F
-
textStream
- Mappings:
Namespace Name Mixin selector named textStream
Lnet/minecraft/server/network/ServerPlayerEntity;textStream:Lnet/minecraft/server/filter/TextStream;
intermediary field_26821
Lnet/minecraft/class_3222;field_26821:Lnet/minecraft/class_5513;
official dp
Lasi;dp:Latq;
-
filterText
private boolean filterText- Mappings:
Namespace Name Mixin selector named filterText
Lnet/minecraft/server/network/ServerPlayerEntity;filterText:Z
intermediary field_28860
Lnet/minecraft/class_3222;field_28860:Z
official dq
Lasi;dq:Z
-
allowServerListing
private boolean allowServerListing- Mappings:
Namespace Name Mixin selector named allowServerListing
Lnet/minecraft/server/network/ServerPlayerEntity;allowServerListing:Z
intermediary field_35566
Lnet/minecraft/class_3222;field_35566:Z
official dr
Lasi;dr:Z
-
spawnExtraParticlesOnFall
private boolean spawnExtraParticlesOnFall- Mappings:
Namespace Name Mixin selector named spawnExtraParticlesOnFall
Lnet/minecraft/server/network/ServerPlayerEntity;spawnExtraParticlesOnFall:Z
intermediary field_49776
Lnet/minecraft/class_3222;field_49776:Z
official ds
Lasi;ds:Z
-
sculkShriekerWarningManager
- Mappings:
Namespace Name Mixin selector named sculkShriekerWarningManager
Lnet/minecraft/server/network/ServerPlayerEntity;sculkShriekerWarningManager:Lnet/minecraft/block/entity/SculkShriekerWarningManager;
intermediary field_39985
Lnet/minecraft/class_3222;field_39985:Lnet/minecraft/class_7262;
official dt
Lasi;dt:Lcpb;
-
startRaidPos
- Mappings:
Namespace Name Mixin selector named startRaidPos
Lnet/minecraft/server/network/ServerPlayerEntity;startRaidPos:Lnet/minecraft/util/math/BlockPos;
intermediary field_50088
Lnet/minecraft/class_3222;field_50088:Lnet/minecraft/class_2338;
official du
Lasi;du:Ljh;
-
movement
- Mappings:
Namespace Name Mixin selector named movement
Lnet/minecraft/server/network/ServerPlayerEntity;movement:Lnet/minecraft/util/math/Vec3d;
intermediary field_51875
Lnet/minecraft/class_3222;field_51875:Lnet/minecraft/class_243;
official dv
Lasi;dv:Lfbx;
-
playerInput
- Mappings:
Namespace Name Mixin selector named playerInput
Lnet/minecraft/server/network/ServerPlayerEntity;playerInput:Lnet/minecraft/util/PlayerInput;
intermediary field_54048
Lnet/minecraft/class_3222;field_54048:Lnet/minecraft/class_10185;
official dw
Lasi;dw:Lcpu;
-
enderPearls
- Mappings:
Namespace Name Mixin selector named enderPearls
Lnet/minecraft/server/network/ServerPlayerEntity;enderPearls:Ljava/util/Set;
intermediary field_54208
Lnet/minecraft/class_3222;field_54208:Ljava/util/Set;
official dx
Lasi;dx:Ljava/util/Set;
-
screenHandlerSyncHandler
- Mappings:
Namespace Name Mixin selector named screenHandlerSyncHandler
Lnet/minecraft/server/network/ServerPlayerEntity;screenHandlerSyncHandler:Lnet/minecraft/screen/ScreenHandlerSyncHandler;
intermediary field_29180
Lnet/minecraft/class_3222;field_29180:Lnet/minecraft/class_5916;
official dy
Lasi;dy:Lctq;
-
screenHandlerListener
- Mappings:
Namespace Name Mixin selector named screenHandlerListener
Lnet/minecraft/server/network/ServerPlayerEntity;screenHandlerListener:Lnet/minecraft/screen/ScreenHandlerListener;
intermediary field_29181
Lnet/minecraft/class_3222;field_29181:Lnet/minecraft/class_1712;
official dz
Lasi;dz:Lctp;
-
session
- Mappings:
Namespace Name Mixin selector named session
Lnet/minecraft/server/network/ServerPlayerEntity;session:Lnet/minecraft/network/encryption/PublicPlayerSession;
intermediary field_39986
Lnet/minecraft/class_3222;field_39986:Lnet/minecraft/class_7822;
official dA
Lasi;dA:Lym;
-
field_49777
- Mappings:
Namespace Name Mixin selector named field_49777
Lnet/minecraft/server/network/ServerPlayerEntity;field_49777:Ljava/lang/Object;
intermediary field_49777
Lnet/minecraft/class_3222;field_49777:Ljava/lang/Object;
official j
Lasi;j:Ljava/lang/Object;
-
commandOutput
- Mappings:
Namespace Name Mixin selector named commandOutput
Lnet/minecraft/server/network/ServerPlayerEntity;commandOutput:Lnet/minecraft/server/command/CommandOutput;
intermediary field_54402
Lnet/minecraft/class_3222;field_54402:Lnet/minecraft/class_2165;
official dB
Lasi;dB:Lev;
-
screenHandlerSyncId
private int screenHandlerSyncId- Mappings:
Namespace Name Mixin selector named screenHandlerSyncId
Lnet/minecraft/server/network/ServerPlayerEntity;screenHandlerSyncId:I
intermediary field_13986
Lnet/minecraft/class_3222;field_13986:I
official dC
Lasi;dC:I
-
notInAnyWorld
public boolean notInAnyWorld- Mappings:
Namespace Name Mixin selector named notInAnyWorld
Lnet/minecraft/server/network/ServerPlayerEntity;notInAnyWorld:Z
intermediary field_13989
Lnet/minecraft/class_3222;field_13989:Z
official k
Lasi;k:Z
-
-
Constructor Details
-
ServerPlayerEntity
public ServerPlayerEntity(MinecraftServer server, ServerWorld world, com.mojang.authlib.GameProfile profile, SyncedClientOptions clientOptions) - Mappings:
Namespace Name Mixin selector named <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
intermediary <init>
Lnet/minecraft/class_3222;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_3218;Lcom/mojang/authlib/GameProfile;Lnet/minecraft/class_8791;)V
official <init>
Lasi;<init>(Lnet/minecraft/server/MinecraftServer;Lash;Lcom/mojang/authlib/GameProfile;Lars;)V
-
-
Method Details
-
getWorldSpawnPos
- Overrides:
getWorldSpawnPos
in classEntity
- Mappings:
Namespace Name Mixin selector named getWorldSpawnPos
Lnet/minecraft/entity/Entity;getWorldSpawnPos(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockPos;
intermediary method_14245
Lnet/minecraft/class_1297;method_14245(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;
official a
Lbvj;a(Lash;Ljh;)Ljh;
-
canSpawnIn
- Mappings:
Namespace Name Mixin selector named canSpawnIn
Lnet/minecraft/server/network/ServerPlayerEntity;canSpawnIn(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Box;)Z
intermediary method_61274
Lnet/minecraft/class_3222;method_61274(Lnet/minecraft/class_3218;Lnet/minecraft/class_238;)Z
official a
Lasi;a(Lash;Lfbs;)Z
-
calculateSpawnOffsetMultiplier
private int calculateSpawnOffsetMultiplier(int horizontalSpawnArea) - Mappings:
Namespace Name Mixin selector named calculateSpawnOffsetMultiplier
Lnet/minecraft/server/network/ServerPlayerEntity;calculateSpawnOffsetMultiplier(I)I
intermediary method_14244
Lnet/minecraft/class_3222;method_14244(I)I
official t
Lasi;t(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.
nbt
might 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:
readCustomDataFromNbt
in classPlayerEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named readCustomDataFromNbt
Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5749
Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
official a
Lbvj;a(Lux;)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:
writeCustomDataToNbt
in classPlayerEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named writeCustomDataToNbt
Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5652
Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
official b
Lbvj;b(Lux;)V
-
writeRootVehicle
- Mappings:
Namespace Name Mixin selector named writeRootVehicle
Lnet/minecraft/server/network/ServerPlayerEntity;writeRootVehicle(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_64135
Lnet/minecraft/class_3222;method_64135(Lnet/minecraft/class_2487;)V
official k
Lasi;k(Lux;)V
-
readRootVehicle
- Mappings:
Namespace Name Mixin selector named readRootVehicle
Lnet/minecraft/server/network/ServerPlayerEntity;readRootVehicle(Ljava/util/Optional;)V
intermediary method_64125
Lnet/minecraft/class_3222;method_64125(Ljava/util/Optional;)V
official a
Lasi;a(Ljava/util/Optional;)V
-
writeEnderPearls
- Mappings:
Namespace Name Mixin selector named writeEnderPearls
Lnet/minecraft/server/network/ServerPlayerEntity;writeEnderPearls(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_64136
Lnet/minecraft/class_3222;method_64136(Lnet/minecraft/class_2487;)V
official l
Lasi;l(Lux;)V
-
readEnderPearls
- Mappings:
Namespace Name Mixin selector named readEnderPearls
Lnet/minecraft/server/network/ServerPlayerEntity;readEnderPearls(Ljava/util/Optional;)V
intermediary method_64131
Lnet/minecraft/class_3222;method_64131(Ljava/util/Optional;)V
official b
Lasi;b(Ljava/util/Optional;)V
-
setExperiencePoints
public void setExperiencePoints(int points) - Mappings:
Namespace Name Mixin selector named setExperiencePoints
Lnet/minecraft/server/network/ServerPlayerEntity;setExperiencePoints(I)V
intermediary method_14228
Lnet/minecraft/class_3222;method_14228(I)V
official a
Lasi;a(I)V
-
setExperienceLevel
public void setExperienceLevel(int level) - Mappings:
Namespace Name Mixin selector named setExperienceLevel
Lnet/minecraft/server/network/ServerPlayerEntity;setExperienceLevel(I)V
intermediary method_14252
Lnet/minecraft/class_3222;method_14252(I)V
official b
Lasi;b(I)V
-
addExperienceLevels
public void addExperienceLevels(int levels) - Overrides:
addExperienceLevels
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named addExperienceLevels
Lnet/minecraft/entity/player/PlayerEntity;addExperienceLevels(I)V
intermediary method_7316
Lnet/minecraft/class_1657;method_7316(I)V
official c
Lcpw;c(I)V
-
applyEnchantmentCosts
- Overrides:
applyEnchantmentCosts
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named applyEnchantmentCosts
Lnet/minecraft/entity/player/PlayerEntity;applyEnchantmentCosts(Lnet/minecraft/item/ItemStack;I)V
intermediary method_7286
Lnet/minecraft/class_1657;method_7286(Lnet/minecraft/class_1799;I)V
official a
Lcpw;a(Lcxo;I)V
-
onScreenHandlerOpened
- Mappings:
Namespace Name Mixin selector named onScreenHandlerOpened
Lnet/minecraft/server/network/ServerPlayerEntity;onScreenHandlerOpened(Lnet/minecraft/screen/ScreenHandler;)V
intermediary method_14235
Lnet/minecraft/class_3222;method_14235(Lnet/minecraft/class_1703;)V
official a
Lasi;a(Lctb;)V
-
onSpawn
public void onSpawn()- Mappings:
Namespace Name Mixin selector named onSpawn
Lnet/minecraft/server/network/ServerPlayerEntity;onSpawn()V
intermediary method_34225
Lnet/minecraft/class_3222;method_34225()V
official d
Lasi;d()V
-
enterCombat
public void enterCombat()- Overrides:
enterCombat
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named enterCombat
Lnet/minecraft/entity/LivingEntity;enterCombat()V
intermediary method_6000
Lnet/minecraft/class_1309;method_6000()V
official i_
Lbwf;i_()V
-
endCombat
public void endCombat()- Overrides:
endCombat
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named endCombat
Lnet/minecraft/entity/LivingEntity;endCombat()V
intermediary method_6044
Lnet/minecraft/class_1309;method_6044()V
official j_
Lbwf;j_()V
-
onBlockCollision
Called when this entity's collision box intersectsstate
.- Overrides:
onBlockCollision
in classEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named onBlockCollision
Lnet/minecraft/entity/Entity;onBlockCollision(Lnet/minecraft/block/BlockState;)V
intermediary method_5622
Lnet/minecraft/class_1297;method_5622(Lnet/minecraft/class_2680;)V
official a
Lbvj;a(Ldxu;)V
-
createCooldownManager
- Overrides:
createCooldownManager
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named createCooldownManager
Lnet/minecraft/entity/player/PlayerEntity;createCooldownManager()Lnet/minecraft/entity/player/ItemCooldownManager;
intermediary method_7265
Lnet/minecraft/class_1657;method_7265()Lnet/minecraft/class_1796;
official g
Lcpw;g()Lcxl;
-
tick
public void tick()Ticks this entity.- Overrides:
tick
in classPlayerEntity
- See Also:
- API Note:
- This can be overridden to add additional logics.
super.tick();
should be called in those cases. - Implementation Note:
- By default, this delegates all logics to
LivingEntity.baseTick()
. - Mappings:
Namespace Name Mixin selector named tick
Lnet/minecraft/entity/Entity;tick()V
intermediary method_5773
Lnet/minecraft/class_1297;method_5773()V
official h
Lbvj;h()V
-
updateCreativeInteractionRangeModifiers
private void updateCreativeInteractionRangeModifiers()- Mappings:
Namespace Name Mixin selector named updateCreativeInteractionRangeModifiers
Lnet/minecraft/server/network/ServerPlayerEntity;updateCreativeInteractionRangeModifiers()V
intermediary method_55633
Lnet/minecraft/class_3222;method_55633()V
official gP
Lasi;gP()V
-
playerTick
public void playerTick()- Mappings:
Namespace Name Mixin selector named playerTick
Lnet/minecraft/server/network/ServerPlayerEntity;playerTick()V
intermediary method_14226
Lnet/minecraft/class_3222;method_14226()V
official i
Lasi;i()V
-
sendMapPacket
- Mappings:
Namespace Name Mixin selector named sendMapPacket
Lnet/minecraft/server/network/ServerPlayerEntity;sendMapPacket(Lnet/minecraft/item/ItemStack;)V
intermediary method_64134
Lnet/minecraft/class_3222;method_64134(Lnet/minecraft/class_1799;)V
official j
Lasi;j(Lcxo;)V
-
tickHunger
protected void tickHunger()- Overrides:
tickHunger
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named tickHunger
Lnet/minecraft/entity/player/PlayerEntity;tickHunger()V
intermediary method_64400
Lnet/minecraft/class_1657;method_64400()V
official j
Lcpw;j()V
-
onLanding
public void onLanding()Called when the entity lands on a block. -
tickFallStartPos
public void tickFallStartPos()- Mappings:
Namespace Name Mixin selector named tickFallStartPos
Lnet/minecraft/server/network/ServerPlayerEntity;tickFallStartPos()V
intermediary method_38786
Lnet/minecraft/class_3222;method_38786()V
official l
Lasi;l()V
-
tickVehicleInLavaRiding
public void tickVehicleInLavaRiding()- Mappings:
Namespace Name Mixin selector named tickVehicleInLavaRiding
Lnet/minecraft/server/network/ServerPlayerEntity;tickVehicleInLavaRiding()V
intermediary method_38787
Lnet/minecraft/class_3222;method_38787()V
official m
Lasi;m()V
-
updateScores
- Mappings:
Namespace Name Mixin selector named updateScores
Lnet/minecraft/server/network/ServerPlayerEntity;updateScores(Lnet/minecraft/scoreboard/ScoreboardCriterion;I)V
intermediary method_14212
Lnet/minecraft/class_3222;method_14212(Lnet/minecraft/class_274;I)V
official a
Lasi;a(Lfdf;I)V
-
onDeath
- Overrides:
onDeath
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named onDeath
Lnet/minecraft/entity/LivingEntity;onDeath(Lnet/minecraft/entity/damage/DamageSource;)V
intermediary method_6078
Lnet/minecraft/class_1309;method_6078(Lnet/minecraft/class_1282;)V
official a
Lbwf;a(Lbtz;)V
-
forgiveMobAnger
private void forgiveMobAnger()- Mappings:
Namespace Name Mixin selector named forgiveMobAnger
Lnet/minecraft/server/network/ServerPlayerEntity;forgiveMobAnger()V
intermediary method_29779
Lnet/minecraft/class_3222;method_29779()V
official gQ
Lasi;gQ()V
-
updateKilledAdvancementCriterion
public void updateKilledAdvancementCriterion(Entity entityKilled, int score, DamageSource damageSource) - Overrides:
updateKilledAdvancementCriterion
in classEntity
- Mappings:
Namespace Name Mixin selector named updateKilledAdvancementCriterion
Lnet/minecraft/entity/Entity;updateKilledAdvancementCriterion(Lnet/minecraft/entity/Entity;ILnet/minecraft/entity/damage/DamageSource;)V
intermediary method_5716
Lnet/minecraft/class_1297;method_5716(Lnet/minecraft/class_1297;ILnet/minecraft/class_1282;)V
official a
Lbvj;a(Lbvj;ILbtz;)V
-
updateScoreboardScore
private void updateScoreboardScore(ScoreHolder targetScoreHolder, ScoreHolder aboutScoreHolder, ScoreboardCriterion[] criterions) - Mappings:
Namespace Name Mixin selector named updateScoreboardScore
Lnet/minecraft/server/network/ServerPlayerEntity;updateScoreboardScore(Lnet/minecraft/scoreboard/ScoreHolder;Lnet/minecraft/scoreboard/ScoreHolder;[Lnet/minecraft/scoreboard/ScoreboardCriterion;)V
intermediary method_14227
Lnet/minecraft/class_3222;method_14227(Lnet/minecraft/class_9015;Lnet/minecraft/class_9015;[Lnet/minecraft/class_274;)V
official a
Lasi;a(Lfdb;Lfdb;[Lfdf;)V
-
damage
Applies a damage to this entity. The exact implementation differs between subclasses.LivingEntity
has 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
ItemEntity
also 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
isInvulnerableTo(net.minecraft.server.world.ServerWorld, net.minecraft.entity.damage.DamageSource)
and return early.- Overrides:
damage
in classPlayerEntity
- Returns:
- whether the entity was actually damaged
- See Also:
- Mappings:
Namespace Name Mixin selector named damage
Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;F)Z
intermediary method_64397
Lnet/minecraft/class_1297;method_64397(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;F)Z
official a
Lbvj;a(Lash;Lbtz;F)Z
-
shouldDamagePlayer
- Overrides:
shouldDamagePlayer
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named shouldDamagePlayer
Lnet/minecraft/entity/player/PlayerEntity;shouldDamagePlayer(Lnet/minecraft/entity/player/PlayerEntity;)Z
intermediary method_7256
Lnet/minecraft/class_1657;method_7256(Lnet/minecraft/class_1657;)Z
official a
Lcpw;a(Lcpw;)Z
-
isPvpEnabled
private boolean isPvpEnabled()- Mappings:
Namespace Name Mixin selector named isPvpEnabled
Lnet/minecraft/server/network/ServerPlayerEntity;isPvpEnabled()Z
intermediary method_14230
Lnet/minecraft/class_3222;method_14230()Z
official gR
Lasi;gR()Z
-
getRespawnTarget
public TeleportTarget getRespawnTarget(boolean alive, TeleportTarget.PostDimensionTransition postDimensionTransition) - Mappings:
Namespace Name Mixin selector named getRespawnTarget
Lnet/minecraft/server/network/ServerPlayerEntity;getRespawnTarget(ZLnet/minecraft/world/TeleportTarget$PostDimensionTransition;)Lnet/minecraft/world/TeleportTarget;
intermediary method_60590
Lnet/minecraft/class_3222;method_60590(ZLnet/minecraft/class_5454$class_9823;)Lnet/minecraft/class_5454;
official a
Lasi;a(ZLeuw$a;)Leuw;
-
findRespawnPosition
private static Optional<ServerPlayerEntity.RespawnPos> findRespawnPosition(ServerWorld world, BlockPos pos, float spawnAngle, boolean spawnForced, boolean alive) - Mappings:
Namespace Name Mixin selector named findRespawnPosition
Lnet/minecraft/server/network/ServerPlayerEntity;findRespawnPosition(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;FZZ)Ljava/util/Optional;
intermediary method_60588
Lnet/minecraft/class_3222;method_60588(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;FZZ)Ljava/util/Optional;
official a
Lasi;a(Lash;Ljh;FZZ)Ljava/util/Optional;
-
detachForDimensionChange
public void detachForDimensionChange()- Mappings:
Namespace Name Mixin selector named detachForDimensionChange
Lnet/minecraft/server/network/ServerPlayerEntity;detachForDimensionChange()V
intermediary method_60594
Lnet/minecraft/class_3222;method_60594()V
official n
Lasi;n()V
-
teleportTo
Description copied from class:Entity
Teleports this entity to another location, potentially in another world.Note if teleported to a different world, entities (excluding server player entities) are completely recreated at the destination.
- Overrides:
teleportTo
in classEntity
- Returns:
- the entity after teleporting
- Mappings:
Namespace Name Mixin selector named teleportTo
Lnet/minecraft/server/network/ServerPlayerEntity;teleportTo(Lnet/minecraft/world/TeleportTarget;)Lnet/minecraft/server/network/ServerPlayerEntity;
intermediary method_61275
Lnet/minecraft/class_3222;method_61275(Lnet/minecraft/class_5454;)Lnet/minecraft/class_3222;
official a
Lasi;a(Leuw;)Lasi;
-
rotate
public void rotate(float yaw, float pitch) -
worldChanged
- Mappings:
Namespace Name Mixin selector named worldChanged
Lnet/minecraft/server/network/ServerPlayerEntity;worldChanged(Lnet/minecraft/server/world/ServerWorld;)V
intermediary method_18783
Lnet/minecraft/class_3222;method_18783(Lnet/minecraft/class_3218;)V
official g
Lasi;g(Lash;)V
-
canBeSpectated
Returns whetherspectator
can spectate this entity.Spectator players (other than themselves) cannot be spectated.
- Overrides:
canBeSpectated
in classEntity
- Returns:
- whether
spectator
can spectate this entity - Mappings:
Namespace Name Mixin selector named canBeSpectated
Lnet/minecraft/entity/Entity;canBeSpectated(Lnet/minecraft/server/network/ServerPlayerEntity;)Z
intermediary method_5680
Lnet/minecraft/class_1297;method_5680(Lnet/minecraft/class_3222;)Z
official a
Lbvj;a(Lasi;)Z
-
sendPickup
- Overrides:
sendPickup
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named sendPickup
Lnet/minecraft/entity/LivingEntity;sendPickup(Lnet/minecraft/entity/Entity;I)V
intermediary method_6103
Lnet/minecraft/class_1309;method_6103(Lnet/minecraft/class_1297;I)V
official a
Lbwf;a(Lbvj;I)V
-
trySleep
public com.mojang.datafixers.util.Either<PlayerEntity.SleepFailureReason,Unit> trySleep(BlockPos pos) Tries to start sleeping on a block.- Overrides:
trySleep
in classPlayerEntity
- Parameters:
pos
- the position of the bed block- Returns:
- an
Either.Right
if successful, otherwise anEither.Left
containing the failure reason - Mappings:
Namespace Name Mixin selector named trySleep
Lnet/minecraft/entity/player/PlayerEntity;trySleep(Lnet/minecraft/util/math/BlockPos;)Lcom/mojang/datafixers/util/Either;
intermediary method_7269
Lnet/minecraft/class_1657;method_7269(Lnet/minecraft/class_2338;)Lcom/mojang/datafixers/util/Either;
official a
Lcpw;a(Ljh;)Lcom/mojang/datafixers/util/Either;
-
sleep
- Overrides:
sleep
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named sleep
Lnet/minecraft/entity/LivingEntity;sleep(Lnet/minecraft/util/math/BlockPos;)V
intermediary method_18403
Lnet/minecraft/class_1309;method_18403(Lnet/minecraft/class_2338;)V
official b
Lbwf;b(Ljh;)V
-
isBedWithinRange
- Mappings:
Namespace Name Mixin selector named isBedWithinRange
Lnet/minecraft/server/network/ServerPlayerEntity;isBedWithinRange(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
intermediary method_26285
Lnet/minecraft/class_3222;method_26285(Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Z
official a
Lasi;a(Ljh;Ljm;)Z
-
isBedWithinRange
- Mappings:
Namespace Name Mixin selector named isBedWithinRange
Lnet/minecraft/server/network/ServerPlayerEntity;isBedWithinRange(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_26287
Lnet/minecraft/class_3222;method_26287(Lnet/minecraft/class_2338;)Z
official i
Lasi;i(Ljh;)Z
-
isBedObstructed
- Mappings:
Namespace Name Mixin selector named isBedObstructed
Lnet/minecraft/server/network/ServerPlayerEntity;isBedObstructed(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
intermediary method_26286
Lnet/minecraft/class_3222;method_26286(Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Z
official b
Lasi;b(Ljh;Ljm;)Z
-
wakeUp
public void wakeUp(boolean skipSleepTimer, boolean updateSleepingPlayers) Wakes this player up.- Overrides:
wakeUp
in classPlayerEntity
- Parameters:
skipSleepTimer
- iftrue
, the sleep timer will be set straight to 0 instead of 100updateSleepingPlayers
- iftrue
and called on the logical server, sends sleeping status updates to all players- Mappings:
Namespace Name Mixin selector named wakeUp
Lnet/minecraft/entity/player/PlayerEntity;wakeUp(ZZ)V
intermediary method_7358
Lnet/minecraft/class_1657;method_7358(ZZ)V
official a
Lcpw;a(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:
requestTeleportAndDismount
in classEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named requestTeleportAndDismount
Lnet/minecraft/entity/Entity;requestTeleportAndDismount(DDD)V
intermediary method_33567
Lnet/minecraft/class_1297;method_33567(DDD)V
official a
Lbvj;a(DDD)V
-
isInvulnerableTo
- Overrides:
isInvulnerableTo
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named isInvulnerableTo
Lnet/minecraft/entity/LivingEntity;isInvulnerableTo(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;)Z
intermediary method_5679
Lnet/minecraft/class_1309;method_5679(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;)Z
official a
Lbwf;a(Lash;Lbtz;)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:
fall
in classLivingEntity
- Implementation Note:
- If on ground, this calls
Block.onLandedUpon(net.minecraft.world.World, net.minecraft.block.BlockState, net.minecraft.util.math.BlockPos, net.minecraft.entity.Entity, float)
, which can add or reduce fall damage, emitsGameEvent.HIT_GROUND
, then callsonLanding()
. Otherwise, ifheightDifference
is negative, it subtracts that value fromEntity.fallDistance
. - Mappings:
Namespace Name Mixin selector named fall
Lnet/minecraft/entity/Entity;fall(DZLnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)V
intermediary method_5623
Lnet/minecraft/class_1297;method_5623(DZLnet/minecraft/class_2680;Lnet/minecraft/class_2338;)V
official a
Lbvj;a(DZLdxu;Ljh;)V
-
applyMovementEffects
- Overrides:
applyMovementEffects
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named applyMovementEffects
Lnet/minecraft/entity/LivingEntity;applyMovementEffects(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)V
intermediary method_6126
Lnet/minecraft/class_1309;method_6126(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)V
official b
Lbwf;b(Lash;Ljh;)V
-
handleFall
public void handleFall(double xDifference, double yDifference, double zDifference, boolean onGround) - Mappings:
Namespace Name Mixin selector named handleFall
Lnet/minecraft/server/network/ServerPlayerEntity;handleFall(DDDZ)V
intermediary method_14207
Lnet/minecraft/class_3222;method_14207(DDDZ)V
official a
Lasi;a(DDDZ)V
-
onExplodedBy
- Overrides:
onExplodedBy
in classEntity
- Mappings:
Namespace Name Mixin selector named onExplodedBy
Lnet/minecraft/entity/Entity;onExplodedBy(Lnet/minecraft/entity/Entity;)V
intermediary method_56918
Lnet/minecraft/class_1297;method_56918(Lnet/minecraft/class_1297;)V
official b_
Lbvj;b_(Lbvj;)V
-
tickCramming
protected void tickCramming()- Overrides:
tickCramming
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named tickCramming
Lnet/minecraft/entity/LivingEntity;tickCramming()V
intermediary method_6070
Lnet/minecraft/class_1309;method_6070()V
official o
Lbwf;o()V
-
openEditSignScreen
- Overrides:
openEditSignScreen
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named openEditSignScreen
Lnet/minecraft/entity/player/PlayerEntity;openEditSignScreen(Lnet/minecraft/block/entity/SignBlockEntity;Z)V
intermediary method_7311
Lnet/minecraft/class_1657;method_7311(Lnet/minecraft/class_2625;Z)V
official a
Lcpw;a(Ldwj;Z)V
-
incrementScreenHandlerSyncId
private void incrementScreenHandlerSyncId()- Mappings:
Namespace Name Mixin selector named incrementScreenHandlerSyncId
Lnet/minecraft/server/network/ServerPlayerEntity;incrementScreenHandlerSyncId()V
intermediary method_14237
Lnet/minecraft/class_3222;method_14237()V
official gS
Lasi;gS()V
-
openHandledScreen
- Overrides:
openHandledScreen
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named openHandledScreen
Lnet/minecraft/entity/player/PlayerEntity;openHandledScreen(Lnet/minecraft/screen/NamedScreenHandlerFactory;)Ljava/util/OptionalInt;
intermediary method_17355
Lnet/minecraft/class_1657;method_17355(Lnet/minecraft/class_3908;)Ljava/util/OptionalInt;
official a
Lcpw;a(Lbtk;)Ljava/util/OptionalInt;
-
sendTradeOffers
public void sendTradeOffers(int syncId, TradeOfferList offers, int levelProgress, int experience, boolean leveled, boolean refreshable) - Overrides:
sendTradeOffers
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named sendTradeOffers
Lnet/minecraft/entity/player/PlayerEntity;sendTradeOffers(ILnet/minecraft/village/TradeOfferList;IIZZ)V
intermediary method_17354
Lnet/minecraft/class_1657;method_17354(ILnet/minecraft/class_1916;IIZZ)V
official a
Lcpw;a(ILdgf;IIZZ)V
-
openHorseInventory
- Overrides:
openHorseInventory
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named openHorseInventory
Lnet/minecraft/entity/player/PlayerEntity;openHorseInventory(Lnet/minecraft/entity/passive/AbstractHorseEntity;Lnet/minecraft/inventory/Inventory;)V
intermediary method_7291
Lnet/minecraft/class_1657;method_7291(Lnet/minecraft/class_1496;Lnet/minecraft/class_1263;)V
official a
Lcpw;a(Lcka;Lbtb;)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
book
for whether this is a written or a writable book.- Overrides:
useBook
in classPlayerEntity
- Parameters:
book
- the bookhand
- the hand holding the book- Implementation Note:
- The writing of a writable book in vanilla is totally controlled by
the client; the server cannot make the client open a book edit screen by
making a server player use a writable book. Only when the client finishes
writing a book it will send a book update C2S packet.
Meanwhile, the reading of a written book is totally controlled and initiated by the server.
- Mappings:
Namespace Name Mixin selector named useBook
Lnet/minecraft/entity/player/PlayerEntity;useBook(Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/Hand;)V
intermediary method_7315
Lnet/minecraft/class_1657;method_7315(Lnet/minecraft/class_1799;Lnet/minecraft/class_1268;)V
official a
Lcpw;a(Lcxo;Lbth;)V
-
openCommandBlockScreen
- Overrides:
openCommandBlockScreen
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named openCommandBlockScreen
Lnet/minecraft/entity/player/PlayerEntity;openCommandBlockScreen(Lnet/minecraft/block/entity/CommandBlockBlockEntity;)V
intermediary method_7323
Lnet/minecraft/class_1657;method_7323(Lnet/minecraft/class_2593;)V
official a
Lcpw;a(Ldvg;)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:
closeHandledScreen
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named closeHandledScreen
Lnet/minecraft/entity/player/PlayerEntity;closeHandledScreen()V
intermediary method_7346
Lnet/minecraft/class_1657;method_7346()V
official p
Lcpw;p()V
-
onHandledScreenClosed
public void onHandledScreenClosed()Runs closing tasks for the current screen handler and sets it to thePlayerEntity.playerScreenHandler
.- Overrides:
onHandledScreenClosed
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named onHandledScreenClosed
Lnet/minecraft/entity/player/PlayerEntity;onHandledScreenClosed()V
intermediary method_14247
Lnet/minecraft/class_1657;method_14247()V
official q
Lcpw;q()V
-
tickRiding
public void tickRiding()- Overrides:
tickRiding
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named tickRiding
Lnet/minecraft/entity/Entity;tickRiding()V
intermediary method_5842
Lnet/minecraft/class_1297;method_5842()V
official r
Lbvj;r()V
-
increaseTravelMotionStats
public void increaseTravelMotionStats(double deltaX, double deltaY, double deltaZ) - Mappings:
Namespace Name Mixin selector named increaseTravelMotionStats
Lnet/minecraft/server/network/ServerPlayerEntity;increaseTravelMotionStats(DDD)V
intermediary method_54720
Lnet/minecraft/class_3222;method_54720(DDD)V
official b
Lasi;b(DDD)V
-
increaseRidingMotionStats
private void increaseRidingMotionStats(double deltaX, double deltaY, double deltaZ) - Mappings:
Namespace Name Mixin selector named increaseRidingMotionStats
Lnet/minecraft/server/network/ServerPlayerEntity;increaseRidingMotionStats(DDD)V
intermediary method_54721
Lnet/minecraft/class_3222;method_54721(DDD)V
official q
Lasi;q(DDD)V
-
isZero
private static boolean isZero(double deltaX, double deltaY, double deltaZ) - Mappings:
Namespace Name Mixin selector named isZero
Lnet/minecraft/server/network/ServerPlayerEntity;isZero(DDD)Z
intermediary method_54722
Lnet/minecraft/class_3222;method_54722(DDD)Z
official r
Lasi;r(DDD)Z
-
increaseStat
- Overrides:
increaseStat
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named increaseStat
Lnet/minecraft/entity/player/PlayerEntity;increaseStat(Lnet/minecraft/stat/Stat;I)V
intermediary method_7342
Lnet/minecraft/class_1657;method_7342(Lnet/minecraft/class_3445;I)V
official a
Lcpw;a(Laxm;I)V
-
resetStat
- Overrides:
resetStat
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named resetStat
Lnet/minecraft/entity/player/PlayerEntity;resetStat(Lnet/minecraft/stat/Stat;)V
intermediary method_7266
Lnet/minecraft/class_1657;method_7266(Lnet/minecraft/class_3445;)V
official a
Lcpw;a(Laxm;)V
-
unlockRecipes
- Overrides:
unlockRecipes
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named unlockRecipes
Lnet/minecraft/entity/player/PlayerEntity;unlockRecipes(Ljava/util/Collection;)I
intermediary method_7254
Lnet/minecraft/class_1657;method_7254(Ljava/util/Collection;)I
official a
Lcpw;a(Ljava/util/Collection;)I
-
onRecipeCrafted
- Overrides:
onRecipeCrafted
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named onRecipeCrafted
Lnet/minecraft/entity/player/PlayerEntity;onRecipeCrafted(Lnet/minecraft/recipe/RecipeEntry;Ljava/util/List;)V
intermediary method_51283
Lnet/minecraft/class_1657;method_51283(Lnet/minecraft/class_8786;Ljava/util/List;)V
official a
Lcpw;a(Ldci;Ljava/util/List;)V
-
unlockRecipes
- Overrides:
unlockRecipes
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named unlockRecipes
Lnet/minecraft/entity/player/PlayerEntity;unlockRecipes(Ljava/util/List;)V
intermediary method_7335
Lnet/minecraft/class_1657;method_7335(Ljava/util/List;)V
official b
Lcpw;b(Ljava/util/List;)V
-
lockRecipes
- Overrides:
lockRecipes
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named lockRecipes
Lnet/minecraft/entity/player/PlayerEntity;lockRecipes(Ljava/util/Collection;)I
intermediary method_7333
Lnet/minecraft/class_1657;method_7333(Ljava/util/Collection;)I
official b
Lcpw;b(Ljava/util/Collection;)I
-
jump
public void jump()- Overrides:
jump
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named jump
Lnet/minecraft/entity/LivingEntity;jump()V
intermediary method_6043
Lnet/minecraft/class_1309;method_6043()V
official s
Lbwf;s()V
-
addExperience
public void addExperience(int experience) - Overrides:
addExperience
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named addExperience
Lnet/minecraft/entity/player/PlayerEntity;addExperience(I)V
intermediary method_7255
Lnet/minecraft/class_1657;method_7255(I)V
official d
Lcpw;d(I)V
-
onDisconnect
public void onDisconnect()- Mappings:
Namespace Name Mixin selector named onDisconnect
Lnet/minecraft/server/network/ServerPlayerEntity;onDisconnect()V
intermediary method_14231
Lnet/minecraft/class_3222;method_14231()V
official t
Lasi;t()V
-
isDisconnected
public boolean isDisconnected()- Mappings:
Namespace Name Mixin selector named isDisconnected
Lnet/minecraft/server/network/ServerPlayerEntity;isDisconnected()Z
intermediary method_14239
Lnet/minecraft/class_3222;method_14239()Z
official u
Lasi;u()Z
-
markHealthDirty
public void markHealthDirty()- Mappings:
Namespace Name Mixin selector named markHealthDirty
Lnet/minecraft/server/network/ServerPlayerEntity;markHealthDirty()V
intermediary method_14217
Lnet/minecraft/class_3222;method_14217()V
official v
Lasi;v()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:
sendMessage
in classPlayerEntity
- Parameters:
message
- the message to add- See Also:
- Mappings:
Namespace Name Mixin selector named sendMessage
Lnet/minecraft/entity/player/PlayerEntity;sendMessage(Lnet/minecraft/text/Text;Z)V
intermediary method_7353
Lnet/minecraft/class_1657;method_7353(Lnet/minecraft/class_2561;Z)V
official a
Lcpw;a(Lxv;Z)V
-
consumeItem
protected void consumeItem()- Overrides:
consumeItem
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named consumeItem
Lnet/minecraft/entity/LivingEntity;consumeItem()V
intermediary method_6040
Lnet/minecraft/class_1309;method_6040()V
official w
Lbwf;w()V
-
lookAt
Changes this entity's pitch and yaw to look attarget
.- Overrides:
lookAt
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named lookAt
Lnet/minecraft/entity/Entity;lookAt(Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;Lnet/minecraft/util/math/Vec3d;)V
intermediary method_5702
Lnet/minecraft/class_1297;method_5702(Lnet/minecraft/class_2183$class_2184;Lnet/minecraft/class_243;)V
official a
Lbvj;a(Lfi$a;Lfbx;)V
-
lookAtEntity
public void lookAtEntity(EntityAnchorArgumentType.EntityAnchor anchorPoint, Entity targetEntity, EntityAnchorArgumentType.EntityAnchor targetAnchor) - Mappings:
Namespace Name Mixin selector named lookAtEntity
Lnet/minecraft/server/network/ServerPlayerEntity;lookAtEntity(Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;Lnet/minecraft/entity/Entity;Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;)V
intermediary method_14222
Lnet/minecraft/class_3222;method_14222(Lnet/minecraft/class_2183$class_2184;Lnet/minecraft/class_1297;Lnet/minecraft/class_2183$class_2184;)V
official a
Lasi;a(Lfi$a;Lbvj;Lfi$a;)V
-
copyFrom
- Mappings:
Namespace Name Mixin selector named copyFrom
Lnet/minecraft/server/network/ServerPlayerEntity;copyFrom(Lnet/minecraft/server/network/ServerPlayerEntity;Z)V
intermediary method_14203
Lnet/minecraft/class_3222;method_14203(Lnet/minecraft/class_3222;Z)V
official a
Lasi;a(Lasi;Z)V
-
onStatusEffectApplied
protected void onStatusEffectApplied(StatusEffectInstance effect, @Nullable @Nullable Entity source) - Overrides:
onStatusEffectApplied
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named onStatusEffectApplied
Lnet/minecraft/entity/LivingEntity;onStatusEffectApplied(Lnet/minecraft/entity/effect/StatusEffectInstance;Lnet/minecraft/entity/Entity;)V
intermediary method_6020
Lnet/minecraft/class_1309;method_6020(Lnet/minecraft/class_1293;Lnet/minecraft/class_1297;)V
official a
Lbwf;a(Lbuo;Lbvj;)V
-
onStatusEffectUpgraded
protected void onStatusEffectUpgraded(StatusEffectInstance effect, boolean reapplyEffect, @Nullable @Nullable Entity source) - Overrides:
onStatusEffectUpgraded
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named onStatusEffectUpgraded
Lnet/minecraft/entity/LivingEntity;onStatusEffectUpgraded(Lnet/minecraft/entity/effect/StatusEffectInstance;ZLnet/minecraft/entity/Entity;)V
intermediary method_6009
Lnet/minecraft/class_1309;method_6009(Lnet/minecraft/class_1293;ZLnet/minecraft/class_1297;)V
official a
Lbwf;a(Lbuo;ZLbvj;)V
-
onStatusEffectsRemoved
- Overrides:
onStatusEffectsRemoved
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named onStatusEffectsRemoved
Lnet/minecraft/entity/LivingEntity;onStatusEffectsRemoved(Ljava/util/Collection;)V
intermediary method_6129
Lnet/minecraft/class_1309;method_6129(Ljava/util/Collection;)V
official c
Lbwf;c(Ljava/util/Collection;)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:
requestTeleport
in classEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named requestTeleport
Lnet/minecraft/entity/Entity;requestTeleport(DDD)V
intermediary method_5859
Lnet/minecraft/class_1297;method_5859(DDD)V
official c
Lbvj;c(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:
requestTeleportOffset
in classEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named requestTeleportOffset
Lnet/minecraft/entity/Entity;requestTeleportOffset(DDD)V
intermediary method_45166
Lnet/minecraft/class_1297;method_45166(DDD)V
official d
Lbvj;d(DDD)V
-
teleport
public boolean teleport(ServerWorld world, double destX, double destY, double destZ, Set<PositionFlag> flags, float yaw, float pitch, boolean resetCamera) Teleports the entity to the given position. Ifworld
differs from the current world, it copies the entity and discards the current one.- Overrides:
teleport
in classEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named teleport
Lnet/minecraft/entity/Entity;teleport(Lnet/minecraft/server/world/ServerWorld;DDDLjava/util/Set;FFZ)Z
intermediary method_48105
Lnet/minecraft/class_1297;method_48105(Lnet/minecraft/class_3218;DDDLjava/util/Set;FFZ)Z
official a
Lbvj;a(Lash;DDDLjava/util/Set;FFZ)Z
-
refreshPositionAfterTeleport
public void refreshPositionAfterTeleport(double x, double y, double z) - Overrides:
refreshPositionAfterTeleport
in classEntity
- Mappings:
Namespace Name Mixin selector named refreshPositionAfterTeleport
Lnet/minecraft/entity/Entity;refreshPositionAfterTeleport(DDD)V
intermediary method_24203
Lnet/minecraft/class_1297;method_24203(DDD)V
official e
Lbvj;e(DDD)V
-
addCritParticles
- Overrides:
addCritParticles
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named addCritParticles
Lnet/minecraft/entity/player/PlayerEntity;addCritParticles(Lnet/minecraft/entity/Entity;)V
intermediary method_7277
Lnet/minecraft/class_1657;method_7277(Lnet/minecraft/class_1297;)V
official b
Lcpw;b(Lbvj;)V
-
addEnchantedHitParticles
- Overrides:
addEnchantedHitParticles
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named addEnchantedHitParticles
Lnet/minecraft/entity/player/PlayerEntity;addEnchantedHitParticles(Lnet/minecraft/entity/Entity;)V
intermediary method_7304
Lnet/minecraft/class_1657;method_7304(Lnet/minecraft/class_1297;)V
official c
Lcpw;c(Lbvj;)V
-
sendAbilitiesUpdate
public void sendAbilitiesUpdate()- Overrides:
sendAbilitiesUpdate
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named sendAbilitiesUpdate
Lnet/minecraft/entity/player/PlayerEntity;sendAbilitiesUpdate()V
intermediary method_7355
Lnet/minecraft/class_1657;method_7355()V
official x
Lcpw;x()V
-
getServerWorld
- Mappings:
Namespace Name Mixin selector named getServerWorld
Lnet/minecraft/server/network/ServerPlayerEntity;getServerWorld()Lnet/minecraft/server/world/ServerWorld;
intermediary method_51469
Lnet/minecraft/class_3222;method_51469()Lnet/minecraft/class_3218;
official y
Lasi;y()Lash;
-
changeGameMode
- Mappings:
Namespace Name Mixin selector named changeGameMode
Lnet/minecraft/server/network/ServerPlayerEntity;changeGameMode(Lnet/minecraft/world/GameMode;)Z
intermediary method_7336
Lnet/minecraft/class_3222;method_7336(Lnet/minecraft/class_1934;)Z
official a
Lasi;a(Ldhe;)Z
-
isSpectator
public boolean isSpectator()Returns whether the entity is a spectator.This returns
false
unless the entity is a player in spectator game mode.- Specified by:
isSpectator
in classPlayerEntity
- Returns:
- whether the entity is a spectator
- Mappings:
Namespace Name Mixin selector named isSpectator
Lnet/minecraft/entity/Entity;isSpectator()Z
intermediary method_7325
Lnet/minecraft/class_1297;method_7325()Z
official aa_
Lbvj;aa_()Z
-
isCreative
public boolean isCreative()Returns whether this player is in creative mode.- Specified by:
isCreative
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named isCreative
Lnet/minecraft/entity/player/PlayerEntity;isCreative()Z
intermediary method_7337
Lnet/minecraft/class_1657;method_7337()Z
official b
Lcpw;b()Z
-
getCommandOutput
- Mappings:
Namespace Name Mixin selector named getCommandOutput
Lnet/minecraft/server/network/ServerPlayerEntity;getCommandOutput()Lnet/minecraft/server/command/CommandOutput;
intermediary method_64401
Lnet/minecraft/class_3222;method_64401()Lnet/minecraft/class_2165;
official z
Lasi;z()Lev;
-
getCommandSource
- Mappings:
Namespace Name Mixin selector named getCommandSource
Lnet/minecraft/server/network/ServerPlayerEntity;getCommandSource()Lnet/minecraft/server/command/ServerCommandSource;
intermediary method_64396
Lnet/minecraft/class_3222;method_64396()Lnet/minecraft/class_2168;
official A
Lasi;A()Lew;
-
sendMessage
- Mappings:
Namespace Name Mixin selector named sendMessage
Lnet/minecraft/server/network/ServerPlayerEntity;sendMessage(Lnet/minecraft/text/Text;)V
intermediary method_64398
Lnet/minecraft/class_3222;method_64398(Lnet/minecraft/class_2561;)V
official a
Lasi;a(Lxv;)V
-
sendMessageToClient
- Mappings:
Namespace Name Mixin selector named sendMessageToClient
Lnet/minecraft/server/network/ServerPlayerEntity;sendMessageToClient(Lnet/minecraft/text/Text;Z)V
intermediary method_43502
Lnet/minecraft/class_3222;method_43502(Lnet/minecraft/class_2561;Z)V
official b
Lasi;b(Lxv;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 named sendChatMessage
Lnet/minecraft/server/network/ServerPlayerEntity;sendChatMessage(Lnet/minecraft/network/message/SentMessage;ZLnet/minecraft/network/message/MessageType$Parameters;)V
intermediary method_43505
Lnet/minecraft/class_3222;method_43505(Lnet/minecraft/class_7604;ZLnet/minecraft/class_2556$class_7602;)V
official a
Lasi;a(Lyk;ZLxr$a;)V
-
getIp
- Mappings:
Namespace Name Mixin selector named getIp
Lnet/minecraft/server/network/ServerPlayerEntity;getIp()Ljava/lang/String;
intermediary method_14209
Lnet/minecraft/class_3222;method_14209()Ljava/lang/String;
official B
Lasi;B()Ljava/lang/String;
-
setClientOptions
- Mappings:
Namespace Name Mixin selector named setClientOptions
Lnet/minecraft/server/network/ServerPlayerEntity;setClientOptions(Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;)V
intermediary method_14213
Lnet/minecraft/class_3222;method_14213(Lnet/minecraft/class_8791;)V
official a
Lasi;a(Lars;)V
-
getClientOptions
- Mappings:
Namespace Name Mixin selector named getClientOptions
Lnet/minecraft/server/network/ServerPlayerEntity;getClientOptions()Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;
intermediary method_53823
Lnet/minecraft/class_3222;method_53823()Lnet/minecraft/class_8791;
official C
Lasi;C()Lars;
-
areClientChatColorsEnabled
public boolean areClientChatColorsEnabled()- Mappings:
Namespace Name Mixin selector named areClientChatColorsEnabled
Lnet/minecraft/server/network/ServerPlayerEntity;areClientChatColorsEnabled()Z
intermediary method_34879
Lnet/minecraft/class_3222;method_34879()Z
official D
Lasi;D()Z
-
getClientChatVisibility
- Mappings:
Namespace Name Mixin selector named getClientChatVisibility
Lnet/minecraft/server/network/ServerPlayerEntity;getClientChatVisibility()Lnet/minecraft/network/message/ChatVisibility;
intermediary method_14238
Lnet/minecraft/class_3222;method_14238()Lnet/minecraft/class_1659;
official E
Lasi;E()Lcpt;
-
acceptsMessage
private boolean acceptsMessage(boolean overlay) - Mappings:
Namespace Name Mixin selector named acceptsMessage
Lnet/minecraft/server/network/ServerPlayerEntity;acceptsMessage(Z)Z
intermediary method_44707
Lnet/minecraft/class_3222;method_44707(Z)Z
official x
Lasi;x(Z)Z
-
acceptsChatMessage
private boolean acceptsChatMessage()- Mappings:
Namespace Name Mixin selector named acceptsChatMessage
Lnet/minecraft/server/network/ServerPlayerEntity;acceptsChatMessage()Z
intermediary method_44706
Lnet/minecraft/class_3222;method_44706()Z
official gT
Lasi;gT()Z
-
getViewDistance
public int getViewDistance()- Mappings:
Namespace Name Mixin selector named getViewDistance
Lnet/minecraft/server/network/ServerPlayerEntity;getViewDistance()I
intermediary method_52371
Lnet/minecraft/class_3222;method_52371()I
official F
Lasi;F()I
-
sendServerMetadata
- Mappings:
Namespace Name Mixin selector named sendServerMetadata
Lnet/minecraft/server/network/ServerPlayerEntity;sendServerMetadata(Lnet/minecraft/server/ServerMetadata;)V
intermediary method_43930
Lnet/minecraft/class_3222;method_43930(Lnet/minecraft/class_2926;)V
official a
Lasi;a(Lakw;)V
-
getPermissionLevel
protected int getPermissionLevel()- Overrides:
getPermissionLevel
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named getPermissionLevel
Lnet/minecraft/entity/player/PlayerEntity;getPermissionLevel()I
intermediary method_5691
Lnet/minecraft/class_1657;method_5691()I
official G
Lcpw;G()I
-
updateLastActionTime
public void updateLastActionTime()- Mappings:
Namespace Name Mixin selector named updateLastActionTime
Lnet/minecraft/server/network/ServerPlayerEntity;updateLastActionTime()V
intermediary method_14234
Lnet/minecraft/class_3222;method_14234()V
official H
Lasi;H()V
-
getStatHandler
- Mappings:
Namespace Name Mixin selector named getStatHandler
Lnet/minecraft/server/network/ServerPlayerEntity;getStatHandler()Lnet/minecraft/stat/ServerStatHandler;
intermediary method_14248
Lnet/minecraft/class_3222;method_14248()Lnet/minecraft/class_3442;
official I
Lasi;I()Laxl;
-
getRecipeBook
- Mappings:
Namespace Name Mixin selector named getRecipeBook
Lnet/minecraft/server/network/ServerPlayerEntity;getRecipeBook()Lnet/minecraft/server/network/ServerRecipeBook;
intermediary method_14253
Lnet/minecraft/class_3222;method_14253()Lnet/minecraft/class_3441;
official J
Lasi;J()Laxk;
-
updatePotionVisibility
protected void updatePotionVisibility()- Overrides:
updatePotionVisibility
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named updatePotionVisibility
Lnet/minecraft/entity/LivingEntity;updatePotionVisibility()V
intermediary method_6027
Lnet/minecraft/class_1309;method_6027()V
official K
Lbwf;K()V
-
getCameraEntity
- Mappings:
Namespace Name Mixin selector named getCameraEntity
Lnet/minecraft/server/network/ServerPlayerEntity;getCameraEntity()Lnet/minecraft/entity/Entity;
intermediary method_14242
Lnet/minecraft/class_3222;method_14242()Lnet/minecraft/class_1297;
official L
Lasi;L()Lbvj;
-
setCameraEntity
- Mappings:
Namespace Name Mixin selector named setCameraEntity
Lnet/minecraft/server/network/ServerPlayerEntity;setCameraEntity(Lnet/minecraft/entity/Entity;)V
intermediary method_14224
Lnet/minecraft/class_3222;method_14224(Lnet/minecraft/class_1297;)V
official d
Lasi;d(Lbvj;)V
-
tickPortalCooldown
protected void tickPortalCooldown()- Overrides:
tickPortalCooldown
in classEntity
- Mappings:
Namespace Name Mixin selector named tickPortalCooldown
Lnet/minecraft/entity/Entity;tickPortalCooldown()V
intermediary method_5760
Lnet/minecraft/class_1297;method_5760()V
official M
Lbvj;M()V
-
attack
- Overrides:
attack
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named attack
Lnet/minecraft/entity/player/PlayerEntity;attack(Lnet/minecraft/entity/Entity;)V
intermediary method_7324
Lnet/minecraft/class_1657;method_7324(Lnet/minecraft/class_1297;)V
official e
Lcpw;e(Lbvj;)V
-
getLastActionTime
public long getLastActionTime()- Mappings:
Namespace Name Mixin selector named getLastActionTime
Lnet/minecraft/server/network/ServerPlayerEntity;getLastActionTime()J
intermediary method_14219
Lnet/minecraft/class_3222;method_14219()J
official N
Lasi;N()J
-
getPlayerListName
- Mappings:
Namespace Name Mixin selector named getPlayerListName
Lnet/minecraft/server/network/ServerPlayerEntity;getPlayerListName()Lnet/minecraft/text/Text;
intermediary method_14206
Lnet/minecraft/class_3222;method_14206()Lnet/minecraft/class_2561;
official O
Lasi;O()Lxv;
-
getPlayerListOrder
public int getPlayerListOrder()- Mappings:
Namespace Name Mixin selector named getPlayerListOrder
Lnet/minecraft/server/network/ServerPlayerEntity;getPlayerListOrder()I
intermediary method_61272
Lnet/minecraft/class_3222;method_61272()I
official P
Lasi;P()I
-
swingHand
- Overrides:
swingHand
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named swingHand
Lnet/minecraft/entity/LivingEntity;swingHand(Lnet/minecraft/util/Hand;)V
intermediary method_6104
Lnet/minecraft/class_1309;method_6104(Lnet/minecraft/class_1268;)V
official a
Lbwf;a(Lbth;)V
-
isInTeleportationState
public boolean isInTeleportationState()- Mappings:
Namespace Name Mixin selector named isInTeleportationState
Lnet/minecraft/server/network/ServerPlayerEntity;isInTeleportationState()Z
intermediary method_14208
Lnet/minecraft/class_3222;method_14208()Z
official Q
Lasi;Q()Z
-
onTeleportationDone
public void onTeleportationDone()- Mappings:
Namespace Name Mixin selector named onTeleportationDone
Lnet/minecraft/server/network/ServerPlayerEntity;onTeleportationDone()V
intermediary method_14240
Lnet/minecraft/class_3222;method_14240()V
official R
Lasi;R()V
-
getAdvancementTracker
- Mappings:
Namespace Name Mixin selector named getAdvancementTracker
Lnet/minecraft/server/network/ServerPlayerEntity;getAdvancementTracker()Lnet/minecraft/advancement/PlayerAdvancementTracker;
intermediary method_14236
Lnet/minecraft/class_3222;method_14236()Lnet/minecraft/class_2985;
official S
Lasi;S()Lamh;
-
getSpawnPointPosition
- Mappings:
Namespace Name Mixin selector named getSpawnPointPosition
Lnet/minecraft/server/network/ServerPlayerEntity;getSpawnPointPosition()Lnet/minecraft/util/math/BlockPos;
intermediary method_26280
Lnet/minecraft/class_3222;method_26280()Lnet/minecraft/class_2338;
official T
Lasi;T()Ljh;
-
getSpawnAngle
public float getSpawnAngle()- Mappings:
Namespace Name Mixin selector named getSpawnAngle
Lnet/minecraft/server/network/ServerPlayerEntity;getSpawnAngle()F
intermediary method_30631
Lnet/minecraft/class_3222;method_30631()F
official U
Lasi;U()F
-
getSpawnPointDimension
- Mappings:
Namespace Name Mixin selector named getSpawnPointDimension
Lnet/minecraft/server/network/ServerPlayerEntity;getSpawnPointDimension()Lnet/minecraft/registry/RegistryKey;
intermediary method_26281
Lnet/minecraft/class_3222;method_26281()Lnet/minecraft/class_5321;
official V
Lasi;V()Laly;
-
isSpawnForced
public boolean isSpawnForced()- Mappings:
Namespace Name Mixin selector named isSpawnForced
Lnet/minecraft/server/network/ServerPlayerEntity;isSpawnForced()Z
intermediary method_26282
Lnet/minecraft/class_3222;method_26282()Z
official W
Lasi;W()Z
-
setSpawnPointFrom
- Mappings:
Namespace Name Mixin selector named setSpawnPointFrom
Lnet/minecraft/server/network/ServerPlayerEntity;setSpawnPointFrom(Lnet/minecraft/server/network/ServerPlayerEntity;)V
intermediary method_60592
Lnet/minecraft/class_3222;method_60592(Lnet/minecraft/class_3222;)V
official b
Lasi;b(Lasi;)V
-
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, ornull
if 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 named setSpawnPoint
Lnet/minecraft/server/network/ServerPlayerEntity;setSpawnPoint(Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/util/math/BlockPos;FZZ)V
intermediary method_26284
Lnet/minecraft/class_3222;method_26284(Lnet/minecraft/class_5321;Lnet/minecraft/class_2338;FZZ)V
official a
Lasi;a(Laly;Ljh;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 named getWatchedSection
Lnet/minecraft/server/network/ServerPlayerEntity;getWatchedSection()Lnet/minecraft/util/math/ChunkSectionPos;
intermediary method_14232
Lnet/minecraft/class_3222;method_14232()Lnet/minecraft/class_4076;
official X
Lasi;X()Lkj;
-
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 named setWatchedSection
Lnet/minecraft/server/network/ServerPlayerEntity;setWatchedSection(Lnet/minecraft/util/math/ChunkSectionPos;)V
intermediary method_17668
Lnet/minecraft/class_3222;method_17668(Lnet/minecraft/class_4076;)V
official a
Lasi;a(Lkj;)V
-
getChunkFilter
- Mappings:
Namespace Name Mixin selector named getChunkFilter
Lnet/minecraft/server/network/ServerPlayerEntity;getChunkFilter()Lnet/minecraft/server/network/ChunkFilter;
intermediary method_52372
Lnet/minecraft/class_3222;method_52372()Lnet/minecraft/class_8603;
official Y
Lasi;Y()Larr;
-
setChunkFilter
- Mappings:
Namespace Name Mixin selector named setChunkFilter
Lnet/minecraft/server/network/ServerPlayerEntity;setChunkFilter(Lnet/minecraft/server/network/ChunkFilter;)V
intermediary method_52373
Lnet/minecraft/class_3222;method_52373(Lnet/minecraft/class_8603;)V
official a
Lasi;a(Larr;)V
-
playSoundToPlayer
Playssound
to this player only.Use
PlayerEntity.playSound(SoundEvent, float, float)
to play sound that can be heard by nearby players. Unlike that method, this method should be called on only one side (i.e. either the server or the client, alone).- Overrides:
playSoundToPlayer
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named playSoundToPlayer
Lnet/minecraft/entity/player/PlayerEntity;playSoundToPlayer(Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FF)V
intermediary method_17356
Lnet/minecraft/class_1657;method_17356(Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;FF)V
official a
Lcpw;a(Laxe;Laxg;FF)V
-
dropItem
- Overrides:
dropItem
in 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 named dropItem
Lnet/minecraft/entity/player/PlayerEntity;dropItem(Lnet/minecraft/item/ItemStack;ZZ)Lnet/minecraft/entity/ItemEntity;
intermediary method_7329
Lnet/minecraft/class_1657;method_7329(Lnet/minecraft/class_1799;ZZ)Lnet/minecraft/class_1542;
official a
Lcpw;a(Lcxo;ZZ)Lcma;
-
dropPlayerItem
@Nullable private @Nullable ItemEntity dropPlayerItem(ItemStack stack, boolean throwRandomly, boolean retainOwnership) - Mappings:
Namespace Name Mixin selector named dropPlayerItem
Lnet/minecraft/server/network/ServerPlayerEntity;dropPlayerItem(Lnet/minecraft/item/ItemStack;ZZ)Lnet/minecraft/entity/ItemEntity;
intermediary method_61277
Lnet/minecraft/class_3222;method_61277(Lnet/minecraft/class_1799;ZZ)Lnet/minecraft/class_1542;
official b
Lasi;b(Lcxo;ZZ)Lcma;
-
getTextStream
- Mappings:
Namespace Name Mixin selector named getTextStream
Lnet/minecraft/server/network/ServerPlayerEntity;getTextStream()Lnet/minecraft/server/filter/TextStream;
intermediary method_31273
Lnet/minecraft/class_3222;method_31273()Lnet/minecraft/class_5513;
official Z
Lasi;Z()Latq;
-
setServerWorld
- Mappings:
Namespace Name Mixin selector named setServerWorld
Lnet/minecraft/server/network/ServerPlayerEntity;setServerWorld(Lnet/minecraft/server/world/ServerWorld;)V
intermediary method_51468
Lnet/minecraft/class_3222;method_51468(Lnet/minecraft/class_3218;)V
official a
Lasi;a(Lash;)V
-
gameModeFromNbt
@Nullable private static @Nullable GameMode gameModeFromNbt(@Nullable @Nullable NbtCompound nbt, String key) - Mappings:
Namespace Name Mixin selector named gameModeFromNbt
Lnet/minecraft/server/network/ServerPlayerEntity;gameModeFromNbt(Lnet/minecraft/nbt/NbtCompound;Ljava/lang/String;)Lnet/minecraft/world/GameMode;
intermediary method_32745
Lnet/minecraft/class_3222;method_32745(Lnet/minecraft/class_2487;Ljava/lang/String;)Lnet/minecraft/class_1934;
official a
Lasi;a(Lux;Ljava/lang/String;)Ldhe;
-
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
backupGameMode
if notnull
, or the server's default game mode otherwise.- See Also:
- Mappings:
Namespace Name Mixin selector named getServerGameMode
Lnet/minecraft/server/network/ServerPlayerEntity;getServerGameMode(Lnet/minecraft/world/GameMode;)Lnet/minecraft/world/GameMode;
intermediary method_32746
Lnet/minecraft/class_3222;method_32746(Lnet/minecraft/class_1934;)Lnet/minecraft/class_1934;
official b
Lasi;b(Ldhe;)Ldhe;
-
readGameModeNbt
- Mappings:
Namespace Name Mixin selector named readGameModeNbt
Lnet/minecraft/server/network/ServerPlayerEntity;readGameModeNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_32748
Lnet/minecraft/class_3222;method_32748(Lnet/minecraft/class_2487;)V
official c
Lasi;c(Lux;)V
-
writeGameModeNbt
- Mappings:
Namespace Name Mixin selector named writeGameModeNbt
Lnet/minecraft/server/network/ServerPlayerEntity;writeGameModeNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_32749
Lnet/minecraft/class_3222;method_32749(Lnet/minecraft/class_2487;)V
official m
Lasi;m(Lux;)V
-
shouldFilterText
public boolean shouldFilterText()- Overrides:
shouldFilterText
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named shouldFilterText
Lnet/minecraft/entity/player/PlayerEntity;shouldFilterText()Z
intermediary method_33793
Lnet/minecraft/class_1657;method_33793()Z
official aa
Lcpw;aa()Z
-
shouldFilterMessagesSentTo
- Mappings:
Namespace Name Mixin selector named shouldFilterMessagesSentTo
Lnet/minecraft/server/network/ServerPlayerEntity;shouldFilterMessagesSentTo(Lnet/minecraft/server/network/ServerPlayerEntity;)Z
intermediary method_33795
Lnet/minecraft/class_3222;method_33795(Lnet/minecraft/class_3222;)Z
official c
Lasi;c(Lasi;)Z
-
canModifyAt
Returns whether the entity can modify the world atpos
.This returns
true
for 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.ProjectileEntity
delegates 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:
canModifyAt
in classEntity
- Returns:
- whether the entity can modify the world at
pos
- See Also:
- Mappings:
Namespace Name Mixin selector named canModifyAt
Lnet/minecraft/entity/Entity;canModifyAt(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_36971
Lnet/minecraft/class_1297;method_36971(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Z
official c
Lbvj;c(Lash;Ljh;)Z
-
tickItemStackUsage
- Overrides:
tickItemStackUsage
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named tickItemStackUsage
Lnet/minecraft/entity/LivingEntity;tickItemStackUsage(Lnet/minecraft/item/ItemStack;)V
intermediary method_37119
Lnet/minecraft/class_1309;method_37119(Lnet/minecraft/class_1799;)V
official a
Lbwf;a(Lcxo;)V
-
dropSelectedItem
public boolean dropSelectedItem(boolean entireStack) - Mappings:
Namespace Name Mixin selector named dropSelectedItem
Lnet/minecraft/server/network/ServerPlayerEntity;dropSelectedItem(Z)Z
intermediary method_37413
Lnet/minecraft/class_3222;method_37413(Z)Z
official a
Lasi;a(Z)Z
-
giveOrDropStack
- Overrides:
giveOrDropStack
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named giveOrDropStack
Lnet/minecraft/entity/LivingEntity;giveOrDropStack(Lnet/minecraft/item/ItemStack;)V
intermediary method_64399
Lnet/minecraft/class_1309;method_64399(Lnet/minecraft/class_1799;)V
official b
Lbwf;b(Lcxo;)V
-
allowsServerListing
public boolean allowsServerListing()- Mappings:
Namespace Name Mixin selector named allowsServerListing
Lnet/minecraft/server/network/ServerPlayerEntity;allowsServerListing()Z
intermediary method_39426
Lnet/minecraft/class_3222;method_39426()Z
official ab
Lasi;ab()Z
-
getSculkShriekerWarningManager
- Overrides:
getSculkShriekerWarningManager
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named getSculkShriekerWarningManager
Lnet/minecraft/entity/player/PlayerEntity;getSculkShriekerWarningManager()Ljava/util/Optional;
intermediary method_42272
Lnet/minecraft/class_1657;method_42272()Ljava/util/Optional;
official ac
Lcpw;ac()Ljava/util/Optional;
-
setSpawnExtraParticlesOnFall
public void setSpawnExtraParticlesOnFall(boolean spawnExtraParticlesOnFall) - Mappings:
Namespace Name Mixin selector named setSpawnExtraParticlesOnFall
Lnet/minecraft/server/network/ServerPlayerEntity;setSpawnExtraParticlesOnFall(Z)V
intermediary method_58143
Lnet/minecraft/class_3222;method_58143(Z)V
official b
Lasi;b(Z)V
-
triggerItemPickedUpByEntityCriteria
Called to trigger advancement criteria when an entity picks up an item thrown by a player.- Overrides:
triggerItemPickedUpByEntityCriteria
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named triggerItemPickedUpByEntityCriteria
Lnet/minecraft/entity/LivingEntity;triggerItemPickedUpByEntityCriteria(Lnet/minecraft/entity/ItemEntity;)V
intermediary method_29499
Lnet/minecraft/class_1309;method_29499(Lnet/minecraft/class_1542;)V
official a
Lbwf;a(Lcma;)V
-
setSession
- Mappings:
Namespace Name Mixin selector named setSession
Lnet/minecraft/server/network/ServerPlayerEntity;setSession(Lnet/minecraft/network/encryption/PublicPlayerSession;)V
intermediary method_46364
Lnet/minecraft/class_3222;method_46364(Lnet/minecraft/class_7822;)V
official a
Lasi;a(Lym;)V
-
getSession
- Mappings:
Namespace Name Mixin selector named getSession
Lnet/minecraft/server/network/ServerPlayerEntity;getSession()Lnet/minecraft/network/encryption/PublicPlayerSession;
intermediary method_45163
Lnet/minecraft/class_3222;method_45163()Lnet/minecraft/class_7822;
official ad
Lasi;ad()Lym;
-
tiltScreen
public void tiltScreen(double deltaX, double deltaZ) - Overrides:
tiltScreen
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named tiltScreen
Lnet/minecraft/entity/LivingEntity;tiltScreen(DD)V
intermediary method_48761
Lnet/minecraft/class_1309;method_48761(DD)V
official a
Lbwf;a(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
force
istrue
. If this entity is already riding another entity, it will stop riding that entity first.- Overrides:
startRiding
in 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 named startRiding
Lnet/minecraft/entity/Entity;startRiding(Lnet/minecraft/entity/Entity;Z)Z
intermediary method_5873
Lnet/minecraft/class_1297;method_5873(Lnet/minecraft/class_1297;Z)Z
official a
Lbvj;a(Lbvj;Z)Z
-
stopRiding
public void stopRiding()Stops riding the vehicle if present.For example, if
player
is riding on a horse,player.stopRiding()
will dismount that player from the horse.- Overrides:
stopRiding
in classLivingEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named stopRiding
Lnet/minecraft/entity/Entity;stopRiding()V
intermediary method_5848
Lnet/minecraft/class_1297;method_5848()V
official ae
Lbvj;ae()V
-
createCommonPlayerSpawnInfo
- Mappings:
Namespace Name Mixin selector named createCommonPlayerSpawnInfo
Lnet/minecraft/server/network/ServerPlayerEntity;createCommonPlayerSpawnInfo(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/network/packet/s2c/play/CommonPlayerSpawnInfo;
intermediary method_52374
Lnet/minecraft/class_3222;method_52374(Lnet/minecraft/class_3218;)Lnet/minecraft/class_8589;
official b
Lasi;b(Lash;)Lahh;
-
setStartRaidPos
- Mappings:
Namespace Name Mixin selector named setStartRaidPos
Lnet/minecraft/server/network/ServerPlayerEntity;setStartRaidPos(Lnet/minecraft/util/math/BlockPos;)V
intermediary method_58586
Lnet/minecraft/class_3222;method_58586(Lnet/minecraft/class_2338;)V
official c
Lasi;c(Ljh;)V
-
clearStartRaidPos
public void clearStartRaidPos()- Mappings:
Namespace Name Mixin selector named clearStartRaidPos
Lnet/minecraft/server/network/ServerPlayerEntity;clearStartRaidPos()V
intermediary method_58584
Lnet/minecraft/class_3222;method_58584()V
official af
Lasi;af()V
-
getStartRaidPos
- Mappings:
Namespace Name Mixin selector named getStartRaidPos
Lnet/minecraft/server/network/ServerPlayerEntity;getStartRaidPos()Lnet/minecraft/util/math/BlockPos;
intermediary method_58585
Lnet/minecraft/class_3222;method_58585()Lnet/minecraft/class_2338;
official ag
Lasi;ag()Ljh;
-
getMovement
- Overrides:
getMovement
in classEntity
- Mappings:
Namespace Name Mixin selector named getMovement
Lnet/minecraft/entity/Entity;getMovement()Lnet/minecraft/util/math/Vec3d;
intermediary method_60478
Lnet/minecraft/class_1297;method_60478()Lnet/minecraft/class_243;
official ah
Lbvj;ah()Lfbx;
-
setMovement
- Mappings:
Namespace Name Mixin selector named setMovement
Lnet/minecraft/server/network/ServerPlayerEntity;setMovement(Lnet/minecraft/util/math/Vec3d;)V
intermediary method_52208
Lnet/minecraft/class_3222;method_52208(Lnet/minecraft/class_243;)V
official a
Lasi;a(Lfbx;)V
-
getDamageAgainst
- Overrides:
getDamageAgainst
in classPlayerEntity
- Mappings:
Namespace Name Mixin selector named getDamageAgainst
Lnet/minecraft/entity/player/PlayerEntity;getDamageAgainst(Lnet/minecraft/entity/Entity;FLnet/minecraft/entity/damage/DamageSource;)F
intermediary method_59903
Lnet/minecraft/class_1657;method_59903(Lnet/minecraft/class_1297;FLnet/minecraft/class_1282;)F
official a
Lcpw;a(Lbvj;FLbtz;)F
-
sendEquipmentBreakStatus
- Overrides:
sendEquipmentBreakStatus
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named sendEquipmentBreakStatus
Lnet/minecraft/entity/LivingEntity;sendEquipmentBreakStatus(Lnet/minecraft/item/Item;Lnet/minecraft/entity/EquipmentSlot;)V
intermediary method_20235
Lnet/minecraft/class_1309;method_20235(Lnet/minecraft/class_1792;Lnet/minecraft/class_1304;)V
official a
Lbwf;a(Lcxk;Lbvr;)V
-
getPlayerInput
- Mappings:
Namespace Name Mixin selector named getPlayerInput
Lnet/minecraft/server/network/ServerPlayerEntity;getPlayerInput()Lnet/minecraft/util/PlayerInput;
intermediary method_63562
Lnet/minecraft/class_3222;method_63562()Lnet/minecraft/class_10185;
official ai
Lasi;ai()Lcpu;
-
setPlayerInput
- Mappings:
Namespace Name Mixin selector named setPlayerInput
Lnet/minecraft/server/network/ServerPlayerEntity;setPlayerInput(Lnet/minecraft/util/PlayerInput;)V
intermediary method_63561
Lnet/minecraft/class_3222;method_63561(Lnet/minecraft/class_10185;)V
official a
Lasi;a(Lcpu;)V
-
getInputVelocityForMinecart
- Mappings:
Namespace Name Mixin selector named getInputVelocityForMinecart
Lnet/minecraft/server/network/ServerPlayerEntity;getInputVelocityForMinecart()Lnet/minecraft/util/math/Vec3d;
intermediary method_63563
Lnet/minecraft/class_3222;method_63563()Lnet/minecraft/class_243;
official aj
Lasi;aj()Lfbx;
-
addEnderPearl
- Mappings:
Namespace Name Mixin selector named addEnderPearl
Lnet/minecraft/server/network/ServerPlayerEntity;addEnderPearl(Lnet/minecraft/entity/projectile/thrown/EnderPearlEntity;)V
intermediary method_64124
Lnet/minecraft/class_3222;method_64124(Lnet/minecraft/class_1684;)V
official a
Lasi;a(Lcqz;)V
-
removeEnderPearl
- Mappings:
Namespace Name Mixin selector named removeEnderPearl
Lnet/minecraft/server/network/ServerPlayerEntity;removeEnderPearl(Lnet/minecraft/entity/projectile/thrown/EnderPearlEntity;)V
intermediary method_64130
Lnet/minecraft/class_3222;method_64130(Lnet/minecraft/class_1684;)V
official b
Lasi;b(Lcqz;)V
-
getEnderPearls
- Mappings:
Namespace Name Mixin selector named getEnderPearls
Lnet/minecraft/server/network/ServerPlayerEntity;getEnderPearls()Ljava/util/Set;
intermediary method_64128
Lnet/minecraft/class_3222;method_64128()Ljava/util/Set;
official ak
Lasi;ak()Ljava/util/Set;
-
handleThrownEnderPearl
- Mappings:
Namespace Name Mixin selector named handleThrownEnderPearl
Lnet/minecraft/server/network/ServerPlayerEntity;handleThrownEnderPearl(Lnet/minecraft/entity/projectile/thrown/EnderPearlEntity;)J
intermediary method_64133
Lnet/minecraft/class_3222;method_64133(Lnet/minecraft/class_1684;)J
official c
Lasi;c(Lcqz;)J
-
addEnderPearlTicket
- Mappings:
Namespace Name Mixin selector named addEnderPearlTicket
Lnet/minecraft/server/network/ServerPlayerEntity;addEnderPearlTicket(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/ChunkPos;)J
intermediary method_64123
Lnet/minecraft/class_3222;method_64123(Lnet/minecraft/class_3218;Lnet/minecraft/class_1923;)J
official a
Lasi;a(Lash;Ldgn;)J
-