Package net.minecraft.server.level
Class ServerPlayer
- java.lang.Object
-
- net.minecraft.world.entity.Entity
-
- net.minecraft.world.entity.LivingEntity
-
- net.minecraft.world.entity.player.Player
-
- net.minecraft.server.level.ServerPlayer
-
-
Field Summary
Fields Modifier and Type Field Description boolean
gameOver
boolean
isChangingQuantityOnly
ItemInWorldManager
itemInWorldManager
java.util.Set<ChunkCoordIntPair>
listeningChunks
java.util.List<ChunkCoordIntPair>
loadedChunks
double
managedPosX
double
managedPosZ
MinecraftServer
mcServer
int
ping
NetServerHandler
playerNetServerHandler
GameProfile
profile
-
Fields inherited from class net.minecraft.world.entity.player.Player
cameraYaw, capabilities, craftingInventory, dimension, experience, experienceLevel, experienceTotal, field_20061_w, field_20062_v, field_20063_u, field_20064_t, field_20065_s, field_20066_r, field_22061_z, field_22062_y, field_22063_x, field_9371_f, fishEntity, flyToggleTimer, foodStats, inPortal, inventory, inventorySlots, isSwinging, playerLocation, prevCameraYaw, prevTimeInPortal, score, sleeping, speedInAir, speedOnGround, swingProgressInt, timeInPortal, timeUntilPortal, username, xpCooldown
-
Fields inherited from class net.minecraft.world.entity.LivingEntity
activePotionsMap, arrowHitTempCounter, arrowHitTimer, attackedAtYaw, attackingPlayer, attackTime, cameraPitch, carryoverDamage, dead, deathTime, defaultPitch, entityAge, entityType, experienceValue, field_703_S, field_704_R, field_705_Q, field_9325_U, field_9326_T, field_9345_F, field_9349_D, field_9353_B, field_9355_A, field_9358_y, field_9359_x, field_9360_w, field_9361_v, field_9362_u, field_9363_r, field_9365_p, health, heartsHalvesLife, hurtTime, isJumping, jumpMovementFactor, landMovementFactor, maxHurtTime, moveForward, moveSpeed, moveStrafing, naturalArmorRating, newPosRotationIncrements, newPosX, newPosY, newPosZ, newRotationPitch, newRotationYaw, numTicksToChaseTarget, prevCameraPitch, prevHealth, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, swingProgress, targetTasks, tasks, texture
-
Fields inherited from class net.minecraft.world.entity.Entity
addedToChunk, boundingBox, chunkCoordX, chunkCoordY, chunkCoordZ, cloakUrl, dataWatcher, distanceWalkedModified, entityCollisionReduction, entityId, fallDistance, field_9293_aM, fireResistance, heartsLife, height, ignoreFrustumCheck, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, isJesusColliding, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, playerNameForSkin, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, skinUrl, slim, stepHeight, ticksExisted, velocityChanged, width, worldObj, yOffset, ySize
-
-
Constructor Summary
Constructors Constructor Description ServerPlayer(MinecraftServer minecraftServer, World world, GameProfile profile, ItemInWorldManager itemInWorldManager)
-
Method Summary
-
Methods inherited from class net.minecraft.world.entity.player.Player
addExhaustion, addExperience, addMovementStat, addToPlayerScore, alertWolves, applyPotionDamageCalculations, attackTargetEntityWithCurrentItem, canEat, canHarvestBlock, canPlayerEdit, canTriggerWalking, clearItemInUse, copyPlayer, damageArmor, damageEntity, decreaseAirSupply, destroyCurrentEquippedItem, displayGUIEditSign, dropOneItem, dropPlayerItem, dropPlayerItemWithRandomChoice, entityInit, fall, getBedOrientationInDegrees, getCurrentEquippedItem, getCurrentPlayerStrVsBlock, getExperiencePoints, getFoodStats, getHeldItem, getHurtSound, getItemIcon, getItemInUse, getItemInUseCount, getItemInUseDuration, getMaxHealth, getScore, getSleepTimer, getSpawnChunk, getTotalArmorValue, getUsername, getYOffset, handleHealthUpdate, isBlocking, isEntityInsideOpaqueBlock, isMovementBlocked, isPlayer, isPlayerFullyAsleep, isPlayerSleeping, isUsingItem, joinEntityItemWithWorld, jump, moveEntityWithHeading, onItemStackChanged, onKillEntity, onLivingUpdate, preparePlayerToSpawn, respawnPlayer, setDead, setInPortal, setSpawnChunk, shouldHeal, stopUsingItem, triggerAchievement, updateEntityActionState, updateItemUse, updateRidden, useCurrentItemOnEntity, verifyRespawnCoordinates, xpBarCap
-
Methods inherited from class net.minecraft.world.entity.LivingEntity
addPotionEffect, applyArmorCalculations, attackEntityAsMob, canBeCollidedWith, canBePushed, canBreatheUnderwater, canDespawn, canEntityBeSeen, clearActivePotions, despawnEntity, detachHome, dropFewItems, dropRareDrop, eatGrassBonus, faceEntity, func_48079_f, func_48090_aM, func_48098_g, func_48100_a, func_48101_aR, getActivePotionEffect, getActivePotionEffects, getAge, getAITarget, getAttackTarget, getCanSpawnHere, getCreatureAttribute, getDeathSound, getDropItemId, getEffectiveHealth, getHeadYaw, getHealth, getHomePosition, getJumpHelper, getLastAttackingEntity, getLivingSound, getLook, getLookHelper, getLookVec, getMaximumHomeDistance, getMaxSpawnedInChunk, getMoveHelper, getNavigator, getPosition, getRenderSizeModifier, getRNG, getSoundVolume, getSpeedModifier, getSwingProgress, getTalkInterval, getTexture, getVerticalFaceSpeed, hasHome, isAIEnabled, isChild, isClientWorld, isEntityAlive, isEntityUndead, isOnLadder, isPotionActive, isPotionApplicable, isWithinHomeDistance, isWithinHomeDistanceCurrentPosition, kill, knockBack, onDeathUpdate, onEntityDeath, onEntityUpdate, performHurtAnimation, playLivingSound, rayTrace, removePotionEffect, renderBrokenItemStack, setAttackTarget, setEntityHealth, setHomeArea, setJumping, setLastAttackingEntity, setMoveForward, setPositionAndRotation2, setRevengeTarget, setSize, spawnExplosionParticle, updateAITasks, updateAITick, updatePotionEffects
-
Methods inherited from class net.minecraft.world.entity.Entity
addEntityID, addVelocity, applyEntityCollision, canAttackWithItem, dealFireDamage, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, getAir, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getCurrentBiomeName, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityString, getFlag, getMountedYOffset, getParts, getShadowSize, handleLavaMovement, handleWaterMovement, hashCode, interact, isBurning, isEating, isEntityEqual, isImmuneToFire, isInRangeToRenderDist, isInRangeToRenderVec3D, isInsideOfMaterial, isInsideOfMaterial, isInWater, isOffsetPositionInLiquid, isRiding, isSneaking, isSprinting, isSubmergedInAnyFluid, isWet, moveEntity, moveFlying, newDoubleNBTList, newFloatNBTList, onCollideWithPlayer, onStruckByLightning, outfitWithItem, playStepSound, pushOutOfBlocks, readFromNBT, setAir, setAngles, setBeenAttacked, setEating, setFire, setFlag, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setSneaking, setSprinting, setVelocity, toString, updateRiderPosition, writeToNBT
-
-
-
-
Field Detail
-
playerNetServerHandler
public NetServerHandler playerNetServerHandler
-
mcServer
public MinecraftServer mcServer
-
itemInWorldManager
public ItemInWorldManager itemInWorldManager
-
managedPosX
public double managedPosX
-
managedPosZ
public double managedPosZ
-
loadedChunks
public java.util.List<ChunkCoordIntPair> loadedChunks
-
listeningChunks
public java.util.Set<ChunkCoordIntPair> listeningChunks
-
isChangingQuantityOnly
public boolean isChangingQuantityOnly
-
ping
public int ping
-
gameOver
public boolean gameOver
-
profile
public final GameProfile profile
-
-
Constructor Detail
-
ServerPlayer
public ServerPlayer(MinecraftServer minecraftServer, World world, GameProfile profile, ItemInWorldManager itemInWorldManager)
-
-
Method Detail
-
readEntityFromNBT
public void readEntityFromNBT(NBTTagCompound var1)
- Overrides:
readEntityFromNBT
in classPlayer
-
writeEntityToNBT
public void writeEntityToNBT(NBTTagCompound var1)
- Overrides:
writeEntityToNBT
in classPlayer
-
removeExperience
public void removeExperience(int var1)
- Overrides:
removeExperience
in classPlayer
-
func_20057_k
public void func_20057_k()
-
getInventory
public ItemStack[] getInventory()
- Overrides:
getInventory
in classEntity
-
resetHeight
protected void resetHeight()
- Overrides:
resetHeight
in classPlayer
-
getEyeHeight
public float getEyeHeight()
- Overrides:
getEyeHeight
in classPlayer
-
getEquipmentInSlot
public ItemStack getEquipmentInSlot(int var1)
-
onDeath
public void onDeath(DamageSource var1)
-
attackEntityFrom
public boolean attackEntityFrom(DamageSource damageSource, int var2)
- Overrides:
attackEntityFrom
in classPlayer
-
isPVPEnabled
protected boolean isPVPEnabled()
- Overrides:
isPVPEnabled
in classPlayer
-
heal
public void heal(int var1)
- Overrides:
heal
in classLivingEntity
-
onUpdateEntity
public void onUpdateEntity(boolean var1)
-
travelToTheEnd
public void travelToTheEnd(int var1)
- Overrides:
travelToTheEnd
in classPlayer
-
onItemPickup
public void onItemPickup(Entity entity, int var2)
- Overrides:
onItemPickup
in classPlayer
-
func_22068_s
public void func_22068_s()
-
sleepInBedAt
public EnumStatus sleepInBedAt(int i, int j, int var3)
- Overrides:
sleepInBedAt
in classPlayer
-
wakeUpPlayer
public void wakeUpPlayer(boolean bl, boolean bl2, boolean var3)
- Overrides:
wakeUpPlayer
in classPlayer
-
mountEntity
public void mountEntity(Entity var1)
- Overrides:
mountEntity
in classEntity
-
updateFallState
protected void updateFallState(double d, boolean var3)
- Overrides:
updateFallState
in classEntity
-
handleFalling
public void handleFalling(double d, boolean var3)
-
displayWorkbenchGUI
public void displayWorkbenchGUI(int i, int j, int var3)
- Overrides:
displayWorkbenchGUI
in classPlayer
-
displayGUIEnchantment
public void displayGUIEnchantment(int i, int j, int var3)
- Overrides:
displayGUIEnchantment
in classPlayer
-
displayGUIChest
public void displayGUIChest(IInventory var1)
- Overrides:
displayGUIChest
in classPlayer
-
displayGUIFurnace
public void displayGUIFurnace(TileEntityFurnace var1)
- Overrides:
displayGUIFurnace
in classPlayer
-
displayGUIDispenser
public void displayGUIDispenser(TileEntityDispenser var1)
- Overrides:
displayGUIDispenser
in classPlayer
-
displayGUIBrewingStand
public void displayGUIBrewingStand(TileEntityBrewingStand var1)
- Overrides:
displayGUIBrewingStand
in classPlayer
-
updateCraftingInventorySlot
public void updateCraftingInventorySlot(Container container, int i, ItemStack var3)
- Specified by:
updateCraftingInventorySlot
in interfaceICrafting
-
func_28017_a
public void func_28017_a(Container container)
-
updateCraftingInventory
public void updateCraftingInventory(Container container, java.util.List<ItemStack> var2)
- Specified by:
updateCraftingInventory
in interfaceICrafting
-
updateCraftingInventoryInfo
public void updateCraftingInventoryInfo(Container container, int i, int var3)
- Specified by:
updateCraftingInventoryInfo
in interfaceICrafting
-
closeScreen
public void closeScreen()
- Overrides:
closeScreen
in classPlayer
-
updateHeldItem
public void updateHeldItem()
-
closeCraftingGui
public void closeCraftingGui()
-
func_30002_A
public void func_30002_A()
-
func_30001_B
public void func_30001_B()
-
addChatMessage
public void addChatMessage(java.lang.String var1)
- Overrides:
addChatMessage
in classPlayer
-
onItemUseFinish
protected void onItemUseFinish()
- Overrides:
onItemUseFinish
in classPlayer
-
setItemInUse
public void setItemInUse(ItemStack itemStack, int var2)
- Overrides:
setItemInUse
in classPlayer
-
onNewPotionEffect
protected void onNewPotionEffect(PotionEffect var1)
- Overrides:
onNewPotionEffect
in classLivingEntity
-
onChangedPotionEffect
protected void onChangedPotionEffect(PotionEffect var1)
- Overrides:
onChangedPotionEffect
in classLivingEntity
-
onFinishedPotionEffect
protected void onFinishedPotionEffect(PotionEffect var1)
- Overrides:
onFinishedPotionEffect
in classLivingEntity
-
setPositionAndUpdate
public void setPositionAndUpdate(double d, double e, double var5)
- Overrides:
setPositionAndUpdate
in classLivingEntity
-
onCriticalHit
public void onCriticalHit(Entity var1)
- Overrides:
onCriticalHit
in classPlayer
-
onEnchantmentCritical
public void onEnchantmentCritical(Entity var1)
- Overrides:
onEnchantmentCritical
in classPlayer
-
func_50009_aI
public void func_50009_aI()
- Overrides:
func_50009_aI
in classPlayer
-
func_6420_o
public void func_6420_o()
- Specified by:
func_6420_o
in classPlayer
-
-