public class ServerPlayerEntity extends PlayerEntity implements IContainerListener
PlayerEntity.SleepResultEntity.IMoveCallback| 修飾子とタイプ | フィールドと説明 |
|---|---|
ServerPlayNetHandler |
connection |
int |
currentWindowId |
PlayerInteractionManager |
interactionManager |
boolean |
isChangingQuantityOnly |
int |
ping |
boolean |
queuedEndExit |
MinecraftServer |
server |
abilities, cameraYaw, chasingPosX, chasingPosY, chasingPosZ, container, enterChestInventory, experience, experienceLevel, experienceTotal, eyesInWaterPlayer, fishingBobber, flyToggleTimer, foodStats, inventory, LEFT_SHOULDER_ENTITY, MAIN_HAND, openContainer, PERSISTED_NBT_TAG, PLAYER_MODEL_FLAG, prevCameraYaw, prevChasingPosX, prevChasingPosY, prevChasingPosZ, REACH_DISTANCE, RIGHT_SHOULDER_ENTITY, spawnForced, spawnForcedMap, spawnPos, spawnPosMap, speedInAir, STANDING_SIZE, xpCooldown, xpSeedactiveItemStack, activeItemStackUseCount, arrowHitTimer, attackedAtYaw, attackingPlayer, beeStingRemovalCooldown, brain, dead, deathTime, ENTITY_GRAVITY, hurtTime, idleTime, interpTargetHeadYaw, interpTargetPitch, interpTargetX, interpTargetY, interpTargetYaw, interpTargetZ, interpTicksHead, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, LIVING_FLAGS, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, moveVertical, NAMETAG_DISTANCE, newPosRotationIncrements, onGroundSpeedFactor, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomUnused1, randomUnused2, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, SLEEPING_SIZE, spinAttackDuration, SWIM_SPEED, swingingHand, swingProgress, swingProgressInt, ticksElytraFlying, ticksSinceLastSwing, unused180addedToChunk, cachedUniqueIdString, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, eyesInWater, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, hurtResistantTime, ignoreFrustumCheck, inLava, inPortal, inWater, isAirBorne, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, motionMultiplier, noClip, onGround, portalCounter, POSE, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, worldDUMMY| コンストラクタと説明 |
|---|
ServerPlayerEntity(MinecraftServer server,
ServerWorld worldIn,
com.mojang.authlib.GameProfile profile,
PlayerInteractionManager interactionManagerIn) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
addEntity(Entity entityIn) |
void |
addExperienceLevel(int levels)
Add experience levels to this player.
|
void |
addSelfToInternalCraftingInventory() |
void |
addStat(Stat<?> stat,
int amount)
Adds a value to a statistic field.
|
boolean |
attackEntityFrom(DamageSource source,
float amount)
Called when the entity is attacked.
|
void |
attackTargetEntityWithCurrentItem(Entity targetEntity)
Attacks for the player the targeted entity with the currently equipped item.
|
void |
awardKillScore(Entity p_191956_1_,
int p_191956_2_,
DamageSource p_191956_3_) |
boolean |
canAttackPlayer(PlayerEntity other) |
Entity |
changeDimension(DimensionType destination,
ITeleporter teleporter) |
void |
clearInvulnerableDimensionChange() |
void |
closeContainer()
Closes the container the player currently has open.
|
void |
closeScreen()
set current crafting inventory back to the 2x2 square
|
void |
copyFrom(ServerPlayerEntity that,
boolean keepEverything) |
protected CooldownTracker |
createCooldownTracker() |
IPacket<?> |
createSpawnPacket() |
protected void |
decrementTimeUntilPortal()
Decrements the counter for the remaining time until the entity may use a portal again.
|
void |
disconnect() |
ItemEntity |
dropItem(ItemStack droppedItem,
boolean dropAround,
boolean traceItem)
Creates and drops the provided item.
|
protected void |
frostWalk(BlockPos pos) |
void |
func_195394_a(int p_195394_1_) |
void |
func_225652_a_(boolean p_225652_1_,
boolean p_225652_2_) |
PlayerAdvancements |
getAdvancements() |
ChatVisibility |
getChatVisibility() |
long |
getLastActiveTime() |
SectionPos |
getManagedSectionPos() |
void |
getNextWindowId()
get the next window id to use
|
protected int |
getPermissionLevel() |
java.lang.String |
getPlayerIP()
Gets the player's IP address.
|
ServerRecipeBook |
getRecipeBook() |
ServerWorld |
getServerWorld() |
Entity |
getSpectatingEntity() |
ServerStatisticsManager |
getStats() |
ITextComponent |
getTabListDisplayName()
Returns null which indicates the tab list should just display the player's name, return a different value to
display the specified text instead of the player's name
|
void |
giveExperiencePoints(int p_195068_1_) |
void |
handleClientSettings(CClientSettingsPacket packetIn) |
void |
handleFalling(double y,
boolean onGroundIn)
process player falling based on movement packet
|
boolean |
hasDisconnected() |
boolean |
isCreative() |
boolean |
isInvulnerableDimensionChange() |
boolean |
isInvulnerableTo(DamageSource source)
Returns whether this Entity is invulnerable to the given DamageSource.
|
boolean |
isSpectatedByPlayer(ServerPlayerEntity player) |
boolean |
isSpectator()
Returns true if the player is in spectator mode.
|
void |
loadResourcePack(java.lang.String url,
java.lang.String hash) |
void |
lookAt(EntityAnchorArgument.Type p_200618_1_,
Entity p_200618_2_,
EntityAnchorArgument.Type p_200618_3_) |
void |
lookAt(EntityAnchorArgument.Type p_200602_1_,
Vec3d p_200602_2_) |
void |
markPlayerActive() |
void |
moveForced(double p_225653_1_,
double p_225653_3_,
double p_225653_5_) |
protected void |
onChangedPotionEffect(EffectInstance id,
boolean reapply) |
void |
onCriticalHit(Entity entityHit)
Called when the entity is dealt a critical hit.
|
void |
onDeath(DamageSource cause)
Called when the mob's health reaches 0.
|
void |
onEnchant(ItemStack enchantedItem,
int cost) |
void |
onEnchantmentCritical(Entity entityHit) |
protected void |
onFinishedPotionEffect(EffectInstance effect) |
protected void |
onInsideBlock(BlockState p_191955_1_) |
void |
onItemPickup(Entity entityIn,
int quantity)
Called when the entity picks up an item.
|
protected void |
onItemUseFinish()
Used for when item use count runs out, ie: eating completed
|
protected void |
onNewPotionEffect(EffectInstance id) |
void |
openBook(ItemStack stack,
Hand hand) |
void |
openCommandBlock(CommandBlockTileEntity commandBlock) |
java.util.OptionalInt |
openContainer(INamedContainerProvider p_213829_1_) |
void |
openHorseInventory(AbstractHorseEntity horse,
IInventory inventoryIn) |
void |
openMerchantContainer(int containerId,
MerchantOffers offers,
int level,
int xp,
boolean p_213818_5_,
boolean p_213818_6_) |
void |
openSignEditor(SignTileEntity signTile) |
void |
playerTick() |
void |
playSound(SoundEvent p_213823_1_,
SoundCategory p_213823_2_,
float p_213823_3_,
float p_213823_4_) |
void |
readAdditional(CompoundNBT compound)
(abstract) Protected helper method to read subclass entity data from NBT.
|
void |
removeEntity(Entity entityIn)
Sends a packet to the player to remove an entity.
|
int |
resetRecipes(java.util.Collection<IRecipe<?>> p_195069_1_) |
void |
sendAllContents(Container containerToSend,
NonNullList<ItemStack> itemsList)
update the crafting window inventory with the items in the list
|
void |
sendChunkLoad(ChunkPos p_213844_1_,
IPacket<?> p_213844_2_,
IPacket<?> p_213844_3_) |
void |
sendChunkUnload(ChunkPos p_213845_1_) |
void |
sendContainerToPlayer(Container containerIn) |
void |
sendEndCombat()
Sends an END_COMBAT packet to the client
|
void |
sendEnterCombat()
Sends an ENTER_COMBAT packet to the client
|
void |
sendMessage(ITextComponent component)
Send a chat message to the CommandSender
|
void |
sendMessage(ITextComponent textComponent,
ChatType chatTypeIn) |
void |
sendPlayerAbilities()
Sends the player's abilities to the server (if there is one).
|
void |
sendSlotContents(Container containerToSend,
int slotInd,
ItemStack stack)
Sends the contents of an inventory slot to the client-side Container.
|
void |
sendStatusMessage(ITextComponent chatComponent,
boolean actionBar) |
void |
sendWindowProperty(Container containerIn,
int varToUpdate,
int newValue)
Sends two ints to the client-side Container.
|
void |
setEntityActionState(float strafe,
float forward,
boolean jumping,
boolean sneaking) |
void |
setExperienceLevel(int level) |
void |
setGameType(GameType gameType)
Sets the player's game mode and sends it to them.
|
void |
setManagedSectionPos(SectionPos sectionPosIn) |
void |
setPlayerHealthUpdated()
this function is called when a players inventory is sent to him, lastHealth is updated on any dimension
transitions, then reset.
|
void |
setPositionAndUpdate(double x,
double y,
double z)
Sets the position of the entity and updates the 'last' variables
|
void |
setSpectatingEntity(Entity entityToSpectate) |
boolean |
startRiding(Entity entityIn,
boolean force) |
void |
stopRiding()
Dismounts this entity from the entity it is riding.
|
void |
swingArm(Hand hand) |
void |
takeStat(Stat<?> stat) |
void |
teleport(ServerWorld newWorld,
double x,
double y,
double z,
float yaw,
float pitch) |
void |
tick()
Called to update the entity's position/logic.
|
com.mojang.datafixers.util.Either<PlayerEntity.SleepResult,Unit> |
trySleep(BlockPos at) |
int |
unlockRecipes(java.util.Collection<IRecipe<?>> p_195065_1_) |
void |
unlockRecipes(ResourceLocation[] p_193102_1_) |
protected void |
updateFallState(double y,
boolean onGroundIn,
BlockState state,
BlockPos pos) |
void |
updateHeldItem()
updates item held by mouse
|
protected void |
updatePotionMetadata()
Clears potion metadata values if the entity has no potion effects.
|
void |
writeAdditional(CompoundNBT compound) |
addExhaustion, addItemStackToInventory, addMovementStat, addScore, addShoulderEntity, addStat, addStat, addStat, blockUsingShield, canEat, canHarvestBlock, canPickUpItem, canPlayerEdit, canTriggerWalking, canUseCommandBlock, damageArmor, damageEntity, damageShield, destroyVanishingCursedItems, disableShield, doWaterSplashEffect, dropInventory, dropItem, findAmmo, func_213822_a, func_223729_a, func_225514_a_, func_225609_n_, func_226560_a_, func_226563_dT_, func_226564_dU_, func_226565_dV_, func_226566_ei_, func_226567_ej_, func_226568_ek_, getAbsorptionAmount, getAIMoveSpeed, getAlwaysRenderNameTagForRender, getArmorInventoryList, getBedLocation, getBedLocation, getCapability, getCooldownPeriod, getCooldownTracker, getCooledAttackStrength, getDeathSound, getDigSpeed, getDigSpeed, getDisplayName, getDisplayNameAndUUID, getExperiencePoints, getFallSound, getFireImmuneTicks, getFoodStats, getGameProfile, getHeldEquipment, getHighspeedSplashSound, getHurtSound, getInventoryEnderChest, getItemStackFromSlot, getLeftShoulderEntity, getLuck, getMaxInPortalTime, getName, getOfflineUUID, getPortalCooldown, getPrefixes, getPrimaryHand, getRightShoulderEntity, getScore, getScoreboardName, getSize, getSleepTimer, getSoundCategory, getSpawnDimension, getSpeedFactor, getSplashSound, getStandingEyeHeight, getSuffixes, getSwimSound, getUUID, getWorldScoreboard, getXPSeed, getYOffset, handleStatusUpdate, hasReducedDebug, interactOn, isAllowEdit, isMovementBlocked, isNormalCube, isPlayer, isPlayerFullyAsleep, isPushedByWater, isSpawnForced, isSpawnForced, isSwimming, isUser, isWearing, jump, livingTick, onFoodEaten, onKillEntity, onLivingFall, openJigsaw, openMinecartCommandBlock, openStructureBlock, playSound, preparePlayerToSpawn, registerAttributes, registerData, remove, replaceItemInInventory, resetCooldown, respawnPlayer, setAbsorptionAmount, setItemStackToSlot, setLeftShoulderEntity, setMotionMultiplier, setPrimaryHand, setReducedDebug, setRightShoulderEntity, setScore, setSpawnDimenion, setSpawnPoint, shouldHeal, spawnShoulderEntities, spawnSweepParticles, spinAttack, startSleeping, travel, updateEntityActionState, updateEyesInWaterPlayer, updatePose, updateRidden, updateSwimming, wakeUp, xpBarCapaddPotionEffect, applyArmorCalculations, applyEntityCollision, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attackEntityAsMob, attemptTeleport, baseTick, canAttack, canAttack, canAttack, canBeCollidedWith, canBeHitWithPotion, canBePushed, canBeRiddenInWater, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, clearBedPosition, collideWithEntity, collideWithNearbyEntities, constructKnockBackVector, createBrain, curePotionEffects, decreaseAirSupply, determineNextAir, dropLoot, dropSpecialItems, func_213343_cS, func_225508_e_, func_226292_a_, func_226293_b_, func_226294_cV_, func_226296_dJ_, func_226298_f_, getActiveHand, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getActivePotionMap, getArrowCountInEntity, getAttackingEntity, getAttribute, getAttributes, getBedDirection, getBedPosition, getBeeStingCount, getBlockState, getBrain, getCombatTracker, getCreatureAttribute, getDrinkSound, getEatSound, getEyeHeight, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getLootContextBuilder, getLootTableResourceLocation, getMaxHealth, getRenderScale, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwimAnimation, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getVisibilityMultiplier, getWaterSlowDown, getYaw, handleFluidJump, handleFluidSneak, hasItemInSlot, heal, isActiveItemStackBlocking, isActualySwimming, isAlive, isChild, isElytraFlying, isEntityInsideOpaqueBlock, isEntityUndead, isHandActive, isOnLadder, isPotionActive, isPotionApplicable, isServerWorld, isSleeping, isSpinAttacking, knockBack, markPotionsDirty, markVelocityChanged, notifyDataManagerChange, onDeathUpdate, onKillCommand, outOfWorld, performHurtAnimation, playEquipSound, playFallSound, playHurtSound, removeActivePotionEffect, removePotionEffect, resetActiveHand, resetPotionEffectMetadata, sendBreakAnimation, sendBreakAnimation, setActiveHand, setAIMoveSpeed, setArrowCountInEntity, setBedPosition, setBeeStingCount, setHeadRotation, setHealth, setHeldItem, setIdleTime, setJumping, setLastAttackedEntity, setLivingFlag, setPartying, setPositionAndRotationDirect, setRenderYawOffset, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, spawnDrops, startSpinAttack, stopActiveHand, updateArmSwingProgress, updateDistance, updatePotionEffects, updateSpinAttackaddPassenger, addTag, addTrackingPlayer, addVelocity, allowLogging, applyEnchantments, applyOrientationToEntity, applyPlayerInteraction, areEyesInFluid, areEyesInFluid, calculateUpVector, canBeAttackedWithItem, canBeRidden, canExplosionDestroyBlock, canFitPassenger, canPassengerSteer, canRenderOnFire, canSwim, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, checkDespawn, collideBoundingBox, collideBoundingBoxHeuristically, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, detach, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fillCrashReport, forceSetPosition, func_225513_by_, func_226265_a_, func_226266_a_, func_226276_cg_, getAdjustedHorizontalFacing, getAir, getAllowedMovement, getBoundingBox, getBoundingBox, getBrightness, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSource, getControllingPassenger, getCustomName, getDataManager, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getEyeHeight, getEyePosition, getFireTimer, getFlag, getForward, getHeight, getHorizontalFacing, getHoverEvent, getJumpFactor, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxFallHeight, getMirroredYaw, getMotion, getMountedYOffset, getOnPosition, getPassengers, getPersistentData, getPitch, getPitchYaw, getPose, getPosition, getPositionUnderneath, getPositionVec, getPositionVector, getPosX, getPosXRandom, getPosXWidth, getPosY, getPosYEye, getPosYHeight, getPosYRandom, getPosZ, getPosZRandom, getPosZWidth, getPushReaction, getRecursivePassengers, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getServer, getSubmergedHeight, getTags, getTeam, getTeamColor, getTeleportDirection, getType, getUniqueID, getUpVector, getVectorForRotation, getWidth, handleFluidAcceleration, handlePistonMovement, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hasPermissionLevel, hitByEntity, horizontalMag, ignoreItemEntityData, isAddedToWorld, isBeingRidden, isBurning, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEntityEqual, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInvisible, isInvisibleToPlayer, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterRainOrBubbleColumn, isLiving, isNonBoss, isOffsetPositionInLiquid, isOnePlayerRiding, isOnSameTeam, isOnScoreboardTeam, isPassenger, isPassenger, isPassenger, isPoseClear, isRidingOrBeingRiddenBy, isRidingSameEntity, isShiftKeyDown, isSilent, isSprinting, isSteppingCarefully, isSuppressingBounce, isVisuallySwimming, isWet, makeFlySound, move, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onAddedToWorld, onCollideWithPlayer, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onRemovedFromWorld, onStruckByLightning, pick, playFlySound, playStepSound, playSwimSound, processInitialInteract, pushOutOfBlocks, read, recalculateSize, recenterBoundingBox, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetPositionToBB, revive, rotateTowards, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFire, setFireTimer, setFlag, setGlowing, setInLava, setInvisible, setInvulnerable, setLocationAndAngles, setMotion, setMotion, setNoGravity, setOnFireFromLava, setPacketCoordinates, setPortal, setPose, setPosition, setPositionAndRotation, setPositionNonDirty, setRawPosition, setRenderDistanceWeight, setRotation, setSilent, setSneaking, setSwimming, setUniqueId, setVelocity, setWorld, shouldReceiveErrors, shouldReceiveFeedback, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, teleportKeepLoaded, toString, updatePassenger, updatePortal, writeUnlessPassenger, writeUnlessRemoved, writeWithoutTypeIdareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapscanBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getEntity, getPickedResult, serializeNBT, shouldRiderSitgetCapabilitypublic ServerPlayNetHandler connection
public final MinecraftServer server
public final PlayerInteractionManager interactionManager
public int currentWindowId
public boolean isChangingQuantityOnly
public int ping
public boolean queuedEndExit
public ServerPlayerEntity(MinecraftServer server, ServerWorld worldIn, com.mojang.authlib.GameProfile profile, PlayerInteractionManager interactionManagerIn)
public void readAdditional(CompoundNBT compound)
readAdditional クラス内 PlayerEntitypublic void writeAdditional(CompoundNBT compound)
writeAdditional クラス内 PlayerEntitypublic void func_195394_a(int p_195394_1_)
public void setExperienceLevel(int level)
public void addExperienceLevel(int levels)
addExperienceLevel クラス内 PlayerEntitypublic void onEnchant(ItemStack enchantedItem, int cost)
onEnchant クラス内 PlayerEntitypublic void addSelfToInternalCraftingInventory()
public void sendEnterCombat()
sendEnterCombat クラス内 LivingEntitypublic void sendEndCombat()
sendEndCombat クラス内 LivingEntityprotected void onInsideBlock(BlockState p_191955_1_)
onInsideBlock クラス内 Entityprotected CooldownTracker createCooldownTracker()
createCooldownTracker クラス内 PlayerEntitypublic void tick()
tick クラス内 PlayerEntitypublic void playerTick()
public void onDeath(DamageSource cause)
onDeath クラス内 PlayerEntitypublic void awardKillScore(Entity p_191956_1_, int p_191956_2_, DamageSource p_191956_3_)
awardKillScore クラス内 Entitypublic boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom クラス内 PlayerEntitypublic boolean canAttackPlayer(PlayerEntity other)
canAttackPlayer クラス内 PlayerEntity@Nullable public Entity changeDimension(DimensionType destination, ITeleporter teleporter)
changeDimension クラス内 Entitypublic boolean isSpectatedByPlayer(ServerPlayerEntity player)
isSpectatedByPlayer クラス内 Entitypublic void onItemPickup(Entity entityIn, int quantity)
onItemPickup クラス内 LivingEntitypublic com.mojang.datafixers.util.Either<PlayerEntity.SleepResult,Unit> trySleep(BlockPos at)
trySleep クラス内 PlayerEntitypublic void func_225652_a_(boolean p_225652_1_,
boolean p_225652_2_)
func_225652_a_ クラス内 PlayerEntitypublic boolean startRiding(Entity entityIn, boolean force)
startRiding クラス内 Entitypublic void stopRiding()
stopRiding クラス内 PlayerEntitypublic boolean isInvulnerableTo(DamageSource source)
isInvulnerableTo クラス内 PlayerEntityprotected void updateFallState(double y,
boolean onGroundIn,
BlockState state,
BlockPos pos)
updateFallState クラス内 LivingEntityprotected void frostWalk(BlockPos pos)
frostWalk クラス内 LivingEntitypublic void handleFalling(double y,
boolean onGroundIn)
public void openSignEditor(SignTileEntity signTile)
openSignEditor クラス内 PlayerEntitypublic void getNextWindowId()
public java.util.OptionalInt openContainer(@Nullable
INamedContainerProvider p_213829_1_)
openContainer クラス内 PlayerEntitypublic void openMerchantContainer(int containerId,
MerchantOffers offers,
int level,
int xp,
boolean p_213818_5_,
boolean p_213818_6_)
openMerchantContainer クラス内 PlayerEntitypublic void openHorseInventory(AbstractHorseEntity horse, IInventory inventoryIn)
openHorseInventory クラス内 PlayerEntitypublic void openBook(ItemStack stack, Hand hand)
openBook クラス内 PlayerEntitypublic void openCommandBlock(CommandBlockTileEntity commandBlock)
openCommandBlock クラス内 PlayerEntitypublic void sendSlotContents(Container containerToSend, int slotInd, ItemStack stack)
sendSlotContents インタフェース内 IContainerListenerpublic void sendContainerToPlayer(Container containerIn)
public void sendAllContents(Container containerToSend, NonNullList<ItemStack> itemsList)
sendAllContents インタフェース内 IContainerListenerpublic void sendWindowProperty(Container containerIn, int varToUpdate, int newValue)
sendWindowProperty インタフェース内 IContainerListenerpublic void closeScreen()
closeScreen クラス内 PlayerEntitypublic void updateHeldItem()
public void closeContainer()
public void setEntityActionState(float strafe,
float forward,
boolean jumping,
boolean sneaking)
public void addStat(Stat<?> stat, int amount)
addStat クラス内 PlayerEntitypublic void takeStat(Stat<?> stat)
takeStat クラス内 PlayerEntitypublic int unlockRecipes(java.util.Collection<IRecipe<?>> p_195065_1_)
unlockRecipes クラス内 PlayerEntitypublic void unlockRecipes(ResourceLocation[] p_193102_1_)
unlockRecipes クラス内 PlayerEntitypublic int resetRecipes(java.util.Collection<IRecipe<?>> p_195069_1_)
resetRecipes クラス内 PlayerEntitypublic void giveExperiencePoints(int p_195068_1_)
giveExperiencePoints クラス内 PlayerEntitypublic void disconnect()
public boolean hasDisconnected()
public void setPlayerHealthUpdated()
public void sendStatusMessage(ITextComponent chatComponent, boolean actionBar)
sendStatusMessage クラス内 PlayerEntityprotected void onItemUseFinish()
onItemUseFinish クラス内 LivingEntitypublic void lookAt(EntityAnchorArgument.Type p_200602_1_, Vec3d p_200602_2_)
lookAt クラス内 LivingEntitypublic void lookAt(EntityAnchorArgument.Type p_200618_1_, Entity p_200618_2_, EntityAnchorArgument.Type p_200618_3_)
public void copyFrom(ServerPlayerEntity that, boolean keepEverything)
protected void onNewPotionEffect(EffectInstance id)
onNewPotionEffect クラス内 LivingEntityprotected void onChangedPotionEffect(EffectInstance id, boolean reapply)
onChangedPotionEffect クラス内 LivingEntityprotected void onFinishedPotionEffect(EffectInstance effect)
onFinishedPotionEffect クラス内 LivingEntitypublic void setPositionAndUpdate(double x,
double y,
double z)
setPositionAndUpdate クラス内 Entitypublic void moveForced(double p_225653_1_,
double p_225653_3_,
double p_225653_5_)
moveForced クラス内 Entitypublic void onCriticalHit(Entity entityHit)
onCriticalHit クラス内 PlayerEntitypublic void onEnchantmentCritical(Entity entityHit)
onEnchantmentCritical クラス内 PlayerEntitypublic void sendPlayerAbilities()
sendPlayerAbilities クラス内 PlayerEntitypublic ServerWorld getServerWorld()
public void setGameType(GameType gameType)
setGameType クラス内 PlayerEntitypublic boolean isSpectator()
isSpectator クラス内 PlayerEntitypublic boolean isCreative()
isCreative クラス内 PlayerEntitypublic void sendMessage(ITextComponent component)
sendMessage インタフェース内 ICommandSourcesendMessage クラス内 Entitypublic void sendMessage(ITextComponent textComponent, ChatType chatTypeIn)
public java.lang.String getPlayerIP()
public void handleClientSettings(CClientSettingsPacket packetIn)
public ChatVisibility getChatVisibility()
public void loadResourcePack(java.lang.String url,
java.lang.String hash)
protected int getPermissionLevel()
getPermissionLevel クラス内 Entitypublic void markPlayerActive()
public ServerStatisticsManager getStats()
public ServerRecipeBook getRecipeBook()
public void removeEntity(Entity entityIn)
public void addEntity(Entity entityIn)
protected void updatePotionMetadata()
updatePotionMetadata クラス内 LivingEntitypublic Entity getSpectatingEntity()
public void setSpectatingEntity(Entity entityToSpectate)
protected void decrementTimeUntilPortal()
decrementTimeUntilPortal クラス内 Entitypublic void attackTargetEntityWithCurrentItem(Entity targetEntity)
attackTargetEntityWithCurrentItem クラス内 PlayerEntitypublic long getLastActiveTime()
@Nullable public ITextComponent getTabListDisplayName()
public void swingArm(Hand hand)
swingArm クラス内 LivingEntitypublic boolean isInvulnerableDimensionChange()
public void clearInvulnerableDimensionChange()
public PlayerAdvancements getAdvancements()
public void teleport(ServerWorld newWorld, double x, double y, double z, float yaw, float pitch)
public void sendChunkLoad(ChunkPos p_213844_1_, IPacket<?> p_213844_2_, IPacket<?> p_213844_3_)
public void sendChunkUnload(ChunkPos p_213845_1_)
public SectionPos getManagedSectionPos()
public void setManagedSectionPos(SectionPos sectionPosIn)
public void playSound(SoundEvent p_213823_1_, SoundCategory p_213823_2_, float p_213823_3_, float p_213823_4_)
playSound クラス内 PlayerEntitypublic IPacket<?> createSpawnPacket()
createSpawnPacket クラス内 LivingEntitypublic ItemEntity dropItem(ItemStack droppedItem, boolean dropAround, boolean traceItem)
dropItem クラス内 PlayerEntity