Package net.minecraft.server.network
Class ServerPlayerEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.LivingEntity
net.minecraft.entity.player.PlayerEntity
net.minecraft.server.network.ServerPlayerEntity
- All Implemented Interfaces:
ScreenHandlerListener
,CommandOutput
,Nameable
public class ServerPlayerEntity extends PlayerEntity implements ScreenHandlerListener
-
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.Entity
Entity.PositionUpdater
-
Field Summary
Fields inherited from class net.minecraft.entity.player.PlayerEntity
abilities, abilityResyncCountdown, capeX, capeY, capeZ, currentScreenHandler, enchantmentTableSeed, enderChestInventory, experienceLevel, experiencePickUpDelay, experienceProgress, field_7509, fishHook, hungerManager, inventory, isSubmergedInWater, LEFT_SHOULDER_ENTITY, MAIN_ARM, PLAYER_MODEL_PARTS, playerScreenHandler, prevCapeX, prevCapeY, prevCapeZ, prevStrideDistance, RIGHT_SHOULDER_ENTITY, STANDING_DIMENSIONS, strideDistance, totalExperience
Fields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, bodyTrackingIncrements, bodyYaw, brain, dead, deathTime, defaultMaxHealth, despawnCounter, field_6215, flyingSpeed, forwardSpeed, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, hurtTime, itemUseTimeLeft, jumping, knockbackVelocity, lastAttackedTicks, lastDamageTaken, lastHandSwingProgress, lastLimbDistance, limbAngle, limbDistance, LIVING_FLAGS, lookDirection, maxHurtTime, playerHitTimer, preferredHand, prevBodyYaw, prevHeadYaw, prevLookDirection, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, riptideTicks, roll, scoreAmount, serverHeadYaw, serverPitch, serverX, serverY, serverYaw, serverZ, sidewaysSpeed, SLEEPING_DIMENSIONS, stepBobbingAmount, stuckArrowTimer, stuckStingerTimer, upwardSpeed
Fields inherited from class net.minecraft.entity.Entity
age, chunkX, chunkY, chunkZ, dataTracker, distanceTraveled, fallDistance, field_25599, firstUpdate, FLAGS, fluidHeight, glowing, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inNetherPortal, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, movementMultiplier, netherPortalTime, noClip, onGround, pitch, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, removed, ridingCooldown, stepHeight, submergedInWater, teleporting, timeUntilRegen, touchingWater, updateNeeded, uuid, uuidString, velocityDirty, velocityModified, verticalCollision, world, yaw
Fields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY
-
Constructor Summary
Constructors Constructor Description ServerPlayerEntity(MinecraftServer server, ServerWorld world, com.mojang.authlib.GameProfile profile, ServerPlayerInteractionManager interactionManager)
-
Method Summary
Methods inherited from class net.minecraft.entity.player.PlayerEntity
addExhaustion, addScore, addShoulderEntity, adjustMovementForSneaking, afterSpawn, applyDamage, attackLivingEntity, canClimb, canConsume, canEquip, canFly, canFoodHeal, canModifyBlocks, canPlaceOn, checkFallFlying, clipAtLedge, createPlayerAttributes, damageArmor, damageShield, disableShield, doesNotSuffocate, dropInventory, dropItem, dropSelectedItem, dropShoulderEntities, eatFood, equip, equipStack, findRespawnPosition, getAbsorptionAmount, getActiveEyeHeight, getArmorItems, getArrowType, getAttackCooldownProgress, getAttackCooldownProgressPerTick, getBlockBreakingSpeed, getBurningDuration, getCurrentExperience, getDeathSound, getDefaultNetherPortalCooldown, getDimensions, getDisplayName, getEnchantmentTableSeed, getEnderChestInventory, getEntityName, getEquippedStack, getFallSound, getGameProfile, getHeightOffset, getHighSpeedSplashSound, getHungerManager, getHurtSound, getItemCooldownManager, getItemsHand, getLuck, getMainArm, getMaxNetherPortalTime, getMovementSpeed, getName, getNextLevelExperience, getOfflinePlayerUuid, getPoses, getReducedDebugInfo, getScore, getScoreboard, getShoulderEntityLeft, getShoulderEntityRight, getSleepTimer, getSoundCategory, getSplashSound, getSwimSound, getUuidFromProfile, getVelocityMultiplier, giveItemStack, handleFallDamage, handleStatus, increaseStat, increaseTravelMotionStats, incrementStat, incrementStat, initDataTracker, interact, isBlockBreakingRestricted, isCreativeLevelTwoOp, isImmobile, isMainPlayer, isOnSoulSpeedBlock, isPartVisible, isSleepingLongEnough, isSwimming, isUsingEffectiveTool, jump, method_29239, method_29500, method_29920, method_30951, onKilledOther, onSwimmingStart, openCommandBlockMinecartScreen, openJigsawScreen, openStructureBlockScreen, playSound, remove, requestRespawn, resetLastAttackedTicks, setAbsorptionAmount, setFireTicks, setMainArm, setReducedDebugInfo, setScore, setShoulderEntityLeft, setShoulderEntityRight, shouldAlwaysDropXp, shouldCancelInteraction, shouldDismount, shouldRenderName, slowMovement, spawnSweepAttackParticles, startFallFlying, stopFallFlying, takeShieldHit, tickMovement, tickNewAi, tickRiding, travel, updateSize, updateSwimming, updateWaterSubmersionState, vanishCursedItems, wakeUp
Methods inherited from class net.minecraft.entity.LivingEntity
addSoulSpeedBoostIfNeeded, addStatusEffect, animateDamage, applyArmorToDamage, applyEnchantmentsToDamage, applyStatusEffect, baseTick, canBeRiddenInWater, canBreatheInWater, canDropLootAndXp, canHaveStatusEffect, canMoveVoluntarily, canSee, canTarget, canTarget, canWalkOnFluid, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, collides, computeFallDamage, containsOnlyAmbientEffects, createBrainProfile, createLivingAttributes, deserializeBrain, destroy, displaySoulSpeedEffects, drop, dropEquipment, dropLoot, dropXp, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseMovementSpeedMultiplier, getBlockState, getBoundingBox, getBrain, getClimbingPos, getDamageTracker, getDespawnCounter, getDrinkSound, getEatSound, getEyeHeight, getGroup, getHandSwingProgress, getHeadYaw, getHealth, getItemUseTime, getItemUseTimeLeft, getJumpVelocity, getLastAttackedTime, getLastAttackTime, getLeaningPitch, getLootContextBuilder, getLootTable, getMainHandStack, getMaxHealth, getNextAirOnLand, getNextAirUnderwater, getOffHandStack, getPrimeAdversary, getRandom, getRecentDamageSource, getRoll, getScaleFactor, getSleepingDirection, getSleepingPosition, getSoundPitch, getSoundVolume, getStackInHand, getStatusEffect, getStatusEffects, getStingerCount, getStuckArrowCount, getVisibilityBoundingBox, getYaw, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isBaby, isBlocking, isClimbing, isDead, isFallFlying, isHolding, isHolding, isHoldingOntoLadder, isInsideWall, isInSwimmingPose, isMobOrPlayer, isPushable, isSleeping, isTarget, isUndead, isUsingItem, isUsingRiptide, kill, knockback, knockDownwards, markEffectsDirty, method_26317, method_26318, method_29242, method_29499, method_30633, method_31079, onAttacking, onEquipStack, onKilledBy, onTrackedDataSet, playBlockFallSound, playHurtSound, pushAway, pushAwayFrom, removeSoulSpeedBoost, removeStatusEffect, removeStatusEffectInternal, scheduleVelocityUpdate, sendEquipmentBreakStatus, sendToolBreakStatus, setAttacker, setAttacking, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setMovementSpeed, setNearbySongPlaying, setOnGround, setRiptideTicks, setSleepingPosition, setSprinting, setStackInHand, setStingerCount, setStuckArrowCount, setYaw, shouldDisplaySoulSpeedEffects, shouldDropLoot, spawnConsumptionEffects, stopUsingItem, swimUpward, swingHand, takeKnockback, teleport, tickCramming, tickHandSwing, tickRiptide, tickStatusEffects, tryAttack, turnHead, updatePostDeath, updateTrackedHeadRotation, updateTrackedPositionAndAngles
Methods inherited from class net.minecraft.entity.Entity
addPassenger, addScoreboardTag, addVelocity, adjustMovementForCollisions, adjustMovementForCollisions, adjustMovementForPiston, adjustSingleAxisMovementForCollisions, applyMirror, applyRotation, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canExplosionDestroyBlock, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, collidesWith, copyFrom, copyPositionAndRotation, dealDamage, detach, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, entityDataRequiresOperator, equals, extinguish, fromTag, getAir, getBlockPos, getBodyY, getBoundingBox, getBrightnessAtEyes, getCameraPosVec, getCommandSource, getCustomName, getDataTracker, getDefaultName, getEffectiveExplosionResistance, getEntityId, getEntityWorld, getEyeHeight, getEyeY, getFireTicks, getFlag, getFluidHeight, getHeight, getHorizontalFacing, getHoverEvent, getItemsEquipped, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getMaxAir, getMountedHeightOffset, getMovementDirection, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPistonBehavior, getPitch, getPos, getPose, getPrimaryPassenger, getRandomBodyY, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getServer, getStandingEyeHeight, getTargetingMargin, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getWidth, getX, getY, getZ, handleAttack, hasCustomName, hashCode, hasNetherPortalCooldown, hasNoGravity, hasPassenger, hasPassengerDeep, hasPassengers, hasPassengerType, hasPermissionLevel, hasPlayerRider, hasVehicle, hasWings, interact, interactAt, isAttackable, isChunkPosUpdateRequested, isCollidable, isConnectedThroughVehicle, isCustomNameVisible, isDescending, isFireImmune, isGlowing, isImmuneToExplosion, isInLava, isInRange, isInsideWaterOrBubbleColumn, isInSneakingPose, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isPartOf, isSilent, isSneaking, isSneaky, isSprinting, isSubmergedIn, isSubmergedInWater, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, method_29241, method_29919, method_30076, method_30632, method_30634, method_30950, method_31166, move, moveToBoundingBoxCenter, offsetX, offsetZ, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onPassengerLookAround, onPlayerCollision, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, playFlySound, playStepSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, refreshPosition, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, removeAllPassengers, removePassenger, removeScoreboardTag, resetNetherPortalCooldown, resetPosition, saveSelfToTag, saveToTag, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFlag, setGlowing, setInNetherPortal, setInvisible, setInvulnerable, setNoGravity, setOnFireFor, setOnFireFromLava, setPos, setPose, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, shouldBroadcastConsoleToOps, shouldLeaveSwimmingPose, shouldReceiveFeedback, shouldRender, shouldRender, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredHorizontalLength, startRiding, streamPassengersRecursively, teleport, teleportRequested, tickNetherPortal, toListTag, toListTag, toString, toTag, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateTrackedPosition, updateTrackedPosition, updateVelocity, updateWaterState, wouldPoseNotCollide
-
Field Details
-
LOGGER
-
networkHandler
-
server
-
interactionManager
-
removedEntities
-
advancementTracker
-
statHandler
-
lastHealthScore
private float lastHealthScore -
lastFoodScore
private int lastFoodScore -
lastAirScore
private int lastAirScore -
lastArmorScore
private int lastArmorScore -
lastLevelScore
private int lastLevelScore -
lastExperienceScore
private int lastExperienceScore -
syncedHealth
private float syncedHealth -
syncedFoodLevel
private int syncedFoodLevel -
syncedSaturationIsZero
private boolean syncedSaturationIsZero -
syncedExperience
private int syncedExperience -
joinInvulnerabilityTicks
private int joinInvulnerabilityTicks -
clientChatVisibility
-
clientChatColorsEnabled
private boolean clientChatColorsEnabled -
lastActionTime
private long lastActionTime -
cameraEntity
-
inTeleportationState
private boolean inTeleportationState -
seenCredits
private boolean seenCredits -
recipeBook
-
levitationStartPos
-
levitationStartTick
private int levitationStartTick -
disconnected
private boolean disconnected -
enteredNetherPos
-
cameraPosition
-
spawnPointDimension
-
spawnPointPosition
-
spawnPointSet
private boolean spawnPointSet -
spawnAngle
private float spawnAngle -
textStream
-
screenHandlerSyncId
private int screenHandlerSyncId -
skipPacketSlotUpdates
public boolean skipPacketSlotUpdates -
pingMilliseconds
public int pingMilliseconds -
notInAnyWorld
public boolean notInAnyWorld
-
-
Constructor Details
-
ServerPlayerEntity
public ServerPlayerEntity(MinecraftServer server, ServerWorld world, com.mojang.authlib.GameProfile profile, ServerPlayerInteractionManager interactionManager)
-
-
Method Details
-
moveToSpawn
-
calculateSpawnOffsetMultiplier
private int calculateSpawnOffsetMultiplier(int horizontalSpawnArea) -
readCustomDataFromTag
- Overrides:
readCustomDataFromTag
in classPlayerEntity
-
writeCustomDataToTag
- Overrides:
writeCustomDataToTag
in classPlayerEntity
-
setExperiencePoints
public void setExperiencePoints(int int2) -
setExperienceLevel
public void setExperienceLevel(int level) -
addExperienceLevels
public void addExperienceLevels(int levels)- Overrides:
addExperienceLevels
in classPlayerEntity
-
applyEnchantmentCosts
- Overrides:
applyEnchantmentCosts
in classPlayerEntity
-
onSpawn
public void onSpawn() -
enterCombat
public void enterCombat()- Overrides:
enterCombat
in classLivingEntity
-
endCombat
public void endCombat()- Overrides:
endCombat
in classLivingEntity
-
onBlockCollision
- Overrides:
onBlockCollision
in classEntity
-
createCooldownManager
- Overrides:
createCooldownManager
in classPlayerEntity
-
tick
public void tick()- Overrides:
tick
in classPlayerEntity
-
playerTick
public void playerTick() -
updateScores
-
onDeath
- Overrides:
onDeath
in classPlayerEntity
-
forgiveMobAnger
private void forgiveMobAnger() -
updateKilledAdvancementCriterion
- Overrides:
updateKilledAdvancementCriterion
in classEntity
-
updateScoreboardScore
private void updateScoreboardScore(String playerName, String team, ScoreboardCriterion[] scoreboardCriterion) -
damage
- Overrides:
damage
in classPlayerEntity
-
shouldDamagePlayer
- Overrides:
shouldDamagePlayer
in classPlayerEntity
-
isPvpEnabled
private boolean isPvpEnabled() -
getTeleportTarget
- Overrides:
getTeleportTarget
in classEntity
-
moveToWorld
Moves this entity to another world.Note all entities except server player entities are completely recreated at the destination.
- Overrides:
moveToWorld
in classEntity
- Returns:
- the entity in the other world
-
createEndSpawnPlatform
-
method_30330
protected Optional<PortalUtil.Rectangle> method_30330(ServerWorld serverWorld, BlockPos blockPos, boolean bool)- Overrides:
method_30330
in classEntity
-
worldChanged
-
canBeSpectated
- Overrides:
canBeSpectated
in classEntity
-
sendBlockEntityUpdate
-
sendPickup
- Overrides:
sendPickup
in classLivingEntity
-
trySleep
public com.mojang.datafixers.util.Either<PlayerEntity.SleepFailureReason,Unit> trySleep(BlockPos pos)- Overrides:
trySleep
in classPlayerEntity
-
sleep
- Overrides:
sleep
in classLivingEntity
-
isBedTooFarAway
-
isBedTooFarAway
-
isBedObstructed
-
wakeUp
public void wakeUp(boolean bool, boolean updateSleepingPlayers)- Overrides:
wakeUp
in classPlayerEntity
-
startRiding
- Overrides:
startRiding
in classEntity
-
stopRiding
public void stopRiding()- Overrides:
stopRiding
in classLivingEntity
-
isInvulnerableTo
- Overrides:
isInvulnerableTo
in classPlayerEntity
-
fall
protected void fall(double heightDifference, boolean onGround, BlockState landedState, BlockPos landedPosition)- Overrides:
fall
in classLivingEntity
-
applyMovementEffects
- Overrides:
applyMovementEffects
in classLivingEntity
-
handleFall
public void handleFall(double heightDifference, boolean onGround) -
openEditSignScreen
- Overrides:
openEditSignScreen
in classPlayerEntity
-
incrementScreenHandlerSyncId
private void incrementScreenHandlerSyncId() -
openHandledScreen
- Overrides:
openHandledScreen
in classPlayerEntity
-
sendTradeOffers
public void sendTradeOffers(int syncId, TradeOfferList offers, int levelProgress, int experience, boolean leveled, boolean refreshable)- Overrides:
sendTradeOffers
in classPlayerEntity
-
openHorseInventory
- Overrides:
openHorseInventory
in classPlayerEntity
-
openEditBookScreen
- Overrides:
openEditBookScreen
in classPlayerEntity
-
openCommandBlockScreen
- Overrides:
openCommandBlockScreen
in classPlayerEntity
-
onSlotUpdate
- Specified by:
onSlotUpdate
in interfaceScreenHandlerListener
-
refreshScreenHandler
Sends packets to the client that refresh the current screen handler's items. -
onHandlerRegistered
- Specified by:
onHandlerRegistered
in interfaceScreenHandlerListener
-
onPropertyUpdate
- Specified by:
onPropertyUpdate
in interfaceScreenHandlerListener
-
closeHandledScreen
public void closeHandledScreen()- Overrides:
closeHandledScreen
in classPlayerEntity
-
updateCursorStack
public void updateCursorStack() -
closeScreenHandler
public void closeScreenHandler()Runs closing tasks for the current screen handler and sets it to theplayerScreenHandler
. -
method_14218
public void method_14218(float float2, float float3, boolean bool, boolean bool2) -
increaseStat
- Overrides:
increaseStat
in classPlayerEntity
-
resetStat
- Overrides:
resetStat
in classPlayerEntity
-
unlockRecipes
- Overrides:
unlockRecipes
in classPlayerEntity
-
unlockRecipes
- Overrides:
unlockRecipes
in classPlayerEntity
-
lockRecipes
- Overrides:
lockRecipes
in classPlayerEntity
-
addExperience
public void addExperience(int experience)- Overrides:
addExperience
in classPlayerEntity
-
onDisconnect
public void onDisconnect() -
isDisconnected
public boolean isDisconnected() -
markHealthDirty
public void markHealthDirty() -
sendMessage
- Overrides:
sendMessage
in classPlayerEntity
-
consumeItem
protected void consumeItem()- Overrides:
consumeItem
in classLivingEntity
-
lookAt
- Overrides:
lookAt
in classLivingEntity
-
method_14222
public void method_14222(EntityAnchorArgumentType.EntityAnchor entityAnchor, Entity entity, EntityAnchorArgumentType.EntityAnchor entityAnchor2) -
copyFrom
-
onStatusEffectApplied
- Overrides:
onStatusEffectApplied
in classLivingEntity
-
onStatusEffectUpgraded
- Overrides:
onStatusEffectUpgraded
in classLivingEntity
-
onStatusEffectRemoved
- Overrides:
onStatusEffectRemoved
in classLivingEntity
-
requestTeleport
public void requestTeleport(double destX, double destY, double destZ)- Overrides:
requestTeleport
in classEntity
-
refreshPositionAfterTeleport
public void refreshPositionAfterTeleport(double x, double y, double z)- Overrides:
refreshPositionAfterTeleport
in classEntity
-
addCritParticles
- Overrides:
addCritParticles
in classPlayerEntity
-
addEnchantedHitParticles
- Overrides:
addEnchantedHitParticles
in classPlayerEntity
-
sendAbilitiesUpdate
public void sendAbilitiesUpdate()- Overrides:
sendAbilitiesUpdate
in classPlayerEntity
-
getServerWorld
-
setGameMode
- Overrides:
setGameMode
in classPlayerEntity
-
isSpectator
public boolean isSpectator()- Specified by:
isSpectator
in classPlayerEntity
-
isCreative
public boolean isCreative()- Specified by:
isCreative
in classPlayerEntity
-
sendSystemMessage
- Specified by:
sendSystemMessage
in interfaceCommandOutput
- Overrides:
sendSystemMessage
in classEntity
-
sendMessage
-
getIp
-
setClientSettings
-
getClientChatVisibility
-
sendResourcePackUrl
-
getPermissionLevel
protected int getPermissionLevel()- Overrides:
getPermissionLevel
in classEntity
-
updateLastActionTime
public void updateLastActionTime() -
getStatHandler
-
getRecipeBook
-
onStoppedTracking
-
onStartedTracking
-
updatePotionVisibility
protected void updatePotionVisibility()- Overrides:
updatePotionVisibility
in classLivingEntity
-
getCameraEntity
-
setCameraEntity
-
tickNetherPortalCooldown
protected void tickNetherPortalCooldown()- Overrides:
tickNetherPortalCooldown
in classEntity
-
attack
- Overrides:
attack
in classPlayerEntity
-
getLastActionTime
public long getLastActionTime() -
getPlayerListName
-
swingHand
- Overrides:
swingHand
in classLivingEntity
-
isInTeleportationState
public boolean isInTeleportationState() -
onTeleportationDone
public void onTeleportationDone() -
getAdvancementTracker
-
teleport
public void teleport(ServerWorld targetWorld, double x, double y, double z, float yaw, float pitch) -
getSpawnPointPosition
-
getSpawnAngle
public float getSpawnAngle() -
getSpawnPointDimension
-
isSpawnPointSet
public boolean isSpawnPointSet() -
setSpawnPoint
public void setSpawnPoint(RegistryKey<World> dimension, @Nullable BlockPos pos, float angle, boolean spawnPointSet, boolean bool) -
sendInitialChunkPackets
-
sendUnloadChunkPacket
-
getCameraPosition
-
setCameraPosition
-
playSound
- Overrides:
playSound
in classPlayerEntity
-
createSpawnPacket
- Overrides:
createSpawnPacket
in classLivingEntity
-
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
-
getTextStream
-