Package net.minecraft.client.player
Part 1/1
AbstractClientPlayer
- Full name:
net.minecraft.client.player.AbstractClientPlayer - Package:
net.minecraft.client.player - Source:
clientOnly—net/minecraft/client/player/AbstractClientPlayer.java - Type:
class - Modifiers:
public abstract - Extends:
Player
net.minecraft.client.player.AbstractClientPlayer#AbstractClientPlayer(ClientLevel,GameProfile)
- Origin:
clientOnly - Source:
net/minecraft/client/player/AbstractClientPlayer.java:31 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AbstractClientPlayer ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: clientLevel. เรียกต่อ: getSharedSpawnPos(), getSharedSpawnAngle().
Parameters
ClientLevel clientLevelGameProfile gameProfile
ตัวอย่างใช้งาน
ClientLevel clientLevel = ...;
GameProfile gameProfile = ...;
AbstractClientPlayer instance = new AbstractClientPlayer(clientLevel, gameProfile);
net.minecraft.client.player.AbstractClientPlayer#getDeltaMovementLerped(float)
- Origin:
clientOnly - Source:
net/minecraft/client/player/AbstractClientPlayer.java:61 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Delta Movement Lerped
ทำงานยังไง
เรียกต่อ: lerp(), getDeltaMovement(). คืนค่า: this.deltaMovementOnPreviousTick.lerp(this.getDeltaMovement(), f).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.client.player.AbstractClientPlayer#getFieldOfViewModifier(boolean,float)
- Origin:
clientOnly - Source:
net/minecraft/client/player/AbstractClientPlayer.java:70 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Field Of View Modifier
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getAbilities(), getWalkingSpeed(), getAttributeValue(), isUsingItem(), getUseItem(), is(), min(), getTicksUsingItem(). มีจุด return อย่างน้อย 2 จุด.
Parameters
boolean blfloat f
ตัวอย่างใช้งาน
net.minecraft.client.player.AbstractClientPlayer#getPlayerInfo()
- Origin:
clientOnly - Source:
net/minecraft/client/player/AbstractClientPlayer.java:46 - Modifiers:
protected - Return:
PlayerInfo
คืออะไร
อ่านค่า Player Info
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: playerInfo. เรียกต่อ: getInstance(), getConnection(), getUUID(). คืนค่า: this.playerInfo.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.AbstractClientPlayer#getSkin()
- Origin:
clientOnly - Source:
net/minecraft/client/player/AbstractClientPlayer.java:65 - Modifiers:
public - Return:
PlayerSkin
คืออะไร
อ่านค่า Skin
ทำงานยังไง
เรียกต่อ: getPlayerInfo(), get(), getUUID(). คืนค่า: playerInfo == null ? DefaultPlayerSkin.get(this.getUUID()) : playerInfo.getSkin().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.AbstractClientPlayer#isCreative()
- Origin:
clientOnly - Source:
net/minecraft/client/player/AbstractClientPlayer.java:41 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Creative
ทำงานยังไง
เรียกต่อ: getPlayerInfo(), getGameMode(). คืนค่า: playerInfo != null && playerInfo.getGameMode() == GameType.CREATIVE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.AbstractClientPlayer#isSpectator()
- Origin:
clientOnly - Source:
net/minecraft/client/player/AbstractClientPlayer.java:36 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Spectator
ทำงานยังไง
เรียกต่อ: getPlayerInfo(), getGameMode(). คืนค่า: playerInfo != null && playerInfo.getGameMode() == GameType.SPECTATOR.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.AbstractClientPlayer#tick()
- Origin:
clientOnly - Source:
net/minecraft/client/player/AbstractClientPlayer.java:55 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
แก้ state: walkDistO, deltaMovementOnPreviousTick. เรียกต่อ: getDeltaMovement().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ClientInput
- Full name:
net.minecraft.client.player.ClientInput - Package:
net.minecraft.client.player - Source:
clientOnly—net/minecraft/client/player/ClientInput.java - Type:
class - Modifiers:
public
net.minecraft.client.player.ClientInput#getMoveVector()
- Origin:
clientOnly - Source:
net/minecraft/client/player/ClientInput.java:17 - Modifiers:
public - Return:
Vec2
คืออะไร
อ่านค่า Move Vector
ทำงานยังไง
สร้างออบเจ็กต์: Vec2. คืนค่า: new Vec2(this.leftImpulse, this.forwardImpulse).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.ClientInput#hasForwardImpulse()
- Origin:
clientOnly - Source:
net/minecraft/client/player/ClientInput.java:21 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Forward Impulse
ทำงานยังไง
คืนค่า: this.forwardImpulse > 1.0E-5F.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.ClientInput#makeJump()
- Origin:
clientOnly - Source:
net/minecraft/client/player/ClientInput.java:25 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Jump
ทำงานยังไง
แก้ state: keyPresses. เรียกต่อ: forward(), backward(), left(), right(), shift(), sprint(). สร้างออบเจ็กต์: Input.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.ClientInput#tick()
- Origin:
clientOnly - Source:
net/minecraft/client/player/ClientInput.java:14 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
KeyboardInput
- Full name:
net.minecraft.client.player.KeyboardInput - Package:
net.minecraft.client.player - Source:
clientOnly—net/minecraft/client/player/KeyboardInput.java - Type:
class - Modifiers:
public - Extends:
ClientInput
net.minecraft.client.player.KeyboardInput#KeyboardInput(Options)
- Origin:
clientOnly - Source:
net/minecraft/client/player/KeyboardInput.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ KeyboardInput ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: options.
Parameters
Options options
ตัวอย่างใช้งาน
net.minecraft.client.player.KeyboardInput#tick()
- Origin:
clientOnly - Source:
net/minecraft/client/player/KeyboardInput.java:24 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
แก้ state: keyPresses, forwardImpulse, leftImpulse. เรียกต่อ: isDown(), calculateImpulse(), forward(), backward(), left(), right(). สร้างออบเจ็กต์: Input.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LocalPlayer
- Full name:
net.minecraft.client.player.LocalPlayer - Package:
net.minecraft.client.player - Source:
clientOnly—net/minecraft/client/player/LocalPlayer.java - Type:
class - Modifiers:
public - Extends:
AbstractClientPlayer
net.minecraft.client.player.LocalPlayer#aiStep()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:615 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ aiStep ตาม implementation ของ LocalPlayer
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: sprintTriggerTime, crouching, autoJumpTime, jumpTriggerTime, wasFallFlying, waterVisionTime. เรียกต่อ: handleConfusionTransitionEffect(), getActivePortalLocalTransition(), processPortalCooldown(), jump(), shift(), hasEnoughImpulseToStartSprinting(), getAbilities(), isSwimming(). สร้างออบเจ็กต์: ServerboundPlayerCommandPacket.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#canDropItems()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:1110 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Drop Items
ทำงานยังไง
เรียกต่อ: isUnderThreshold(). คืนค่า: this.dropSpamThrottler.isUnderThreshold().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#canSpawnSprintParticle()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:361 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Spawn Sprint Particle
ทำงานยังไง
เรียกต่อ: getAbilities(). คืนค่า: !this.getAbilities().flying && super.canSpawnSprintParticle().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#clientSideCloseContainer()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:323 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ clientSideCloseContainer ตาม implementation ของ LocalPlayer
ทำงานยังไง
เรียกต่อ: closeContainer(), setScreen().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#closeContainer()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:318 - Modifiers:
public - Return:
void
คืออะไร
ปิด Container
ทำงานยังไง
เรียกต่อ: send(), clientSideCloseContainer(). สร้างออบเจ็กต์: ServerboundContainerClosePacket.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#crit(Entity)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:560 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ crit ตาม implementation ของ LocalPlayer
ทำงานยังไง
เรียกต่อ: createTrackingEmitter().
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#displayClientMessage(Component,boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:396 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ displayClientMessage ตาม implementation ของ LocalPlayer
ทำงานยังไง
เรียกต่อ: getChatListener(), handleSystemMessage().
Parameters
Component componentboolean bl
ตัวอย่างใช้งาน
LocalPlayer instance = ...;
Component component = ...;
instance.displayClientMessage(component, true);
net.minecraft.client.player.LocalPlayer#drop(boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:299 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ drop ตาม implementation ของ LocalPlayer
ทำงานยังไง
เรียกต่อ: getInventory(), removeFromSelected(), send(), isEmpty(). สร้างออบเจ็กต์: ServerboundPlayerActionPacket. คืนค่า: !itemStack.isEmpty().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#getActivePortalLocalTransition()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:804 - Modifiers:
public - Return:
Transition
คืออะไร
อ่านค่า Active Portal Local Transition
ทำงานยังไง
แก้ state: portalProcess. เรียกต่อ: getPortalLocalTransition(). คืนค่า: this.portalProcess == null ? Transition.NONE : this.portalProcess.getPortalLocalTransition().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#getCurrentMood()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:232 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Current Mood
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getMoodiness(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#getDoLimitedCrafting()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:461 - Modifiers:
public - Return:
boolean
คืออะไร
อ่านค่า Do Limited Crafting
ทำงานยังไง
คืนค่า: this.doLimitedCrafting.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#getDropSpamThrottler()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:1114 - Modifiers:
public - Return:
TickThrottler
คืออะไร
อ่านค่า Drop Spam Throttler
ทำงานยังไง
คืนค่า: this.dropSpamThrottler.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#getJumpRidingScale()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:521 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Jump Riding Scale
ทำงานยังไง
คืนค่า: this.jumpRidingScale.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#getPermissionLevel()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:388 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Permission Level
ทำงานยังไง
คืนค่า: this.permissionLevel.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#getRecipeBook()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:377 - Modifiers:
public - Return:
ClientRecipeBook
คืออะไร
อ่านค่า Recipe Book
ทำงานยังไง
คืนค่า: this.recipeBook.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#getRopeHoldPosition(float)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:1086 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Rope Hold Position
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getCameraType(), isFirstPerson(), lerp(), getYRot(), getXRot(), getMainArm(), xRot(), yRot(). สร้างออบเจ็กต์: Vec3. มีจุด return อย่างน้อย 2 จุด.
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#getStats()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:373 - Modifiers:
public - Return:
StatsCounter
คืออะไร
อ่านค่า Stats
ทำงานยังไง
คืนค่า: this.stats.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#getUsedItemHand()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:495 - Modifiers:
public - Return:
InteractionHand
คืออะไร
อ่านค่า Used Item Hand
ทำงานยังไง
เรียกต่อ: requireNonNullElse(). คืนค่า: Objects.requireNonNullElse(this.usingItemHand, InteractionHand.MAIN_HAND).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#getViewXRot(float)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:195 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า View XRot
ทำงานยังไง
เรียกต่อ: getXRot(). คืนค่า: this.getXRot().
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#getViewYRot(float)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:199 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า View YRot
ทำงานยังไง
เรียกต่อ: isPassenger(), getYRot(). คืนค่า: this.isPassenger() ? super.getViewYRot(f) : this.getYRot().
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#getVisualRotationYInDegrees()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:1102 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Visual Rotation YIn Degrees
ทำงานยังไง
เรียกต่อ: getYRot(). คืนค่า: this.getYRot().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#getWaterVision()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:1041 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Water Vision
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isEyeInFluid(), clamp(). มีจุด return อย่างน้อย 3 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#handleCreativeModeItemDrop(ItemStack)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:1106 - Modifiers:
public - Return:
void
คืออะไร
จัดการ Creative Mode Item Drop
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
LocalPlayer instance = ...;
ItemStack itemStack = ...;
instance.handleCreativeModeItemDrop(itemStack);
net.minecraft.client.player.LocalPlayer#handleEntityEvent(byte)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:441 - Modifiers:
public - Return:
void
คืออะไร
จัดการ Entity Event
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: setPermissionLevel().
Parameters
byte b
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#heal(float)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:174 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ heal ตาม implementation ของ LocalPlayer
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#hurtTo(float)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:328 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผลความเสียหาย To
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: invulnerableTime, lastHurt, hurtDuration, hurtTime, flashOnSetHealth. เรียกต่อ: getHealth(), setHealth().
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#isAutoJumpEnabled()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:879 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Auto Jump Enabled
ทำงานยังไง
คืนค่า: this.autoJumpEnabled.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#isControlledCamera()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:593 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Controlled Camera
ทำงานยังไง
เรียกต่อ: getCameraEntity(). คืนค่า: this.minecraft.getCameraEntity() == this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#isCrouching()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:572 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Crouching
ทำงานยังไง
คืนค่า: this.crouching.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#isEffectiveAi()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:473 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Effective Ai
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#isHandsBusy()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:855 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Hands Busy
ทำงานยังไง
คืนค่า: this.handsBusy.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#isHorizontalCollisionMinor(Vec3)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:985 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Horizontal Collision Minor
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getYRot(), sin(), cos(), square(), acos(), sqrt(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
Vec3 vec3 = ...;
@Override
protected boolean isHorizontalCollisionMinor(Vec3 vec3) {
return super.isHorizontalCollisionMinor(vec3);
}
net.minecraft.client.player.LocalPlayer#isLocalPlayer()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:353 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Local Player
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#isMovingSlowly()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:576 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Moving Slowly
ทำงานยังไง
เรียกต่อ: isCrouching(), isVisuallyCrawling(). คืนค่า: this.isCrouching() || this.isVisuallyCrawling().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#isShiftKeyDown()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:568 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Shift Key Down
ทำงานยังไง
เรียกต่อ: shift(). คืนค่า: this.input.keyPresses.shift().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#isSuppressingSlidingDownLadder()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:357 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Suppressing Sliding Down Ladder
ทำงานยังไง
เรียกต่อ: getAbilities(). คืนค่า: !this.getAbilities().flying && super.isSuppressingSlidingDownLadder().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#isTextFilteringEnabled()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:525 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Text Filtering Enabled
ทำงานยังไง
คืนค่า: this.minecraft.isTextFilteringEnabled().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#isUnderWater()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:1063 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Under Water
ทำงานยังไง
คืนค่า: this.wasUnderwater.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#isUsingItem()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:486 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Using Item
ทำงานยังไง
คืนค่า: this.startedUsingItem.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#jumpableVehicle()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:516 - Modifiers:
public - Return:
PlayerRideableJumping
คืออะไร
ดำเนินการ jumpableVehicle ตาม implementation ของ LocalPlayer
ทำงานยังไง
เรียกต่อ: getControlledVehicle(), canJump(). คืนค่า: this.getControlledVehicle() instanceof PlayerRideableJumping playerRideableJumping && playerRideableJumping.canJump() ? playerRideableJumping : null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#LocalPlayer(Minecraft,ClientLevel,ClientPacketListener,StatsCounter,ClientRecipeBook,boolean,boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:153 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LocalPlayer ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: minecraft, connection, stats, recipeBook, wasShiftKeyDown, wasSprinting. เรียกต่อ: getLocalGameProfile(), add(), getSoundManager(), getBiomeManager(). สร้างออบเจ็กต์: UnderwaterAmbientSoundHandler, BubbleColumnAmbientSoundHandler, BiomeAmbientSoundsHandler.
Parameters
Minecraft minecraftClientLevel clientLevelClientPacketListener clientPacketListenerStatsCounter statsCounterClientRecipeBook clientRecipeBookboolean blboolean bl2
ตัวอย่างใช้งาน
Minecraft minecraft = ...;
ClientLevel clientLevel = ...;
ClientPacketListener clientPacketListener = ...;
StatsCounter statsCounter = ...;
ClientRecipeBook clientRecipeBook = ...;
LocalPlayer instance = new LocalPlayer(minecraft, clientLevel, clientPacketListener, statsCounter, clientRecipeBook, true, true);
net.minecraft.client.player.LocalPlayer#magicCrit(Entity)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:564 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ magicCrit ตาม implementation ของ LocalPlayer
ทำงานยังไง
เรียกต่อ: createTrackingEmitter().
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#move(MoverType,Vec3)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:869 - Modifiers:
public - Return:
void
คืออะไร
เคลื่อนที่ move
ทำงานยังไง
แก้ state: walkDist. เรียกต่อ: getX(), getZ(), updateAutoJump(), length().
Parameters
MoverType moverTypeVec3 vec3
ตัวอย่างใช้งาน
LocalPlayer instance = ...;
MoverType moverType = ...;
Vec3 vec3 = ...;
instance.move(moverType, vec3);
net.minecraft.client.player.LocalPlayer#onGameModeChanged(GameType)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:1057 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Game Mode Changed
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: setDeltaMovement(), getDeltaMovement(), with().
Parameters
GameType gameType
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#onSyncedDataUpdated(EntityDataAccessor<?>)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:499 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Synced Data Updated
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: equals(), get(), startUsingItem(), stopUsingItem(), isFallFlying(), getSoundManager(), play(). สร้างออบเจ็กต์: ElytraOnPlayerSoundInstance.
Parameters
EntityDataAccessor<?> entityDataAccessor
ตัวอย่างใช้งาน
LocalPlayer instance = ...;
EntityDataAccessor<?> entityDataAccessor = ...;
instance.onSyncedDataUpdated(entityDataAccessor);
net.minecraft.client.player.LocalPlayer#onUpdateAbilities()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:349 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Update Abilities
ทำงานยังไง
เรียกต่อ: send(), getAbilities(). สร้างออบเจ็กต์: ServerboundPlayerAbilitiesPacket.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#openCommandBlock(CommandBlockEntity)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:541 - Modifiers:
public - Return:
void
คืออะไร
เปิด Command Block
ทำงานยังไง
เรียกต่อ: setScreen(). สร้างออบเจ็กต์: CommandBlockEditScreen.
Parameters
CommandBlockEntity commandBlockEntity
ตัวอย่างใช้งาน
LocalPlayer instance = ...;
CommandBlockEntity commandBlockEntity = ...;
instance.openCommandBlock(commandBlockEntity);
net.minecraft.client.player.LocalPlayer#openItemGui(ItemStack,InteractionHand)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:553 - Modifiers:
public - Return:
void
คืออะไร
เปิด Item Gui
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), setScreen(). สร้างออบเจ็กต์: BookEditScreen.
Parameters
ItemStack itemStackInteractionHand interactionHand
ตัวอย่างใช้งาน
LocalPlayer instance = ...;
ItemStack itemStack = ...;
InteractionHand interactionHand = ...;
instance.openItemGui(itemStack, interactionHand);
net.minecraft.client.player.LocalPlayer#openJigsawBlock(JigsawBlockEntity)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:549 - Modifiers:
public - Return:
void
คืออะไร
เปิด Jigsaw Block
ทำงานยังไง
เรียกต่อ: setScreen(). สร้างออบเจ็กต์: JigsawBlockEditScreen.
Parameters
JigsawBlockEntity jigsawBlockEntity
ตัวอย่างใช้งาน
LocalPlayer instance = ...;
JigsawBlockEntity jigsawBlockEntity = ...;
instance.openJigsawBlock(jigsawBlockEntity);
net.minecraft.client.player.LocalPlayer#openMinecartCommandBlock(BaseCommandBlock)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:537 - Modifiers:
public - Return:
void
คืออะไร
เปิด Minecart Command Block
ทำงานยังไง
เรียกต่อ: setScreen(). สร้างออบเจ็กต์: MinecartCommandBlockEditScreen.
Parameters
BaseCommandBlock baseCommandBlock
ตัวอย่างใช้งาน
LocalPlayer instance = ...;
BaseCommandBlock baseCommandBlock = ...;
instance.openMinecartCommandBlock(baseCommandBlock);
net.minecraft.client.player.LocalPlayer#openStructureBlock(StructureBlockEntity)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:545 - Modifiers:
public - Return:
void
คืออะไร
เปิด Structure Block
ทำงานยังไง
เรียกต่อ: setScreen(). สร้างออบเจ็กต์: StructureBlockEditScreen.
Parameters
StructureBlockEntity structureBlockEntity
ตัวอย่างใช้งาน
LocalPlayer instance = ...;
StructureBlockEntity structureBlockEntity = ...;
instance.openStructureBlock(structureBlockEntity);
net.minecraft.client.player.LocalPlayer#openTextEdit(SignBlockEntity,boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:529 - Modifiers:
public - Return:
void
คืออะไร
เปิด Text Edit
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: setScreen(), isTextFilteringEnabled(). สร้างออบเจ็กต์: HangingSignEditScreen, SignEditScreen.
Parameters
SignBlockEntity signBlockEntityboolean bl
ตัวอย่างใช้งาน
LocalPlayer instance = ...;
SignBlockEntity signBlockEntity = ...;
instance.openTextEdit(signBlockEntity, true);
net.minecraft.client.player.LocalPlayer#playNotifySound(SoundEvent,SoundSource,float,float)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:469 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ playNotifySound ตาม implementation ของ LocalPlayer
ทำงานยังไง
เรียกต่อ: level(), playLocalSound(), getX(), getY(), getZ().
Parameters
SoundEvent soundEventSoundSource soundSourcefloat ffloat g
ตัวอย่างใช้งาน
LocalPlayer instance = ...;
SoundEvent soundEvent = ...;
SoundSource soundSource = ...;
instance.playNotifySound(soundEvent, soundSource, 0.0F, 0.0F);
net.minecraft.client.player.LocalPlayer#playSound(SoundEvent,float,float)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:465 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ playSound ตาม implementation ของ LocalPlayer
ทำงานยังไง
เรียกต่อ: level(), playLocalSound(), getX(), getY(), getZ(), getSoundSource().
Parameters
SoundEvent soundEventfloat ffloat g
ตัวอย่างใช้งาน
LocalPlayer instance = ...;
SoundEvent soundEvent = ...;
instance.playSound(soundEvent, 0.0F, 0.0F);
net.minecraft.client.player.LocalPlayer#removeEffectNoUpdate(Holder<MobEffect>)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:859 - Modifiers:
public - Return:
MobEffectInstance
คืออะไร
ลบ Effect No Update
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: oSpinningEffectIntensity, spinningEffectIntensity. เรียกต่อ: is(). คืนค่า: super.removeEffectNoUpdate(holder).
Parameters
Holder<MobEffect> holder
ตัวอย่างใช้งาน
LocalPlayer instance = ...;
Holder<MobEffect> holder = ...;
MobEffectInstance result = instance.removeEffectNoUpdate(holder);
net.minecraft.client.player.LocalPlayer#removeRecipeHighlight(RecipeDisplayId)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:381 - Modifiers:
public - Return:
void
คืออะไร
ลบ Recipe Highlight
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: willHighlight(), removeHighlight(), send(). สร้างออบเจ็กต์: ServerboundRecipeBookSeenRecipePacket.
Parameters
RecipeDisplayId recipeDisplayId
ตัวอย่างใช้งาน
LocalPlayer instance = ...;
RecipeDisplayId recipeDisplayId = ...;
instance.removeRecipeHighlight(recipeDisplayId);
net.minecraft.client.player.LocalPlayer#removeVehicle()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:190 - Modifiers:
public - Return:
void
คืออะไร
ลบ Vehicle
ทำงานยังไง
แก้ state: handsBusy.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#resetPos()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:597 - Modifiers:
public - Return:
void
คืออะไร
รีเซ็ต Pos
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: deathTime. เรียกต่อ: setPose(), level(), getY(), getMinY(), getMaxY(), setPos(), getX(), getZ().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#respawn()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:313 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ respawn ตาม implementation ของ LocalPlayer
ทำงานยังไง
เรียกต่อ: send(), resetToggleKeys(). สร้างออบเจ็กต์: ServerboundClientCommandPacket.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#rideTick()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:845 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ rideTick ตาม implementation ของ LocalPlayer
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: handsBusy. เรียกต่อ: getControlledVehicle(), setInput(), left(), right(), forward(), backward().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#sendOpenInventory()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:369 - Modifiers:
public - Return:
void
คืออะไร
ส่ง Open Inventory
ทำงานยังไง
เรียกต่อ: send(). สร้างออบเจ็กต์: ServerboundPlayerCommandPacket.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#sendRidingJump()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:365 - Modifiers:
protected - Return:
void
คืออะไร
ส่ง Riding Jump
ทำงานยังไง
เรียกต่อ: send(), floor(), getJumpRidingScale(). สร้างออบเจ็กต์: ServerboundPlayerCommandPacket.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#serverAiStep()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:580 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ serverAiStep ตาม implementation ของ LocalPlayer
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: xxa, zza, jumping, yBobO, xBobO, xBob. เรียกต่อ: isControlledCamera(), jump(), getXRot(), getYRot().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#setDoLimitedCrafting(boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:457 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Do Limited Crafting
ทำงานยังไง
แก้ state: doLimitedCrafting.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#setExperienceValues(float,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:435 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Experience Values
ทำงานยังไง
แก้ state: experienceProgress, totalExperience, experienceLevel.
Parameters
float fint iint j
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#setPermissionLevel(int)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:392 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Permission Level
ทำงานยังไง
แก้ state: permissionLevel.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#setShowDeathScreen(boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:449 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Show Death Screen
ทำงานยังไง
แก้ state: showDeathScreen.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#shouldRotateWithMinecart()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:883 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Rotate With Minecart
ทำงานยังไง
เรียกต่อ: rotateWithMinecart(), get(). คืนค่า: this.minecraft.options.rotateWithMinecart().get().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#shouldShowDeathScreen()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:453 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Show Death Screen
ทำงานยังไง
คืนค่า: this.showDeathScreen.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#startRiding(Entity,boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:177 - Modifiers:
public - Return:
boolean
คืออะไร
เริ่ม Riding
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getSoundManager(), play(). สร้างออบเจ็กต์: RidingMinecartSoundInstance. มีจุด return อย่างน้อย 2 จุด.
Parameters
Entity entityboolean bl
ตัวอย่างใช้งาน
LocalPlayer instance = ...;
Entity entity = ...;
boolean result = instance.startRiding(entity, true);
net.minecraft.client.player.LocalPlayer#startUsingItem(InteractionHand)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:477 - Modifiers:
public - Return:
void
คืออะไร
เริ่ม Using Item
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: startedUsingItem, usingItemHand. เรียกต่อ: getItemInHand(), isEmpty(), isUsingItem().
Parameters
InteractionHand interactionHand
ตัวอย่างใช้งาน
LocalPlayer instance = ...;
InteractionHand interactionHand = ...;
instance.startUsingItem(interactionHand);
net.minecraft.client.player.LocalPlayer#stopUsingItem()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:490 - Modifiers:
public - Return:
void
คืออะไร
หยุด Using Item
ทำงานยังไง
แก้ state: startedUsingItem.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#swing(InteractionHand)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:308 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ swing ตาม implementation ของ LocalPlayer
ทำงานยังไง
เรียกต่อ: send(). สร้างออบเจ็กต์: ServerboundSwingPacket.
Parameters
InteractionHand interactionHand
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#tick()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:203 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: lastSentInput. เรียกต่อ: tickClientLoadTimeout(), hasClientLoaded(), sendShiftKeyState(), equals(), send(), isPassenger(), getYRot(), getXRot(). สร้างออบเจ็กต์: ServerboundPlayerInputPacket, Rot.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#tickDeath()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:808 - Modifiers:
protected - Return:
void
คืออะไร
ประมวลผล tick Death
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: deathTime. เรียกต่อ: remove().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#updateAutoJump(float,float)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:887 - Modifiers:
protected - Return:
void
คืออะไร
อัปเดต Auto Jump
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: autoJumpTime. เรียกต่อ: canAutoJump(), position(), add(), getSpeed(), lengthSqr(), getMoveVector(), sin(), getYRot(). สร้างออบเจ็กต์: Vec3, AABB.
Parameters
float ffloat g
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#updateIsUnderwater()
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:1067 - Modifiers:
protected - Return:
boolean
คืออะไร
อัปเดต Is Underwater
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isSpectator(), level(), playLocalSound(), getX(), getY(), getZ(), getSoundManager(), play(). สร้างออบเจ็กต์: UnderwaterAmbientSoundInstances.UnderwaterAmbientSoundInstance. มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.LocalPlayer#updateTutorialInventoryAction(ItemStack,ItemStack,ClickAction)
- Origin:
clientOnly - Source:
net/minecraft/client/player/LocalPlayer.java:1098 - Modifiers:
public - Return:
void
คืออะไร
อัปเดต Tutorial Inventory Action
ทำงานยังไง
เรียกต่อ: getTutorial(), onInventoryAction().
Parameters
ItemStack itemStackItemStack itemStack2ClickAction clickAction
ตัวอย่างใช้งาน
LocalPlayer instance = ...;
ItemStack itemStack = ...;
ItemStack itemStack2 = ...;
ClickAction clickAction = ...;
instance.updateTutorialInventoryAction(itemStack, itemStack2, clickAction);
RemotePlayer
- Full name:
net.minecraft.client.player.RemotePlayer - Package:
net.minecraft.client.player - Source:
clientOnly—net/minecraft/client/player/RemotePlayer.java - Type:
class - Modifiers:
public - Extends:
AbstractClientPlayer
net.minecraft.client.player.RemotePlayer#aiStep()
- Origin:
clientOnly - Source:
net/minecraft/client/player/RemotePlayer.java:43 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ aiStep ตาม implementation ของ RemotePlayer
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. แก้ state: lerpSteps, lerpHeadSteps, lerpDeltaMovementSteps, oBob, bob. เรียกต่อ: lerpPositionAndRotationStep(), lerpHeadRotationStep(), addDeltaMovement(), getDeltaMovement(), updateSwingTime(), onGround(), isDeadOrDying(), min(). สร้างออบเจ็กต์: Vec3.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.RemotePlayer#hurtClient(DamageSource)
- Origin:
clientOnly - Source:
net/minecraft/client/player/RemotePlayer.java:33 - Modifiers:
public - Return:
boolean
คืออะไร
ประมวลผลความเสียหาย Client
ทำงานยังไง
คืนค่า: true.
Parameters
DamageSource damageSource
ตัวอย่างใช้งาน
RemotePlayer instance = ...;
DamageSource damageSource = ...;
boolean result = instance.hurtClient(damageSource);
net.minecraft.client.player.RemotePlayer#lerpMotion(double,double,double)
- Origin:
clientOnly - Source:
net/minecraft/client/player/RemotePlayer.java:96 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ lerpMotion ตาม implementation ของ RemotePlayer
ทำงานยังไง
แก้ state: lerpDeltaMovement, lerpDeltaMovementSteps. เรียกต่อ: getType(), updateInterval(). สร้างออบเจ็กต์: Vec3.
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.client.player.RemotePlayer#recreateFromPacket(ClientboundAddEntityPacket)
- Origin:
clientOnly - Source:
net/minecraft/client/player/RemotePlayer.java:104 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ recreateFromPacket ตาม implementation ของ RemotePlayer
ทำงานยังไง
เรียกต่อ: setOldPosAndRot().
Parameters
ClientboundAddEntityPacket clientboundAddEntityPacket
ตัวอย่างใช้งาน
RemotePlayer instance = ...;
ClientboundAddEntityPacket clientboundAddEntityPacket = ...;
instance.recreateFromPacket(clientboundAddEntityPacket);
net.minecraft.client.player.RemotePlayer#RemotePlayer(ClientLevel,GameProfile)
- Origin:
clientOnly - Source:
net/minecraft/client/player/RemotePlayer.java:18 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ RemotePlayer ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: noPhysics.
Parameters
ClientLevel clientLevelGameProfile gameProfile
ตัวอย่างใช้งาน
ClientLevel clientLevel = ...;
GameProfile gameProfile = ...;
RemotePlayer instance = new RemotePlayer(clientLevel, gameProfile);
net.minecraft.client.player.RemotePlayer#shouldRenderAtSqrDistance(double)
- Origin:
clientOnly - Source:
net/minecraft/client/player/RemotePlayer.java:23 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Render At Sqr Distance
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getBoundingBox(), getSize(), isNaN(), getViewScale(). คืนค่า: d < e * e.
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.client.player.RemotePlayer#tick()
- Origin:
clientOnly - Source:
net/minecraft/client/player/RemotePlayer.java:37 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
เรียกต่อ: calculateEntityAnimation().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.player.RemotePlayer#updatePlayerPose()
- Origin:
clientOnly - Source:
net/minecraft/client/player/RemotePlayer.java:101 - Modifiers:
protected - Return:
void
คืออะไร
อัปเดต Player Pose
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี