Package net.minecraft.world.entity
Part 1/1
AgeableMob
- Full name:
net.minecraft.world.entity.AgeableMob - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/AgeableMob.java - Type:
class - Modifiers:
public abstract - Extends:
PathfinderMob
net.minecraft.world.entity.AgeableMob#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/AgeableMob.java:103 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
เรียกต่อ: putInt(), getAge().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
AgeableMob instance = ...;
CompoundTag compoundTag = ...;
instance.addAdditionalSaveData(compoundTag);
net.minecraft.world.entity.AgeableMob#AgeableMob(EntityType<? extends AgeableMob>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/AgeableMob.java:24 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AgeableMob ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EntityType<? extends AgeableMob> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<? extends AgeableMob> entityType = ...;
Level level = ...;
AgeableMob instance = new AgeableMob(entityType, level);
net.minecraft.world.entity.AgeableMob#ageBoundaryReached()
- Origin:
common - Source:
net/minecraft/world/entity/AgeableMob.java:147 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ ageBoundaryReached ตาม implementation ของ AgeableMob
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isBaby(), isPassenger(), getVehicle(), hasEnoughSpaceFor(), stopRiding().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.AgeableMob#ageUp(int)
- Origin:
common - Source:
net/minecraft/world/entity/AgeableMob.java:90 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ ageUp ตาม implementation ของ AgeableMob
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.AgeableMob#ageUp(int,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/AgeableMob.java:68 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ ageUp ตาม implementation ของ AgeableMob
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: forcedAge, forcedAgeTimer. เรียกต่อ: getAge(), setAge().
Parameters
int iboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.AgeableMob#aiStep()
- Origin:
common - Source:
net/minecraft/world/entity/AgeableMob.java:126 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ aiStep ตาม implementation ของ AgeableMob
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: forcedAgeTimer. เรียกต่อ: level(), addParticle(), getRandomX(), getRandomY(), getRandomZ(), isAlive(), getAge(), setAge().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.AgeableMob#canBreed()
- Origin:
common - Source:
net/minecraft/world/entity/AgeableMob.java:56 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Breed
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.AgeableMob#defineSynchedData(SynchedEntityData.Builder)
- Origin:
common - Source:
net/minecraft/world/entity/AgeableMob.java:50 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ defineSynchedData ตาม implementation ของ AgeableMob
ทำงานยังไง
เรียกต่อ: define().
Parameters
SynchedEntityData.Builder builder
ตัวอย่างใช้งาน
SynchedEntityData.Builder builder = ...;
@Override
protected void defineSynchedData(SynchedEntityData.Builder builder) {
super.defineSynchedData(builder);
}
net.minecraft.world.entity.AgeableMob#finalizeSpawn(ServerLevelAccessor,DifficultyInstance,EntitySpawnReason,SpawnGroupData)
- Origin:
common - Source:
net/minecraft/world/entity/AgeableMob.java:28 - Modifiers:
public - Return:
SpawnGroupData
คืออะไร
ดำเนินการ finalizeSpawn ตาม implementation ของ AgeableMob
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: AgeableMobGroupData(), isShouldSpawnBaby(), getGroupSize(), getRandom(), nextFloat(), getBabySpawnChance(), setAge(), increaseGroupSizeByOne(). สร้างออบเจ็กต์: AgeableMob.AgeableMobGroupData. คืนค่า: super.finalizeSpawn(serverLevelAccessor, difficultyInstance, entitySpawnReason, spawnGroupData).
Parameters
ServerLevelAccessor serverLevelAccessorDifficultyInstance difficultyInstanceEntitySpawnReason entitySpawnReasonSpawnGroupData spawnGroupData
ตัวอย่างใช้งาน
AgeableMob instance = ...;
ServerLevelAccessor serverLevelAccessor = ...;
DifficultyInstance difficultyInstance = ...;
EntitySpawnReason entitySpawnReason = ...;
SpawnGroupData spawnGroupData = ...;
SpawnGroupData result = instance.finalizeSpawn(serverLevelAccessor, difficultyInstance, entitySpawnReason, spawnGroupData);
net.minecraft.world.entity.AgeableMob#getAge()
- Origin:
common - Source:
net/minecraft/world/entity/AgeableMob.java:60 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Age
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), get(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.AgeableMob#getBreedOffspring(ServerLevel,AgeableMob)
- Origin:
common - Source:
net/minecraft/world/entity/AgeableMob.java:47 - Modifiers:
public abstract - Return:
AgeableMob
คืออะไร
อ่านค่า Breed Offspring
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
ServerLevel serverLevelAgeableMob ageableMob
ตัวอย่างใช้งาน
AgeableMob instance = ...;
ServerLevel serverLevel = ...;
AgeableMob ageableMob = ...;
AgeableMob result = instance.getBreedOffspring(serverLevel, ageableMob);
net.minecraft.world.entity.AgeableMob#getForcedAge()
- Origin:
common - Source:
net/minecraft/world/entity/AgeableMob.java:167 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Forced Age
ทำงานยังไง
คืนค่า: this.forcedAge.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.AgeableMob#getForcedAgeTimer()
- Origin:
common - Source:
net/minecraft/world/entity/AgeableMob.java:172 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Forced Age Timer
ทำงานยังไง
คืนค่า: this.forcedAgeTimer.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.AgeableMob#getSpeedUpSecondsWhenFeeding(int)
- Origin:
common - Source:
net/minecraft/world/entity/AgeableMob.java:163 - Modifiers:
public static - Return:
int
คืออะไร
อ่านค่า Speed Up Seconds When Feeding
ทำงานยังไง
คืนค่า: (int)(i / 20 * 0.1F).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.AgeableMob#isBaby()
- Origin:
common - Source:
net/minecraft/world/entity/AgeableMob.java:153 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Baby
ทำงานยังไง
เรียกต่อ: getAge(). คืนค่า: this.getAge() < 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.AgeableMob#onSyncedDataUpdated(EntityDataAccessor<?>)
- Origin:
common - Source:
net/minecraft/world/entity/AgeableMob.java:117 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Synced Data Updated
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: equals(), refreshDimensions().
Parameters
EntityDataAccessor<?> entityDataAccessor
ตัวอย่างใช้งาน
AgeableMob instance = ...;
EntityDataAccessor<?> entityDataAccessor = ...;
instance.onSyncedDataUpdated(entityDataAccessor);
net.minecraft.world.entity.AgeableMob#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/AgeableMob.java:110 - Modifiers:
public - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
แก้ state: forcedAge. เรียกต่อ: setAge(), getInt().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
AgeableMob instance = ...;
CompoundTag compoundTag = ...;
instance.readAdditionalSaveData(compoundTag);
net.minecraft.world.entity.AgeableMob#setAge(int)
- Origin:
common - Source:
net/minecraft/world/entity/AgeableMob.java:94 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Age
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: age. เรียกต่อ: getAge(), set(), ageBoundaryReached().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.AgeableMob#setBaby(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/AgeableMob.java:158 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Baby
ทำงานยังไง
เรียกต่อ: setAge().
Parameters
boolean bl
ตัวอย่างใช้งาน
AgeableMob$AgeableMobGroupData
- Full name:
net.minecraft.world.entity.AgeableMob$AgeableMobGroupData - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/AgeableMob.java - Type:
class - Modifiers:
public static - Implements:
SpawnGroupData
net.minecraft.world.entity.AgeableMob$AgeableMobGroupData#AgeableMobGroupData(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/AgeableMob.java:187 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AgeableMob.AgeableMobGroupData ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.AgeableMob$AgeableMobGroupData#AgeableMobGroupData(boolean,float)
- Origin:
common - Source:
net/minecraft/world/entity/AgeableMob.java:182 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AgeableMob.AgeableMobGroupData ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: shouldSpawnBaby, babySpawnChance.
Parameters
boolean blfloat f
ตัวอย่างใช้งาน
net.minecraft.world.entity.AgeableMob$AgeableMobGroupData#AgeableMobGroupData(float)
- Origin:
common - Source:
net/minecraft/world/entity/AgeableMob.java:191 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AgeableMob.AgeableMobGroupData ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.AgeableMob$AgeableMobGroupData#getBabySpawnChance()
- Origin:
common - Source:
net/minecraft/world/entity/AgeableMob.java:207 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Baby Spawn Chance
ทำงานยังไง
คืนค่า: this.babySpawnChance.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.AgeableMob$AgeableMobGroupData#getGroupSize()
- Origin:
common - Source:
net/minecraft/world/entity/AgeableMob.java:195 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Group Size
ทำงานยังไง
คืนค่า: this.groupSize.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.AgeableMob$AgeableMobGroupData#increaseGroupSizeByOne()
- Origin:
common - Source:
net/minecraft/world/entity/AgeableMob.java:199 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ increaseGroupSizeByOne ตาม implementation ของ AgeableMob$AgeableMobGroupData
ทำงานยังไง
แก้ state: groupSize.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.AgeableMob$AgeableMobGroupData#isShouldSpawnBaby()
- Origin:
common - Source:
net/minecraft/world/entity/AgeableMob.java:203 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Should Spawn Baby
ทำงานยังไง
คืนค่า: this.shouldSpawnBaby.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
AnimationState
- Full name:
net.minecraft.world.entity.AnimationState - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/AnimationState.java - Type:
class - Modifiers:
public
net.minecraft.world.entity.AnimationState#animateWhen(boolean,int)
- Origin:
common - Source:
net/minecraft/world/entity/AnimationState.java:19 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ animateWhen ตาม implementation ของ AnimationState
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: startIfStopped(), stop().
Parameters
boolean blint i
ตัวอย่างใช้งาน
net.minecraft.world.entity.AnimationState#copyFrom(AnimationState)
- Origin:
common - Source:
net/minecraft/world/entity/AnimationState.java:52 - Modifiers:
public - Return:
void
คืออะไร
คัดลอก From
ทำงานยังไง
แก้ state: startTick.
Parameters
AnimationState animationState
ตัวอย่างใช้งาน
AnimationState instance = ...;
AnimationState animationState = ...;
instance.copyFrom(animationState);
net.minecraft.world.entity.AnimationState#fastForward(int,float)
- Origin:
common - Source:
net/minecraft/world/entity/AnimationState.java:37 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fastForward ตาม implementation ของ AnimationState
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: startTick. เรียกต่อ: isStarted().
Parameters
int ifloat f
ตัวอย่างใช้งาน
net.minecraft.world.entity.AnimationState#getTimeInMillis(float)
- Origin:
common - Source:
net/minecraft/world/entity/AnimationState.java:43 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า Time In Millis
ทำงานยังไง
คืนค่า: (long)(g * 50.0F).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.AnimationState#ifStarted(Consumer<AnimationState>)
- Origin:
common - Source:
net/minecraft/world/entity/AnimationState.java:31 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ ifStarted ตาม implementation ของ AnimationState
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isStarted(), accept().
Parameters
Consumer<AnimationState> consumer
ตัวอย่างใช้งาน
AnimationState instance = ...;
Consumer<AnimationState> consumer = ...;
instance.ifStarted(consumer);
net.minecraft.world.entity.AnimationState#isStarted()
- Origin:
common - Source:
net/minecraft/world/entity/AnimationState.java:48 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Started
ทำงานยังไง
คืนค่า: this.startTick != Integer.MIN_VALUE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.AnimationState#start(int)
- Origin:
common - Source:
net/minecraft/world/entity/AnimationState.java:9 - Modifiers:
public - Return:
void
คืออะไร
เริ่ม start
ทำงานยังไง
แก้ state: startTick.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.AnimationState#startIfStopped(int)
- Origin:
common - Source:
net/minecraft/world/entity/AnimationState.java:13 - Modifiers:
public - Return:
void
คืออะไร
เริ่ม If Stopped
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isStarted(), start().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.AnimationState#stop()
- Origin:
common - Source:
net/minecraft/world/entity/AnimationState.java:27 - Modifiers:
public - Return:
void
คืออะไร
หยุด stop
ทำงานยังไง
แก้ state: startTick.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
AreaEffectCloud
- Full name:
net.minecraft.world.entity.AreaEffectCloud - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/AreaEffectCloud.java - Type:
class - Modifiers:
public - Extends:
Entity - Implements:
TraceableEntity
net.minecraft.world.entity.AreaEffectCloud#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:347 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: putInt(), putFloat(), getRadius(), registryAccess(), createSerializationContext(), put(), encodeStart(), getParticle().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(CompoundTag compoundTag) {
super.addAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.AreaEffectCloud#addEffect(MobEffectInstance)
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:103 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Effect
ทำงานยังไง
เรียกต่อ: setPotionContents(), withEffectAdded().
Parameters
MobEffectInstance mobEffectInstance
ตัวอย่างใช้งาน
AreaEffectCloud instance = ...;
MobEffectInstance mobEffectInstance = ...;
instance.addEffect(mobEffectInstance);
net.minecraft.world.entity.AreaEffectCloud#AreaEffectCloud(EntityType<? extends AreaEffectCloud>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:54 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AreaEffectCloud ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: noPhysics.
Parameters
EntityType<? extends AreaEffectCloud> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<? extends AreaEffectCloud> entityType = ...;
Level level = ...;
AreaEffectCloud instance = new AreaEffectCloud(entityType, level);
net.minecraft.world.entity.AreaEffectCloud#AreaEffectCloud(Level,double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:59 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AreaEffectCloud ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: setPos().
Parameters
Level leveldouble ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.entity.AreaEffectCloud#defineSynchedData(SynchedEntityData.Builder)
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:64 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ defineSynchedData ตาม implementation ของ AreaEffectCloud
ทำงานยังไง
เรียกต่อ: define(), create().
Parameters
SynchedEntityData.Builder builder
ตัวอย่างใช้งาน
SynchedEntityData.Builder builder = ...;
@Override
protected void defineSynchedData(SynchedEntityData.Builder builder) {
super.defineSynchedData(builder);
}
net.minecraft.world.entity.AreaEffectCloud#getDimensions(Pose)
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:383 - Modifiers:
public - Return:
EntityDimensions
คืออะไร
อ่านค่า Dimensions
ทำงานยังไง
เรียกต่อ: scalable(), getRadius(). คืนค่า: EntityDimensions.scalable(this.getRadius() * 2.0F, 0.5F).
Parameters
Pose pose
ตัวอย่างใช้งาน
AreaEffectCloud instance = ...;
Pose pose = ...;
EntityDimensions result = instance.getDimensions(pose);
net.minecraft.world.entity.AreaEffectCloud#getDuration()
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:123 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Duration
ทำงานยังไง
คืนค่า: this.duration.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.AreaEffectCloud#getDurationOnUse()
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:283 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Duration On Use
ทำงานยังไง
คืนค่า: this.durationOnUse.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.AreaEffectCloud#getOwner()
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:304 - Modifiers:
public - Return:
LivingEntity
คืออะไร
อ่านค่า Owner
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: owner. เรียกต่อ: isRemoved(), level(), getEntity(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.AreaEffectCloud#getParticle()
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:107 - Modifiers:
public - Return:
ParticleOptions
คืออะไร
อ่านค่า Particle
ทำงานยังไง
เรียกต่อ: getEntityData(), get(). คืนค่า: this.getEntityData().get(DATA_PARTICLE).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.AreaEffectCloud#getPistonPushReaction()
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:378 - Modifiers:
public - Return:
PushReaction
คืออะไร
อ่านค่า Piston Push Reaction
ทำงานยังไง
คืนค่า: PushReaction.IGNORE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.AreaEffectCloud#getRadius()
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:86 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Radius
ทำงานยังไง
เรียกต่อ: getEntityData(), get(). คืนค่า: this.getEntityData().get(DATA_RADIUS).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.AreaEffectCloud#getRadiusOnUse()
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:267 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Radius On Use
ทำงานยังไง
คืนค่า: this.radiusOnUse.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.AreaEffectCloud#getRadiusPerTick()
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:275 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Radius Per Tick
ทำงานยังไง
คืนค่า: this.radiusPerTick.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.AreaEffectCloud#getWaitTime()
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:291 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Wait Time
ทำงานยังไง
คืนค่า: this.waitTime.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.AreaEffectCloud#hurtServer(ServerLevel,DamageSource,float)
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:388 - Modifiers:
public final - Return:
boolean
คืออะไร
ประมวลผลความเสียหาย Server
ทำงานยังไง
คืนค่า: false.
Parameters
ServerLevel serverLevelDamageSource damageSourcefloat f
ตัวอย่างใช้งาน
AreaEffectCloud instance = ...;
ServerLevel serverLevel = ...;
DamageSource damageSource = ...;
boolean result = instance.hurtServer(serverLevel, damageSource, 0.0F);
net.minecraft.world.entity.AreaEffectCloud#isWaiting()
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:119 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Waiting
ทำงานยังไง
เรียกต่อ: getEntityData(), get(). คืนค่า: this.getEntityData().get(DATA_WAITING).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.AreaEffectCloud#onSyncedDataUpdated(EntityDataAccessor<?>)
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:369 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Synced Data Updated
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: equals(), refreshDimensions().
Parameters
EntityDataAccessor<?> entityDataAccessor
ตัวอย่างใช้งาน
AreaEffectCloud instance = ...;
EntityDataAccessor<?> entityDataAccessor = ...;
instance.onSyncedDataUpdated(entityDataAccessor);
net.minecraft.world.entity.AreaEffectCloud#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:317 - Modifiers:
protected - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: tickCount, duration, waitTime, reapplicationDelay, durationOnUse, radiusOnUse. เรียกต่อ: getInt(), getFloat(), setRadius(), hasUUID(), getUUID(), registryAccess(), createSerializationContext(), contains().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void readAdditionalSaveData(CompoundTag compoundTag) {
super.readAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.AreaEffectCloud#refreshDimensions()
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:77 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ refreshDimensions ตาม implementation ของ AreaEffectCloud
ทำงานยังไง
เรียกต่อ: getX(), getY(), getZ(), setPos().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.AreaEffectCloud#setDuration(int)
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:127 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Duration
ทำงานยังไง
แก้ state: duration.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.AreaEffectCloud#setDurationOnUse(int)
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:287 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Duration On Use
ทำงานยังไง
แก้ state: durationOnUse.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.AreaEffectCloud#setOwner(LivingEntity)
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:299 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Owner
ทำงานยังไง
แก้ state: owner, ownerUUID. เรียกต่อ: getUUID().
Parameters
LivingEntity livingEntity
ตัวอย่างใช้งาน
net.minecraft.world.entity.AreaEffectCloud#setParticle(ParticleOptions)
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:111 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Particle
ทำงานยังไง
เรียกต่อ: getEntityData(), set().
Parameters
ParticleOptions particleOptions
ตัวอย่างใช้งาน
AreaEffectCloud instance = ...;
ParticleOptions particleOptions = ...;
instance.setParticle(particleOptions);
net.minecraft.world.entity.AreaEffectCloud#setPotionContents(PotionContents)
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:90 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Potion Contents
ทำงานยังไง
แก้ state: potionContents. เรียกต่อ: updateColor().
Parameters
PotionContents potionContents
ตัวอย่างใช้งาน
AreaEffectCloud instance = ...;
PotionContents potionContents = ...;
instance.setPotionContents(potionContents);
net.minecraft.world.entity.AreaEffectCloud#setRadius(float)
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:71 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Radius
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), getEntityData(), set(), clamp().
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.AreaEffectCloud#setRadiusOnUse(float)
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:271 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Radius On Use
ทำงานยังไง
แก้ state: radiusOnUse.
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.AreaEffectCloud#setRadiusPerTick(float)
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:279 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Radius Per Tick
ทำงานยังไง
แก้ state: radiusPerTick.
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.AreaEffectCloud#setWaiting(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:115 - Modifiers:
protected - Return:
void
คืออะไร
กำหนดค่า Waiting
ทำงานยังไง
เรียกต่อ: getEntityData(), set().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.AreaEffectCloud#setWaitTime(int)
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:295 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Wait Time
ทำงานยังไง
แก้ state: waitTime.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.AreaEffectCloud#tick()
- Origin:
common - Source:
net/minecraft/world/entity/AreaEffectCloud.java:131 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), serverTick(), clientTick().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Attackable
- Full name:
net.minecraft.world.entity.Attackable - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/Attackable.java - Type:
interface - Modifiers:
public
net.minecraft.world.entity.Attackable#getLastAttacker()
- Origin:
common - Source:
net/minecraft/world/entity/Attackable.java:6 - Modifiers: ``
- Return:
LivingEntity
คืออะไร
อ่านค่า Last Attacker
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ConversionParams
- Full name:
net.minecraft.world.entity.ConversionParams - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/ConversionParams.java - Type:
record - Modifiers:
public
net.minecraft.world.entity.ConversionParams#single(Mob,boolean,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/ConversionParams.java:7 - Modifiers:
public static - Return:
ConversionParams
คืออะไร
ดำเนินการ single ตาม implementation ของ ConversionParams
ทำงานยังไง
เรียกต่อ: getTeam(). สร้างออบเจ็กต์: ConversionParams. คืนค่า: new ConversionParams(ConversionType.SINGLE, bl, bl2, mob.getTeam()).
Parameters
Mob mobboolean blboolean bl2
ตัวอย่างใช้งาน
ConversionParams$AfterConversion
- Full name:
net.minecraft.world.entity.ConversionParams$AfterConversion - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/ConversionParams.java - Type:
interface - Modifiers:
public
net.minecraft.world.entity.ConversionParams$AfterConversion#finalizeConversion(T)
- Origin:
common - Source:
net/minecraft/world/entity/ConversionParams.java:13 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ finalizeConversion ตาม implementation ของ ConversionParams$AfterConversion
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
T mob
ตัวอย่างใช้งาน
ConversionType
- Full name:
net.minecraft.world.entity.ConversionType - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/ConversionType.java - Type:
enum - Modifiers:
public
net.minecraft.world.entity.ConversionType#shouldDiscardAfterConversion()
- Origin:
common - Source:
net/minecraft/world/entity/ConversionType.java:84 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Discard After Conversion
ทำงานยังไง
คืนค่า: this.discardAfterConversion.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Crackiness
- Full name:
net.minecraft.world.entity.Crackiness - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/Crackiness.java - Type:
class - Modifiers:
public
net.minecraft.world.entity.Crackiness#byDamage(int,int)
- Origin:
common - Source:
net/minecraft/world/entity/Crackiness.java:32 - Modifiers:
public - Return:
Crackiness.Level
คืออะไร
ดำเนินการ byDamage ตาม implementation ของ Crackiness
ทำงานยังไง
เรียกต่อ: byFraction(). คืนค่า: this.byFraction((float)(j - i) / j).
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.entity.Crackiness#byDamage(ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/Crackiness.java:28 - Modifiers:
public - Return:
Crackiness.Level
คืออะไร
ดำเนินการ byDamage ตาม implementation ของ Crackiness
ทำงานยังไง
เรียกต่อ: isDamageableItem(), getDamageValue(), getMaxDamage(). คืนค่า: !itemStack.isDamageableItem() ? Crackiness.Level.NONE : this.byDamage(itemStack.getDamageValue(), itemStack.getMaxDamage()).
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
Crackiness instance = ...;
ItemStack itemStack = ...;
Crackiness.Level result = instance.byDamage(itemStack);
net.minecraft.world.entity.Crackiness#byFraction(float)
- Origin:
common - Source:
net/minecraft/world/entity/Crackiness.java:18 - Modifiers:
public - Return:
Crackiness.Level
คืออะไร
ดำเนินการ byFraction ตาม implementation ของ Crackiness
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. มีจุด return อย่างน้อย 3 จุด.
Parameters
float f
ตัวอย่างใช้งาน
Display
- Full name:
net.minecraft.world.entity.Display - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/Display.java - Type:
class - Modifiers:
public abstract - Extends:
Entity
net.minecraft.world.entity.Display#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:281 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: encodeStart(), createTransformation(), ifSuccess(), put(), getBillboardConstraints(), putInt(), getTransformationInterpolationDuration(), getPosRotInterpolationDuration().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(CompoundTag compoundTag) {
super.addAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.Display#affectedByCulling()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:339 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ affectedByCulling ตาม implementation ของ Display
ทำงานยังไง
คืนค่า: !this.noCulling.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#calculateInterpolationProgress(float)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:448 - Modifiers:
public - Return:
float
คืออะไร
คำนวณ Interpolation Progress
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: lastProgress. เรียกต่อ: clamp(), inverseLerp(). มีจุด return อย่างน้อย 2 จุด.
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#cancelLerp()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:299 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ cancelLerp ตาม implementation ของ Display
ทำงานยังไง
แก้ state: posRotInterpolationTarget.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#createTransformation(SynchedEntityData)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:133 - Modifiers:
public static - Return:
Transformation
คืออะไร
สร้าง Transformation
ทำงานยังไง
เรียกต่อ: get(). สร้างออบเจ็กต์: Transformation. คืนค่า: new Transformation(vector3f, quaternionf, vector3f2, quaternionf2).
Parameters
SynchedEntityData synchedEntityData
ตัวอย่างใช้งาน
SynchedEntityData synchedEntityData = ...;
Transformation result = Display.createTransformation(synchedEntityData);
net.minecraft.world.entity.Display#defineSynchedData(SynchedEntityData.Builder)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:190 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ defineSynchedData ตาม implementation ของ Display
ทำงานยังไง
เรียกต่อ: define(), getId(). สร้างออบเจ็กต์: Vector3f, Quaternionf.
Parameters
SynchedEntityData.Builder builder
ตัวอย่างใช้งาน
SynchedEntityData.Builder builder = ...;
@Override
protected void defineSynchedData(SynchedEntityData.Builder builder) {
super.defineSynchedData(builder);
}
net.minecraft.world.entity.Display#Display(EntityType<?>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:102 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Display ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: noPhysics, cullingBoundingBox. เรียกต่อ: getBoundingBox().
Parameters
EntityType<?> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<?> entityType = ...;
Level level = ...;
Display instance = new Display(entityType, level);
net.minecraft.world.entity.Display#getBillboardConstraints()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:386 - Modifiers:
public final - Return:
Display.BillboardConstraints
คืออะไร
อ่านค่า Billboard Constraints
ทำงานยังไง
เรียกต่อ: apply(), get(). คืนค่า: Display.BillboardConstraints.BY_ID.apply(this.entityData.get(DATA_BILLBOARD_RENDER_CONSTRAINTS_ID)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#getBoundingBoxForCulling()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:335 - Modifiers:
public - Return:
AABB
คืออะไร
อ่านค่า Bounding Box For Culling
ทำงานยังไง
คืนค่า: this.cullingBoundingBox.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#getBrightnessOverride()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:394 - Modifiers:
public final - Return:
Brightness
คืออะไร
อ่านค่า Brightness Override
ทำงานยังไง
เรียกต่อ: get(), unpack(). คืนค่า: i != -1 ? Brightness.unpack(i) : null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#getGlowColorOverride()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:440 - Modifiers:
public final - Return:
int
คืออะไร
อ่านค่า Glow Color Override
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_GLOW_COLOR_OVERRIDE_ID).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#getHeight()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:461 - Modifiers:
public final - Return:
float
คืออะไร
อ่านค่า Height
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_HEIGHT_ID).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#getPackedBrightnessOverride()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:400 - Modifiers:
public final - Return:
int
คืออะไร
อ่านค่า Packed Brightness Override
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_BRIGHTNESS_OVERRIDE_ID).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#getPistonPushReaction()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:343 - Modifiers:
public - Return:
PushReaction
คืออะไร
อ่านค่า Piston Push Reaction
ทำงานยังไง
คืนค่า: PushReaction.IGNORE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#getPosRotInterpolationDuration()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:378 - Modifiers:
public final - Return:
int
คืออะไร
อ่านค่า Pos Rot Interpolation Duration
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_POS_ROT_INTERPOLATION_DURATION_ID).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#getShadowRadius()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:416 - Modifiers:
public final - Return:
float
คืออะไร
อ่านค่า Shadow Radius
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_SHADOW_RADIUS_ID).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#getShadowStrength()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:424 - Modifiers:
public final - Return:
float
คืออะไร
อ่านค่า Shadow Strength
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_SHADOW_STRENGTH_ID).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#getTeamColor()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:487 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Team Color
ทำงานยังไง
เรียกต่อ: getGlowColorOverride(). คืนค่า: i != -1 ? i : super.getTeamColor().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#getTransformationInterpolationDelay()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:370 - Modifiers:
public final - Return:
int
คืออะไร
อ่านค่า Transformation Interpolation Delay
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_TRANSFORMATION_INTERPOLATION_START_DELTA_TICKS_ID).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#getTransformationInterpolationDuration()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:362 - Modifiers:
public final - Return:
int
คืออะไร
อ่านค่า Transformation Interpolation Duration
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_TRANSFORMATION_INTERPOLATION_DURATION_ID).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#getViewRange()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:408 - Modifiers:
public final - Return:
float
คืออะไร
อ่านค่า View Range
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_VIEW_RANGE_ID).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#getWidth()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:432 - Modifiers:
public final - Return:
float
คืออะไร
อ่านค่า Width
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_WIDTH_ID).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#hurtServer(ServerLevel,DamageSource,float)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:128 - Modifiers:
public final - Return:
boolean
คืออะไร
ประมวลผลความเสียหาย Server
ทำงานยังไง
คืนค่า: false.
Parameters
ServerLevel serverLevelDamageSource damageSourcefloat f
ตัวอย่างใช้งาน
Display instance = ...;
ServerLevel serverLevel = ...;
DamageSource damageSource = ...;
boolean result = instance.hurtServer(serverLevel, damageSource, 0.0F);
net.minecraft.world.entity.Display#isIgnoringBlockTriggers()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:348 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Ignoring Block Triggers
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#lerpTargetX()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:310 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ lerpTargetX ตาม implementation ของ Display
ทำงานยังไง
เรียกต่อ: getX(). คืนค่า: this.posRotInterpolationTarget != null ? this.posRotInterpolationTarget.targetX : this.getX().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#lerpTargetXRot()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:325 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ lerpTargetXRot ตาม implementation ของ Display
ทำงานยังไง
เรียกต่อ: getXRot(). คืนค่า: this.posRotInterpolationTarget != null ? (float)this.posRotInterpolationTarget.targetXRot : this.getXRot().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#lerpTargetY()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:315 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ lerpTargetY ตาม implementation ของ Display
ทำงานยังไง
เรียกต่อ: getY(). คืนค่า: this.posRotInterpolationTarget != null ? this.posRotInterpolationTarget.targetY : this.getY().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#lerpTargetYRot()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:330 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ lerpTargetYRot ตาม implementation ของ Display
ทำงานยังไง
เรียกต่อ: getYRot(). คืนค่า: this.posRotInterpolationTarget != null ? (float)this.posRotInterpolationTarget.targetYRot : this.getYRot().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#lerpTargetZ()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:320 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ lerpTargetZ ตาม implementation ของ Display
ทำงานยังไง
เรียกต่อ: getZ(). คืนค่า: this.posRotInterpolationTarget != null ? this.posRotInterpolationTarget.targetZ : this.getZ().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#lerpTo(double,double,double,float,float,int)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:304 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ lerpTo ตาม implementation ของ Display
ทำงานยังไง
แก้ state: posRotInterpolationTarget. เรียกต่อ: getPosRotInterpolationDuration(), PosRotInterpolationTarget(). สร้างออบเจ็กต์: Display.PosRotInterpolationTarget.
Parameters
double ddouble edouble ffloat gfloat hint i
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#onSyncedDataUpdated(EntityDataAccessor<?>)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:108 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Synced Data Updated
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: updateStartTick, updateInterpolationDuration, updateRenderState. เรียกต่อ: equals(), updateCulling(), contains(), id().
Parameters
EntityDataAccessor<?> entityDataAccessor
ตัวอย่างใช้งาน
Display instance = ...;
EntityDataAccessor<?> entityDataAccessor = ...;
instance.onSyncedDataUpdated(entityDataAccessor);
net.minecraft.world.entity.Display#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:209 - Modifiers:
protected - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: contains(), decode(), get(), resultOrPartial(), prefix(), ifPresent(), setTransformation(), getFirst().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void readAdditionalSaveData(CompoundTag compoundTag) {
super.readAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.Display#renderState()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:353 - Modifiers:
public - Return:
Display.RenderState
คืออะไร
เรนเดอร์ State
ทำงานยังไง
คืนค่า: this.renderState.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#setBillboardConstraints(Display.BillboardConstraints)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:382 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Billboard Constraints
ทำงานยังไง
เรียกต่อ: set(), getId().
Parameters
Display.BillboardConstraints billboardConstraints
ตัวอย่างใช้งาน
Display instance = ...;
Display.BillboardConstraints billboardConstraints = ...;
instance.setBillboardConstraints(billboardConstraints);
net.minecraft.world.entity.Display#setBrightnessOverride(Brightness)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:390 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Brightness Override
ทำงานยังไง
เรียกต่อ: set(), pack().
Parameters
Brightness brightness
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#setGlowColorOverride(int)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:444 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Glow Color Override
ทำงานยังไง
เรียกต่อ: set().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#setHeight(float)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:436 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Height
ทำงานยังไง
เรียกต่อ: set().
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#setPos(double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:465 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Pos
ทำงานยังไง
เรียกต่อ: updateCulling().
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#setPosRotInterpolationDuration(int)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:374 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Pos Rot Interpolation Duration
ทำงานยังไง
เรียกต่อ: set().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#setShadowRadius(float)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:412 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Shadow Radius
ทำงานยังไง
เรียกต่อ: set().
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#setShadowStrength(float)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:420 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Shadow Strength
ทำงานยังไง
เรียกต่อ: set().
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#setTransformation(Transformation)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:274 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Transformation
ทำงานยังไง
เรียกต่อ: set(), getTranslation(), getLeftRotation(), getScale(), getRightRotation().
Parameters
Transformation transformation
ตัวอย่างใช้งาน
Display instance = ...;
Transformation transformation = ...;
instance.setTransformation(transformation);
net.minecraft.world.entity.Display#setTransformationInterpolationDelay(int)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:366 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Transformation Interpolation Delay
ทำงานยังไง
เรียกต่อ: set().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#setTransformationInterpolationDuration(int)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:358 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Transformation Interpolation Duration
ทำงานยังไง
เรียกต่อ: set().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#setViewRange(float)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:404 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า View Range
ทำงานยังไง
เรียกต่อ: set().
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#setWidth(float)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:428 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Width
ทำงานยังไง
เรียกต่อ: set().
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#shouldRenderAtSqrDistance(double)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:482 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Render At Sqr Distance
ทำงานยังไง
เรียกต่อ: square(), getViewRange(), getViewScale(). คืนค่า: d < Mth.square(this.getViewRange() * 64.0 * getViewScale()).
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#tick()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:141 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: updateStartTick, interpolationStartClientTick, updateInterpolationDuration, interpolationDuration, updateRenderState, renderState. เรียกต่อ: getVehicle(), isRemoved(), stopRiding(), level(), getTransformationInterpolationDelay(), getTransformationInterpolationDuration(), createInterpolatedRenderState(), createFreshRenderState().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display#updateRenderSubState(boolean,float)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:188 - Modifiers:
protected abstract - Return:
void
คืออะไร
อัปเดต Render Sub State
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
boolean blfloat f
ตัวอย่างใช้งาน
@Override
protected void updateRenderSubState(boolean bl, float f) {
super.updateRenderSubState(bl, f);
}
Display$BillboardConstraints
- Full name:
net.minecraft.world.entity.Display$BillboardConstraints - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/Display.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.entity.Display$BillboardConstraints#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:536 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Display$BlockDisplay
- Full name:
net.minecraft.world.entity.Display$BlockDisplay - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/Display.java - Type:
class - Modifiers:
public static - Extends:
Display
net.minecraft.world.entity.Display$BlockDisplay#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:586 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
เรียกต่อ: put(), writeBlockState(), getBlockState().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(CompoundTag compoundTag) {
super.addAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.Display$BlockDisplay#BlockDisplay(EntityType<?>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:554 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Display.BlockDisplay ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EntityType<?> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<?> entityType = ...;
Level level = ...;
Display.BlockDisplay instance = new Display.BlockDisplay(entityType, level);
net.minecraft.world.entity.Display$BlockDisplay#blockRenderState()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:592 - Modifiers:
public - Return:
Display.BlockDisplay.BlockRenderState
คืออะไร
ดำเนินการ blockRenderState ตาม implementation ของ Display$BlockDisplay
ทำงานยังไง
คืนค่า: this.blockRenderState.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Display.BlockDisplay instance = ...;
Display.BlockDisplay.BlockRenderState result = instance.blockRenderState();
net.minecraft.world.entity.Display$BlockDisplay#defineSynchedData(SynchedEntityData.Builder)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:558 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ defineSynchedData ตาม implementation ของ Display$BlockDisplay
ทำงานยังไง
เรียกต่อ: define(), defaultBlockState().
Parameters
SynchedEntityData.Builder builder
ตัวอย่างใช้งาน
SynchedEntityData.Builder builder = ...;
@Override
protected void defineSynchedData(SynchedEntityData.Builder builder) {
super.defineSynchedData(builder);
}
net.minecraft.world.entity.Display$BlockDisplay#getBlockState()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:572 - Modifiers:
public final - Return:
BlockState
คืออะไร
อ่านค่า Block State
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_BLOCK_STATE_ID).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display$BlockDisplay#onSyncedDataUpdated(EntityDataAccessor<?>)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:564 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Synced Data Updated
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: updateRenderState. เรียกต่อ: equals().
Parameters
EntityDataAccessor<?> entityDataAccessor
ตัวอย่างใช้งาน
Display.BlockDisplay instance = ...;
EntityDataAccessor<?> entityDataAccessor = ...;
instance.onSyncedDataUpdated(entityDataAccessor);
net.minecraft.world.entity.Display$BlockDisplay#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:580 - Modifiers:
protected - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
เรียกต่อ: setBlockState(), readBlockState(), level(), holderLookup(), getCompound().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void readAdditionalSaveData(CompoundTag compoundTag) {
super.readAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.Display$BlockDisplay#setBlockState(BlockState)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:576 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Block State
ทำงานยังไง
เรียกต่อ: set().
Parameters
BlockState blockState
ตัวอย่างใช้งาน
Display.BlockDisplay instance = ...;
BlockState blockState = ...;
instance.setBlockState(blockState);
net.minecraft.world.entity.Display$BlockDisplay#updateRenderSubState(boolean,float)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:597 - Modifiers:
protected - Return:
void
คืออะไร
อัปเดต Render Sub State
ทำงานยังไง
แก้ state: blockRenderState. เรียกต่อ: BlockRenderState(), getBlockState(). สร้างออบเจ็กต์: Display.BlockDisplay.BlockRenderState.
Parameters
boolean blfloat f
ตัวอย่างใช้งาน
@Override
protected void updateRenderSubState(boolean bl, float f) {
super.updateRenderSubState(bl, f);
}
Display$FloatInterpolator
- Full name:
net.minecraft.world.entity.Display$FloatInterpolator - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/Display.java - Type:
interface - Modifiers:
public
net.minecraft.world.entity.Display$FloatInterpolator#constant(float)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:615 - Modifiers:
static - Return:
Display.FloatInterpolator
คืออะไร
ดำเนินการ constant ตาม implementation ของ Display$FloatInterpolator
ทำงานยังไง
คืนค่า: g -> f.
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display$FloatInterpolator#get(float)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:619 - Modifiers: ``
- Return:
float
คืออะไร
อ่านค่า get
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
float f
ตัวอย่างใช้งาน
Display$GenericInterpolator
- Full name:
net.minecraft.world.entity.Display$GenericInterpolator - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/Display.java - Type:
interface - Modifiers:
public
net.minecraft.world.entity.Display$GenericInterpolator#constant(T)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:624 - Modifiers:
static - Return:
Display.GenericInterpolator<T>
คืออะไร
ดำเนินการ constant ตาม implementation ของ Display$GenericInterpolator
ทำงานยังไง
คืนค่า: f -> object.
Parameters
T object
ตัวอย่างใช้งาน
T object = ...;
Display.GenericInterpolator<T> result = Display.GenericInterpolator.constant(object);
net.minecraft.world.entity.Display$GenericInterpolator#get(float)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:628 - Modifiers: ``
- Return:
T
คืออะไร
อ่านค่า get
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
float f
ตัวอย่างใช้งาน
Display$IntInterpolator
- Full name:
net.minecraft.world.entity.Display$IntInterpolator - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/Display.java - Type:
interface - Modifiers:
public
net.minecraft.world.entity.Display$IntInterpolator#constant(int)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:633 - Modifiers:
static - Return:
Display.IntInterpolator
คืออะไร
ดำเนินการ constant ตาม implementation ของ Display$IntInterpolator
ทำงานยังไง
คืนค่า: f -> i.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display$IntInterpolator#get(float)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:637 - Modifiers: ``
- Return:
int
คืออะไร
อ่านค่า get
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
float f
ตัวอย่างใช้งาน
Display$ItemDisplay
- Full name:
net.minecraft.world.entity.Display$ItemDisplay - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/Display.java - Type:
class - Modifiers:
public static - Extends:
Display
net.minecraft.world.entity.Display$ItemDisplay#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:703 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getItemStack(), isEmpty(), put(), save(), registryAccess(), encodeStart(), getItemTransform(), ifSuccess().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(CompoundTag compoundTag) {
super.addAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.Display$ItemDisplay#defineSynchedData(SynchedEntityData.Builder)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:655 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ defineSynchedData ตาม implementation ของ Display$ItemDisplay
ทำงานยังไง
เรียกต่อ: define(), getId().
Parameters
SynchedEntityData.Builder builder
ตัวอย่างใช้งาน
SynchedEntityData.Builder builder = ...;
@Override
protected void defineSynchedData(SynchedEntityData.Builder builder) {
super.defineSynchedData(builder);
}
net.minecraft.world.entity.Display$ItemDisplay#getItemStack()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:670 - Modifiers:
public final - Return:
ItemStack
คืออะไร
อ่านค่า Item Stack
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_ITEM_STACK_ID).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display$ItemDisplay#getItemTransform()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:682 - Modifiers:
public final - Return:
ItemDisplayContext
คืออะไร
อ่านค่า Item Transform
ทำงานยังไง
เรียกต่อ: apply(), get(). คืนค่า: ItemDisplayContext.BY_ID.apply(this.entityData.get(DATA_ITEM_DISPLAY_ID)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display$ItemDisplay#getSlot(int)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:713 - Modifiers:
public - Return:
SlotAccess
คืออะไร
อ่านค่า Slot
ทำงานยังไง
คืนค่า: i == 0 ? this.slot : SlotAccess.NULL.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display$ItemDisplay#ItemDisplay(EntityType<?>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:651 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Display.ItemDisplay ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EntityType<?> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<?> entityType = ...;
Level level = ...;
Display.ItemDisplay instance = new Display.ItemDisplay(entityType, level);
net.minecraft.world.entity.Display$ItemDisplay#itemRenderState()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:718 - Modifiers:
public - Return:
Display.ItemDisplay.ItemRenderState
คืออะไร
ดำเนินการ itemRenderState ตาม implementation ของ Display$ItemDisplay
ทำงานยังไง
คืนค่า: this.itemRenderState.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Display.ItemDisplay instance = ...;
Display.ItemDisplay.ItemRenderState result = instance.itemRenderState();
net.minecraft.world.entity.Display$ItemDisplay#onSyncedDataUpdated(EntityDataAccessor<?>)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:662 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Synced Data Updated
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: updateRenderState. เรียกต่อ: equals().
Parameters
EntityDataAccessor<?> entityDataAccessor
ตัวอย่างใช้งาน
Display.ItemDisplay instance = ...;
EntityDataAccessor<?> entityDataAccessor = ...;
instance.onSyncedDataUpdated(entityDataAccessor);
net.minecraft.world.entity.Display$ItemDisplay#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:686 - Modifiers:
protected - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: contains(), setItemStack(), parse(), registryAccess(), getCompound(), orElse(), decode(), get().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void readAdditionalSaveData(CompoundTag compoundTag) {
super.readAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.Display$ItemDisplay#setItemStack(ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:674 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Item Stack
ทำงานยังไง
เรียกต่อ: set().
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display$ItemDisplay#setItemTransform(ItemDisplayContext)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:678 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Item Transform
ทำงานยังไง
เรียกต่อ: set(), getId().
Parameters
ItemDisplayContext itemDisplayContext
ตัวอย่างใช้งาน
Display.ItemDisplay instance = ...;
ItemDisplayContext itemDisplayContext = ...;
instance.setItemTransform(itemDisplayContext);
net.minecraft.world.entity.Display$ItemDisplay#updateRenderSubState(boolean,float)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:723 - Modifiers:
protected - Return:
void
คืออะไร
อัปเดต Render Sub State
ทำงานยังไง
แก้ state: itemRenderState. เรียกต่อ: getItemStack(), setEntityRepresentation(), ItemRenderState(), getItemTransform(). สร้างออบเจ็กต์: Display.ItemDisplay.ItemRenderState.
Parameters
boolean blfloat f
ตัวอย่างใช้งาน
@Override
protected void updateRenderSubState(boolean bl, float f) {
super.updateRenderSubState(bl, f);
}
Display$TextDisplay
- Full name:
net.minecraft.world.entity.Display$TextDisplay - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/Display.java - Type:
class - Modifiers:
public static - Extends:
Display
net.minecraft.world.entity.Display$TextDisplay#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:933 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
เรียกต่อ: putString(), toJson(), getText(), registryAccess(), putInt(), getLineWidth(), getBackgroundColor(), putByte().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(CompoundTag compoundTag) {
super.addAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.Display$TextDisplay#cacheDisplay(Display.TextDisplay.LineSplitter)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:985 - Modifiers:
public - Return:
Display.TextDisplay.CachedInfo
คืออะไร
ดำเนินการ cacheDisplay ตาม implementation ของ Display$TextDisplay
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: clientDisplayCache. เรียกต่อ: split(), text(), lineWidth(), CachedInfo(), of(). สร้างออบเจ็กต์: Display.TextDisplay.CachedInfo. คืนค่า: this.clientDisplayCache.
Parameters
Display.TextDisplay.LineSplitter lineSplitter
ตัวอย่างใช้งาน
Display.TextDisplay instance = ...;
Display.TextDisplay.LineSplitter lineSplitter = ...;
Display.TextDisplay.CachedInfo result = instance.cacheDisplay(lineSplitter);
net.minecraft.world.entity.Display$TextDisplay#defineSynchedData(SynchedEntityData.Builder)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:818 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ defineSynchedData ตาม implementation ของ Display$TextDisplay
ทำงานยังไง
เรียกต่อ: define(), empty().
Parameters
SynchedEntityData.Builder builder
ตัวอย่างใช้งาน
SynchedEntityData.Builder builder = ...;
@Override
protected void defineSynchedData(SynchedEntityData.Builder builder) {
super.defineSynchedData(builder);
}
net.minecraft.world.entity.Display$TextDisplay#getAlign(byte)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:997 - Modifiers:
public static - Return:
Display.TextDisplay.Align
คืออะไร
อ่านค่า Align
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. มีจุด return อย่างน้อย 2 จุด.
Parameters
byte b
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display$TextDisplay#getBackgroundColor()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:860 - Modifiers:
public final - Return:
int
คืออะไร
อ่านค่า Background Color
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_BACKGROUND_COLOR_ID).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display$TextDisplay#getFlags()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:868 - Modifiers:
public final - Return:
byte
คืออะไร
อ่านค่า Flags
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_STYLE_FLAGS_ID).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display$TextDisplay#getLineWidth()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:844 - Modifiers:
public final - Return:
int
คืออะไร
อ่านค่า Line Width
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_LINE_WIDTH_ID).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display$TextDisplay#getText()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:836 - Modifiers:
public final - Return:
Component
คืออะไร
อ่านค่า Text
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_TEXT_ID).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display$TextDisplay#getTextOpacity()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:852 - Modifiers:
public final - Return:
byte
คืออะไร
อ่านค่า Text Opacity
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_TEXT_OPACITY_ID).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display$TextDisplay#onSyncedDataUpdated(EntityDataAccessor<?>)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:828 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Synced Data Updated
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: updateRenderState. เรียกต่อ: contains(), id().
Parameters
EntityDataAccessor<?> entityDataAccessor
ตัวอย่างใช้งาน
Display.TextDisplay instance = ...;
EntityDataAccessor<?> entityDataAccessor = ...;
instance.onSyncedDataUpdated(entityDataAccessor);
net.minecraft.world.entity.Display$TextDisplay#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:880 - Modifiers:
protected - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; แยกกรณีด้วย switch ; มีการจัดการ exception. เรียกต่อ: contains(), setLineWidth(), getInt(), setTextOpacity(), getByte(), setBackgroundColor(), loadFlag(), decode().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void readAdditionalSaveData(CompoundTag compoundTag) {
super.readAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.Display$TextDisplay#setBackgroundColor(int)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:864 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Background Color
ทำงานยังไง
เรียกต่อ: set().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display$TextDisplay#setFlags(byte)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:872 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Flags
ทำงานยังไง
เรียกต่อ: set().
Parameters
byte b
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display$TextDisplay#setLineWidth(int)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:848 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Line Width
ทำงานยังไง
เรียกต่อ: set().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display$TextDisplay#setText(Component)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:840 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Text
ทำงานยังไง
เรียกต่อ: set().
Parameters
Component component
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display$TextDisplay#setTextOpacity(byte)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:856 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Text Opacity
ทำงานยังไง
เรียกต่อ: set().
Parameters
byte b
ตัวอย่างใช้งาน
net.minecraft.world.entity.Display$TextDisplay#TextDisplay(EntityType<?>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:814 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Display.TextDisplay ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EntityType<?> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<?> entityType = ...;
Level level = ...;
Display.TextDisplay instance = new Display.TextDisplay(entityType, level);
net.minecraft.world.entity.Display$TextDisplay#textRenderState()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:958 - Modifiers:
public - Return:
Display.TextDisplay.TextRenderState
คืออะไร
ดำเนินการ textRenderState ตาม implementation ของ Display$TextDisplay
ทำงานยังไง
คืนค่า: this.textRenderState.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Display.TextDisplay instance = ...;
Display.TextDisplay.TextRenderState result = instance.textRenderState();
net.minecraft.world.entity.Display$TextDisplay#updateRenderSubState(boolean,float)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:947 - Modifiers:
protected - Return:
void
คืออะไร
อัปเดต Render Sub State
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: textRenderState, clientDisplayCache. เรียกต่อ: createInterpolatedTextRenderState(), createFreshTextRenderState().
Parameters
boolean blfloat f
ตัวอย่างใช้งาน
@Override
protected void updateRenderSubState(boolean bl, float f) {
super.updateRenderSubState(bl, f);
}
Display$TextDisplay$Align
- Full name:
net.minecraft.world.entity.Display$TextDisplay$Align - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/Display.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.entity.Display$TextDisplay$Align#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:1017 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Display$TextDisplay$LineSplitter
- Full name:
net.minecraft.world.entity.Display$TextDisplay$LineSplitter - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/Display.java - Type:
interface - Modifiers:
public
net.minecraft.world.entity.Display$TextDisplay$LineSplitter#split(Component,int)
- Origin:
common - Source:
net/minecraft/world/entity/Display.java:1031 - Modifiers: ``
- Return:
Display.TextDisplay.CachedInfo
คืออะไร
แยก split
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Component componentint i
ตัวอย่างใช้งาน
Display.TextDisplay.LineSplitter instance = ...;
Component component = ...;
Display.TextDisplay.CachedInfo result = instance.split(component, 0);
ElytraAnimationState
- Full name:
net.minecraft.world.entity.ElytraAnimationState - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/ElytraAnimationState.java - Type:
class - Modifiers:
public
net.minecraft.world.entity.ElytraAnimationState#ElytraAnimationState(LivingEntity)
- Origin:
common - Source:
net/minecraft/world/entity/ElytraAnimationState.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ElytraAnimationState ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: entity.
Parameters
LivingEntity livingEntity
ตัวอย่างใช้งาน
LivingEntity livingEntity = ...;
ElytraAnimationState instance = new ElytraAnimationState(livingEntity);
net.minecraft.world.entity.ElytraAnimationState#getRotX(float)
- Origin:
common - Source:
net/minecraft/world/entity/ElytraAnimationState.java:54 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Rot X
ทำงานยังไง
เรียกต่อ: lerp(). คืนค่า: Mth.lerp(f, this.rotXOld, this.rotX).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.ElytraAnimationState#getRotY(float)
- Origin:
common - Source:
net/minecraft/world/entity/ElytraAnimationState.java:58 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Rot Y
ทำงานยังไง
เรียกต่อ: lerp(). คืนค่า: Mth.lerp(f, this.rotYOld, this.rotY).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.ElytraAnimationState#getRotZ(float)
- Origin:
common - Source:
net/minecraft/world/entity/ElytraAnimationState.java:62 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Rot Z
ทำงานยังไง
เรียกต่อ: lerp(). คืนค่า: Mth.lerp(f, this.rotZOld, this.rotZ).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.ElytraAnimationState#tick()
- Origin:
common - Source:
net/minecraft/world/entity/ElytraAnimationState.java:21 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: rotXOld, rotYOld, rotZOld, rotX, rotY, rotZ. เรียกต่อ: isFallFlying(), getDeltaMovement(), normalize(), pow(), lerp(), isCrouching().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Entity
- Full name:
net.minecraft.world.entity.Entity - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/Entity.java - Type:
class - Modifiers:
public abstract - Implements:
SyncedDataHolder,Nameable,EntityAccess,ScoreHolder,AttachmentTarget
net.minecraft.world.entity.Entity#absMoveTo(double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1468 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ absMoveTo ตาม implementation ของ Entity
ทำงานยังไง
แก้ state: xo, yo, zo. เรียกต่อ: clamp(), setPos().
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#absMoveTo(double,double,double,float,float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1456 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ absMoveTo ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: absRotateTo().
Parameters
double ddouble edouble ffloat gfloat h
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#absRotateTo(float,float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1461 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ absRotateTo ตาม implementation ของ Entity
ทำงานยังไง
แก้ state: yRotO, xRotO. เรียกต่อ: setYRot(), setXRot(), clamp(), getYRot(), getXRot().
Parameters
float ffloat g
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1931 - Modifiers:
protected abstract - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(CompoundTag compoundTag) {
super.addAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.Entity#addDeltaMovement(Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3403 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Delta Movement
ทำงานยังไง
เรียกต่อ: setDeltaMovement(), getDeltaMovement(), add().
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#addPassenger(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2148 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Passenger
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: passengers. เรียกต่อ: getVehicle(), startRiding(), isEmpty(), of(), newArrayList(), level(), getFirstPassenger(), add(). สร้างออบเจ็กต์: IllegalStateException.
Parameters
Entity entity
ตัวอย่างใช้งาน
Entity entity = ...;
@Override
protected void addPassenger(Entity entity) {
super.addPassenger(entity);
}
net.minecraft.world.entity.Entity#addTag(String)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:330 - Modifiers:
public - Return:
boolean
คืออะไร
เพิ่ม Tag
ทำงานยังไง
เรียกต่อ: size(), add(). คืนค่า: this.tags.size() >= 1024 ? false : this.tags.add(string).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#adjustSpawnLocation(ServerLevel,BlockPos)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1107 - Modifiers:
public - Return:
BlockPos
คืออะไร
ดำเนินการ adjustSpawnLocation ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: getSharedSpawnPos(), getCenter(), getChunkAt(), getHeight(), getX(), getZ(), containing(). คืนค่า: BlockPos.containing(vec3.x, i, vec3.z).
Parameters
ServerLevel serverLevelBlockPos blockPos
ตัวอย่างใช้งาน
Entity instance = ...;
ServerLevel serverLevel = ...;
BlockPos blockPos = ...;
BlockPos result = instance.adjustSpawnLocation(serverLevel, blockPos);
net.minecraft.world.entity.Entity#animateHurt(float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2307 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ animateHurt ตาม implementation ของ Entity
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#applyEffectsFromBlocks()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:753 - Modifiers:
public - Return:
void
คืออะไร
นำไปใช้ Effects From Blocks
ทำงานยังไง
เรียกต่อ: oldPosition().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#applyEffectsFromBlocks(Vec3,Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:757 - Modifiers:
public - Return:
void
คืออะไร
นำไปใช้ Effects From Blocks
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isAffectedByBlocks(), onGround(), getOnPosLegacy(), level(), getBlockState(), getBlock(), stepOn(), add(). สร้างออบเจ็กต์: Entity.Movement.
Parameters
Vec3 vec3Vec3 vec32
ตัวอย่างใช้งาน
Entity instance = ...;
Vec3 vec3 = ...;
Vec3 vec32 = ...;
instance.applyEffectsFromBlocks(vec3, vec32);
net.minecraft.world.entity.Entity#applyGravity()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1219 - Modifiers:
protected - Return:
void
คืออะไร
นำไปใช้ Gravity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getGravity(), setDeltaMovement(), getDeltaMovement(), add().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#awardKillScore(Entity,DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1707 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ awardKillScore ตาม implementation ของ Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: trigger().
Parameters
Entity entityDamageSource damageSource
ตัวอย่างใช้งาน
Entity instance = ...;
Entity entity = ...;
DamageSource damageSource = ...;
instance.awardKillScore(entity, damageSource);
net.minecraft.world.entity.Entity#baseTick()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:440 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ baseTick ตาม implementation ของ Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: inBlockState, boardingCooldown, wasInPowderSnow, isInPowderSnow, fallDistance, firstTick. เรียกต่อ: get(), push(), isPassenger(), getVehicle(), isRemoved(), stopRiding(), handlePortal(), canSpawnSprintParticle().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#blockPosition()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3378 - Modifiers:
public - Return:
BlockPos
คืออะไร
ดำเนินการ blockPosition ตาม implementation ของ Entity
ทำงานยังไง
คืนค่า: this.blockPosition.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#broadcastToPlayer(ServerPlayer)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3017 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ broadcastToPlayer ตาม implementation ของ Entity
ทำงานยังไง
คืนค่า: true.
Parameters
ServerPlayer serverPlayer
ตัวอย่างใช้งาน
Entity instance = ...;
ServerPlayer serverPlayer = ...;
boolean result = instance.broadcastToPlayer(serverPlayer);
net.minecraft.world.entity.Entity#calculateUpVector(float,float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1662 - Modifiers:
protected final - Return:
Vec3
คืออะไร
คำนวณ Up Vector
ทำงานยังไง
เรียกต่อ: calculateViewVector(). คืนค่า: this.calculateViewVector(f - 90.0F, g).
Parameters
float ffloat g
ตัวอย่างใช้งาน
@Override
protected Vec3 calculateUpVector(float f, float g) {
return super.calculateUpVector(f, g);
}
net.minecraft.world.entity.Entity#calculateViewVector(float,float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1648 - Modifiers:
public final - Return:
Vec3
คืออะไร
คำนวณ View Vector
ทำงานยังไง
เรียกต่อ: cos(), sin(). สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(k * l, -m, j * l).
Parameters
float ffloat g
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#canAddPassenger(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2184 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Add Passenger
ทำงานยังไง
เรียกต่อ: isEmpty(). คืนค่า: this.passengers.isEmpty().
Parameters
Entity entity
ตัวอย่างใช้งาน
Entity entity = ...;
@Override
protected boolean canAddPassenger(Entity entity) {
return super.canAddPassenger(entity);
}
net.minecraft.world.entity.Entity#canBeCollidedWith()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2038 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Be Collided With
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#canBeHitByProjectile()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1695 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Be Hit By Projectile
ทำงานยังไง
เรียกต่อ: isAlive(), isPickable(). คืนค่า: this.isAlive() && this.isPickable().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#cancelLerp()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2192 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ cancelLerp ตาม implementation ของ Entity
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#canCollideWith(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2034 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Collide With
ทำงานยังไง
เรียกต่อ: canBeCollidedWith(), isPassengerOfSameVehicle(). คืนค่า: entity.canBeCollidedWith() && !this.isPassengerOfSameVehicle(entity).
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#canControlVehicle()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2327 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Control Vehicle
ทำงานยังไง
เรียกต่อ: getType(), is(). คืนค่า: !this.getType().is(EntityTypeTags.NON_CONTROLLING_RIDER).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#canFreeze()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3508 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Freeze
ทำงานยังไง
เรียกต่อ: getType(), is(). คืนค่า: !this.getType().is(EntityTypeTags.FREEZE_IMMUNE_ENTITY_TYPES).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#canRide(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2126 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Ride
ทำงานยังไง
เรียกต่อ: isShiftKeyDown(). คืนค่า: !this.isShiftKeyDown() && this.boardingCooldown <= 0.
Parameters
Entity entity
ตัวอย่างใช้งาน
Entity entity = ...;
@Override
protected boolean canRide(Entity entity) {
return super.canRide(entity);
}
net.minecraft.world.entity.Entity#canSpawnSprintParticle()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1400 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Spawn Sprint Particle
ทำงานยังไง
เรียกต่อ: isSprinting(), isInWater(), isSpectator(), isCrouching(), isInLava(), isAlive(). คืนค่า: this.isSprinting() && !this.isInWater() && !this.isSpectator() && !this.isCrouching() && !this.isInLava() && this.isAlive().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#canSprint()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3544 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Sprint
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#canTeleport(Level,Level)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2801 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Teleport
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: dimension(), getPassengers(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Level levelLevel level2
ตัวอย่างใช้งาน
Entity instance = ...;
Level level = ...;
Level level2 = ...;
boolean result = instance.canTeleport(level, level2);
net.minecraft.world.entity.Entity#canUsePortal(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2797 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Use Portal
ทำงานยังไง
เรียกต่อ: isPassenger(), isAlive(). คืนค่า: (bl || !this.isPassenger()) && this.isAlive().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#causeFallDamage(float,float,DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1265 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ causeFallDamage ตาม implementation ของ Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: is(), isVehicle(), getPassengers(). มีจุด return อย่างน้อย 2 จุด.
Parameters
float ffloat gDamageSource damageSource
ตัวอย่างใช้งาน
Entity instance = ...;
DamageSource damageSource = ...;
boolean result = instance.causeFallDamage(0.0F, 0.0F, damageSource);
net.minecraft.world.entity.Entity#checkBelowWorld()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:508 - Modifiers:
public - Return:
void
คืออะไร
ตรวจสอบ Below World
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getY(), level(), getMinY(), onBelowWorld().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#checkDespawn()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3481 - Modifiers:
public - Return:
void
คืออะไร
ตรวจสอบ Despawn
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#checkFallDamage(double,boolean,BlockState,BlockPos)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1243 - Modifiers:
protected - Return:
void
คืออะไร
ตรวจสอบ Fall Damage
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: fallDistance. เรียกต่อ: getBlock(), fallOn(), level(), gameEvent(), of(), map(), getBlockState(), orElse().
Parameters
double dboolean blBlockState blockStateBlockPos blockPos
ตัวอย่างใช้งาน
BlockState blockState = ...;
BlockPos blockPos = ...;
@Override
protected void checkFallDamage(double d, boolean bl, BlockState blockState, BlockPos blockPos) {
super.checkFallDamage(d, bl, blockState, blockPos);
}
net.minecraft.world.entity.Entity#checkSlowFallDistance()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2521 - Modifiers:
public - Return:
void
คืออะไร
ตรวจสอบ Slow Fall Distance
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: fallDistance. เรียกต่อ: getDeltaMovement(), y().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#checkSupportingBlock(boolean,Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:607 - Modifiers:
protected - Return:
void
คืออะไร
ตรวจสอบ Supporting Block
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: mainSupportingBlockPos, onGroundNoBlocks. เรียกต่อ: getBoundingBox(), findSupportingBlock(), isPresent(), move(), isEmpty(), empty(). สร้างออบเจ็กต์: AABB.
Parameters
boolean blVec3 vec3
ตัวอย่างใช้งาน
Vec3 vec3 = ...;
@Override
protected void checkSupportingBlock(boolean bl, Vec3 vec3) {
super.checkSupportingBlock(bl, vec3);
}
net.minecraft.world.entity.Entity#chunkPosition()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3391 - Modifiers:
public - Return:
ChunkPos
คืออะไร
ดำเนินการ chunkPosition ตาม implementation ของ Entity
ทำงานยังไง
คืนค่า: this.chunkPosition.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#clearFire()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:572 - Modifiers:
public - Return:
void
คืออะไร
ล้าง Fire
ทำงานยังไง
เรียกต่อ: setRemainingFireTicks().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#closerThan(Entity,double)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:385 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ closerThan ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: position(). คืนค่า: this.position().closerThan(entity.position(), d).
Parameters
Entity entitydouble d
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#closerThan(Entity,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:389 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ closerThan ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: getX(), getY(), getZ(), lengthSquared(), square(). คืนค่า: Mth.lengthSquared(f, h) < Mth.square(d) && Mth.square(g) < Mth.square(e).
Parameters
Entity entitydouble ddouble e
ตัวอย่างใช้งาน
Entity instance = ...;
Entity entity = ...;
boolean result = instance.closerThan(entity, 0.0D, 0.0D);
net.minecraft.world.entity.Entity#collideBoundingBox(Entity,Vec3,AABB,Level,List<VoxelShape>)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:978 - Modifiers:
public static - Return:
Vec3
คืออะไร
ดำเนินการ collideBoundingBox ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: collectColliders(), expandTowards(), collideWithShapes(). คืนค่า: collideWithShapes(vec3, aABB, list2).
Parameters
Entity entityVec3 vec3AABB aABBLevel levelList<VoxelShape> list
ตัวอย่างใช้งาน
Entity entity = ...;
Vec3 vec3 = ...;
AABB aABB = ...;
Level level = ...;
List<VoxelShape> list = ...;
Vec3 result = Entity.collideBoundingBox(entity, vec3, aABB, level, list);
net.minecraft.world.entity.Entity#considersEntityAsAlly(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2425 - Modifiers:
protected - Return:
boolean
คืออะไร
ดำเนินการ considersEntityAsAlly ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: isAlliedTo(), getTeam(). คืนค่า: this.isAlliedTo(entity.getTeam()).
Parameters
Entity entity
ตัวอย่างใช้งาน
Entity entity = ...;
@Override
protected boolean considersEntityAsAlly(Entity entity) {
return super.considersEntityAsAlly(entity);
}
net.minecraft.world.entity.Entity#copyPosition(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2653 - Modifiers:
public - Return:
void
คืออะไร
คัดลอก Position
ทำงานยังไง
เรียกต่อ: moveTo(), getX(), getY(), getZ(), getYRot(), getXRot().
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#couldAcceptPassenger()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2188 - Modifiers:
protected - Return:
boolean
คืออะไร
ดำเนินการ couldAcceptPassenger ตาม implementation ของ Entity
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#countPlayerPassengers()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3153 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ countPlayerPassengers ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: getIndirectPassengersStream(), filter(), count(). คืนค่า: (int)this.getIndirectPassengersStream().filter(entity -> entity instanceof Player).count().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#createCommandSourceStackForNameResolution(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3235 - Modifiers:
public - Return:
CommandSourceStack
คืออะไร
สร้าง Command Source Stack For Name Resolution
ทำงานยังไง
เรียกต่อ: position(), getRotationVector(), getName(), getString(), getDisplayName(), getServer(). สร้างออบเจ็กต์: CommandSourceStack.
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
Entity instance = ...;
ServerLevel serverLevel = ...;
CommandSourceStack result = instance.createCommandSourceStackForNameResolution(serverLevel);
net.minecraft.world.entity.Entity#createHoverEvent()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3013 - Modifiers:
protected - Return:
HoverEvent
คืออะไร
สร้าง Hover Event
ทำงานยังไง
เรียกต่อ: EntityTooltipInfo(), getType(), getUUID(), getName(). สร้างออบเจ็กต์: HoverEvent, HoverEvent.EntityTooltipInfo. คืนค่า: new HoverEvent(HoverEvent.Action.SHOW_ENTITY, new HoverEvent.EntityTooltipInfo(this.getType(), this.getUUID(), this.getName())).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#damageSources()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3614 - Modifiers:
public - Return:
DamageSources
คืออะไร
สร้าง/คำนวณความเสียหาย Sources
ทำงานยังไง
เรียกต่อ: level(). คืนค่า: this.level().damageSources().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#dampensVibrations()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1230 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ dampensVibrations ตาม implementation ของ Entity
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#defineSynchedData(SynchedEntityData.Builder)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:347 - Modifiers:
protected abstract - Return:
void
คืออะไร
ดำเนินการ defineSynchedData ตาม implementation ของ Entity
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
SynchedEntityData.Builder builder
ตัวอย่างใช้งาน
SynchedEntityData.Builder builder = ...;
@Override
protected void defineSynchedData(SynchedEntityData.Builder builder) {
super.defineSynchedData(builder);
}
net.minecraft.world.entity.Entity#deflection(Projectile)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3099 - Modifiers:
public - Return:
ProjectileDeflection
คืออะไร
ดำเนินการ deflection ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: getType(), is(). คืนค่า: this.getType().is(EntityTypeTags.DEFLECTS_PROJECTILES) ? ProjectileDeflection.REVERSE : ProjectileDeflection.NONE.
Parameters
Projectile projectile
ตัวอย่างใช้งาน
Entity instance = ...;
Projectile projectile = ...;
ProjectileDeflection result = instance.deflection(projectile);
net.minecraft.world.entity.Entity#discard()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:343 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ discard ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: remove().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#dismountsUnderwater()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2323 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ dismountsUnderwater ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: getType(), is(). คืนค่า: this.getType().is(EntityTypeTags.DISMOUNTS_UNDERWATER).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#dismountTo(double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2915 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ dismountTo ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: teleportTo().
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#displayFireAnimation()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2845 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ displayFireAnimation ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: isOnFire(), isSpectator(). คืนค่า: this.isOnFire() && !this.isSpectator().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#distanceTo(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1534 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ distanceTo ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: getX(), getY(), getZ(), sqrt(). คืนค่า: Mth.sqrt(f * f + g * g + h * h).
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#distanceToSqr(double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1541 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ distanceToSqr ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: getX(), getY(), getZ(). คืนค่า: g * g + h * h + i * i.
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#distanceToSqr(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1548 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ distanceToSqr ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: position(). คืนค่า: this.distanceToSqr(entity.position()).
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#distanceToSqr(Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1552 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ distanceToSqr ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: getX(), getY(), getZ(). คืนค่า: d * d + e * e + f * f.
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#doCheckFallDamage(double,double,double,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1234 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ doCheckFallDamage ตาม implementation ของ Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: touchingUnloadedChunk(), checkSupportingBlock(), getOnPosLegacy(), level(), getBlockState(), checkFallDamage(). สร้างออบเจ็กต์: Vec3.
Parameters
double ddouble edouble fboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#doWaterSplashEffect()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1363 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ doWaterSplashEffect ตาม implementation ของ Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: requireNonNullElse(), getControllingPassenger(), getDeltaMovement(), min(), sqrt(), playSound(), getSwimSplashSound(), nextFloat().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#ejectPassengers()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2130 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ ejectPassengers ตาม implementation ของ Entity
ทำงานยังไง
มีการวนลูป. เรียกต่อ: size(), get(), stopRiding().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#Entity(EntityType<?>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:258 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Entity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: type, level, dimensions, position, blockPosition, chunkPosition. เรียกต่อ: getDimensions(), Builder(), define(), getMaxAirSupply(), empty(), defineSynchedData(), build(), setPos(). สร้างออบเจ็กต์: SynchedEntityData.Builder.
Parameters
EntityType<?> entityTypeLevel level
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#equals(Object)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:353 - Modifiers:
public - Return:
boolean
คืออะไร
เปรียบเทียบความเท่ากัน equals
ทำงานยังไง
คืนค่า: object instanceof Entity ? ((Entity)object).id == this.id : false.
Parameters
Object object
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#extinguishFire()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:824 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ extinguishFire ตาม implementation ของ Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), playEntityOnFireExtinguishedSound(), clearFire().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#fillCrashReportCategory(CrashReportCategory)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2831 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fillCrashReportCategory ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: setDetail(), getKey(), getType(), getClass(), getCanonicalName(), getName(), getString(), format().
Parameters
CrashReportCategory crashReportCategory
ตัวอย่างใช้งาน
Entity instance = ...;
CrashReportCategory crashReportCategory = ...;
instance.fillCrashReportCategory(crashReportCategory);
net.minecraft.world.entity.Entity#fireImmune()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1261 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ fireImmune ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: getType(). คืนค่า: this.getType().fireImmune().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#fixupDimensions()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2953 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ fixupDimensions ตาม implementation ของ Entity
ทำงานยังไง
แก้ state: dimensions, eyeHeight. เรียกต่อ: getPose(), getDimensions(), eyeHeight().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#forceSetRotation(float,float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2773 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ forceSetRotation ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: setYRot(), setYHeadRot(), setXRot(), setOldRot().
Parameters
float ffloat g
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#fudgePositionAfterSizeChange(EntityDimensions)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2979 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ fudgePositionAfterSizeChange ตาม implementation ของ Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getDimensions(), getPose(), position(), add(), height(), max(), width(), create(). มีจุด return อย่างน้อย 3 จุด.
Parameters
EntityDimensions entityDimensions
ตัวอย่างใช้งาน
Entity instance = ...;
EntityDimensions entityDimensions = ...;
boolean result = instance.fudgePositionAfterSizeChange(entityDimensions);
net.minecraft.world.entity.Entity#gameEvent(Holder<GameEvent>)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1118 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ gameEvent ตาม implementation ของ Entity
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Holder<GameEvent> holder
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#gameEvent(Holder<GameEvent>,Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1114 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ gameEvent ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: level().
Parameters
Holder<GameEvent> holderEntity entity
ตัวอย่างใช้งาน
Entity instance = ...;
Holder<GameEvent> holder = ...;
Entity entity = ...;
instance.gameEvent(holder, entity);
net.minecraft.world.entity.Entity#getAddEntityPacket(ServerEntity)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3358 - Modifiers:
public - Return:
Packet<ClientGamePacketListener>
คืออะไร
อ่านค่า Add Entity Packet
ทำงานยังไง
สร้างออบเจ็กต์: ClientboundAddEntityPacket. คืนค่า: new ClientboundAddEntityPacket(this, serverEntity).
Parameters
ServerEntity serverEntity
ตัวอย่างใช้งาน
Entity instance = ...;
ServerEntity serverEntity = ...;
Packet<ClientGamePacketListener> result = instance.getAddEntityPacket(serverEntity);
net.minecraft.world.entity.Entity#getAirSupply()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2454 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Air Supply
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_AIR_SUPPLY_ID).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getAttachments()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3366 - Modifiers:
public final - Return:
EntityAttachments
คืออะไร
อ่านค่า Attachments
ทำงานยังไง
เรียกต่อ: attachments(). คืนค่า: this.dimensions.attachments().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getBbHeight()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3354 - Modifiers:
public final - Return:
float
คืออะไร
อ่านค่า Bb Height
ทำงานยังไง
เรียกต่อ: height(). คืนค่า: this.dimensions.height().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getBbWidth()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3350 - Modifiers:
public final - Return:
float
คืออะไร
อ่านค่า Bb Width
ทำงานยังไง
เรียกต่อ: width(). คืนค่า: this.dimensions.width().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getBlockExplosionResistance(Explosion,BlockGetter,BlockPos,BlockState,FluidState,float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2813 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Block Explosion Resistance
ทำงานยังไง
คืนค่า: f.
Parameters
Explosion explosionBlockGetter blockGetterBlockPos blockPosBlockState blockStateFluidState fluidStatefloat f
ตัวอย่างใช้งาน
Entity instance = ...;
Explosion explosion = ...;
BlockGetter blockGetter = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
FluidState fluidState = ...;
float result = instance.getBlockExplosionResistance(explosion, blockGetter, blockPos, blockState, fluidState, 0.0F);
net.minecraft.world.entity.Entity#getBlockJumpFactor()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:873 - Modifiers:
protected - Return:
float
คืออะไร
อ่านค่า Block Jump Factor
ทำงานยังไง
เรียกต่อ: level(), getBlockState(), blockPosition(), getBlock(), getJumpFactor(), getBlockPosBelowThatAffectsMyMovement(). คืนค่า: f == 1.0 ? g : f.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getBlockPosBelowThatAffectsMyMovement()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:846 - Modifiers:
public - Return:
BlockPos
คืออะไร
อ่านค่า Block Pos Below That Affects My Movement
ทำงานยังไง
เรียกต่อ: getOnPos(). คืนค่า: this.getOnPos(0.500001F).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getBlockSpeedFactor()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:879 - Modifiers:
protected - Return:
float
คืออะไร
อ่านค่า Block Speed Factor
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), getBlockState(), blockPosition(), getBlock(), getSpeedFactor(), is(), getBlockPosBelowThatAffectsMyMovement(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getBlockStateOn()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1396 - Modifiers:
public - Return:
BlockState
คืออะไร
อ่านค่า Block State On
ทำงานยังไง
เรียกต่อ: level(), getBlockState(), getOnPos(). คืนค่า: this.level().getBlockState(this.getOnPos()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getBlockStateOnLegacy()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1391 - Modifiers:
protected - Return:
BlockState
คืออะไร
อ่านค่า Block State On Legacy
ทำงานยังไง
เรียกต่อ: level(), getBlockState(), getOnPosLegacy(). คืนค่า: this.level().getBlockState(this.getOnPosLegacy()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getBlockX()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3411 - Modifiers:
public final - Return:
int
คืออะไร
อ่านค่า Block X
ทำงานยังไง
เรียกต่อ: getX(). คืนค่า: this.blockPosition.getX().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getBlockY()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3427 - Modifiers:
public final - Return:
int
คืออะไร
อ่านค่า Block Y
ทำงานยังไง
เรียกต่อ: getY(). คืนค่า: this.blockPosition.getY().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getBlockZ()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3447 - Modifiers:
public final - Return:
int
คืออะไร
อ่านค่า Block Z
ทำงานยังไง
เรียกต่อ: getZ(). คืนค่า: this.blockPosition.getZ().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getBoundingBox()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3021 - Modifiers:
public final - Return:
AABB
คืออะไร
อ่านค่า Bounding Box
ทำงานยังไง
คืนค่า: this.bb.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getCollisionHorizontalEscapeVector(double,double,float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3201 - Modifiers:
protected static - Return:
Vec3
คืออะไร
อ่านค่า Collision Horizontal Escape Vector
ทำงานยังไง
เรียกต่อ: sin(), cos(), max(), abs(). สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(h * g / j, 0.0, i * g / j).
Parameters
double ddouble efloat f
ตัวอย่างใช้งาน
@Override
protected Vec3 getCollisionHorizontalEscapeVector(double d, double e, float f) {
return super.getCollisionHorizontalEscapeVector(d, e, f);
}
net.minecraft.world.entity.Entity#getCommandSenderWorld()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3050 - Modifiers:
public - Return:
Level
คืออะไร
อ่านค่า Command Sender World
ทำงานยังไง
เรียกต่อ: level(). คืนค่า: this.level().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getControlledVehicle()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3218 - Modifiers:
public - Return:
Entity
คืออะไร
อ่านค่า Controlled Vehicle
ทำงานยังไง
เรียกต่อ: getControllingPassenger(). คืนค่า: this.vehicle != null && this.vehicle.getControllingPassenger() == this ? this.vehicle : null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getControllingPassenger()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3103 - Modifiers:
public - Return:
LivingEntity
คืออะไร
อ่านค่า Controlling Passenger
ทำงานยังไง
คืนค่า: null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getCustomName()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2890 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Custom Name
ทำงานยังไง
เรียกต่อ: get(), orElse(). คืนค่า: this.entityData.get(DATA_CUSTOM_NAME).orElse(null).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getDefaultGravity()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1211 - Modifiers:
protected - Return:
double
คืออะไร
อ่านค่า Default Gravity
ทำงานยังไง
คืนค่า: 0.0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getDefaultPassengerAttachmentPoint(Entity,Entity,EntityAttachments)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2077 - Modifiers:
protected static - Return:
Vec3
คืออะไร
อ่านค่า Default Passenger Attachment Point
ทำงานยังไง
เรียกต่อ: getPassengers(), indexOf(), getClamped(). คืนค่า: entityAttachments.getClamped(EntityAttachment.PASSENGER, i, entity.yRot).
Parameters
Entity entityEntity entity2EntityAttachments entityAttachments
ตัวอย่างใช้งาน
Entity entity = ...;
Entity entity2 = ...;
EntityAttachments entityAttachments = ...;
@Override
protected Vec3 getDefaultPassengerAttachmentPoint(Entity entity, Entity entity2, EntityAttachments entityAttachments) {
return super.getDefaultPassengerAttachmentPoint(entity, entity2, entityAttachments);
}
net.minecraft.world.entity.Entity#getDeltaMovement()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3395 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Delta Movement
ทำงานยังไง
คืนค่า: this.deltaMovement.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getDimensionChangingDelay()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2288 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Dimension Changing Delay
ทำงานยังไง
เรียกต่อ: getFirstPassenger(). คืนค่า: entity instanceof ServerPlayer ? entity.getDimensionChangingDelay() : 300.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getDimensions(Pose)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3362 - Modifiers:
public - Return:
EntityDimensions
คืออะไร
อ่านค่า Dimensions
ทำงานยังไง
คืนค่า: this.type.getDimensions().
Parameters
Pose pose
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getDirection()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3005 - Modifiers:
public - Return:
Direction
คืออะไร
อ่านค่า Direction
ทำงานยังไง
เรียกต่อ: fromYRot(), getYRot(). คืนค่า: Direction.fromYRot(this.getYRot()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getDismountLocationForPassenger(LivingEntity)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3209 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Dismount Location For Passenger
ทำงานยังไง
เรียกต่อ: getX(), getBoundingBox(), getZ(). สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(this.getX(), this.getBoundingBox().maxY, this.getZ()).
Parameters
LivingEntity livingEntity
ตัวอย่างใช้งาน
Entity instance = ...;
LivingEntity livingEntity = ...;
Vec3 result = instance.getDismountLocationForPassenger(livingEntity);
net.minecraft.world.entity.Entity#getDisplayName()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2880 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Display Name
ทำงานยังไง
เรียกต่อ: formatNameForTeam(), getTeam(), getName(), withStyle(), withHoverEvent(), createHoverEvent(), withInsertion(), getStringUUID().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getEncodeId()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1922 - Modifiers:
protected final - Return:
String
คืออะไร
อ่านค่า Encode Id
ทำงานยังไง
เรียกต่อ: getType(), getKey(), canSerialize(), toString(). คืนค่า: entityType.canSerialize() && resourceLocation != null ? resourceLocation.toString() : null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getEntityData()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:349 - Modifiers:
public - Return:
SynchedEntityData
คืออะไร
อ่านค่า Entity Data
ทำงานยังไง
คืนค่า: this.entityData.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getEyeHeight()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3034 - Modifiers:
public final - Return:
float
คืออะไร
อ่านค่า Eye Height
ทำงานยังไง
คืนค่า: this.eyeHeight.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getEyeHeight(Pose)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3030 - Modifiers:
public final - Return:
float
คืออะไร
อ่านค่า Eye Height
ทำงานยังไง
เรียกต่อ: getDimensions(), eyeHeight(). คืนค่า: this.getDimensions(pose).eyeHeight().
Parameters
Pose pose
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getEyePosition()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1666 - Modifiers:
public final - Return:
Vec3
คืออะไร
อ่านค่า Eye Position
ทำงานยังไง
เรียกต่อ: getX(), getEyeY(), getZ(). สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(this.getX(), this.getEyeY(), this.getZ()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getEyePosition(float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1670 - Modifiers:
public final - Return:
Vec3
คืออะไร
อ่านค่า Eye Position
ทำงานยังไง
เรียกต่อ: lerp(), getX(), getY(), getEyeHeight(), getZ(). สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(d, e, g).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getEyeY()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3443 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Eye Y
ทำงานยังไง
คืนค่า: this.position.y + this.eyeHeight.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getFireImmuneTicks()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3231 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Fire Immune Ticks
ทำงานยังไง
คืนค่า: 1.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getFirstPassenger()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3116 - Modifiers:
public - Return:
Entity
คืออะไร
อ่านค่า First Passenger
ทำงานยังไง
เรียกต่อ: isEmpty(), get(). คืนค่า: this.passengers.isEmpty() ? null : this.passengers.get(0).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getFluidHeight(TagKey<Fluid>)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3342 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Fluid Height
ทำงานยังไง
เรียกต่อ: getDouble(). คืนค่า: this.fluidHeight.getDouble(tagKey).
Parameters
TagKey<Fluid> tagKey
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getFluidJumpThreshold()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3346 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Fluid Jump Threshold
ทำงานยังไง
เรียกต่อ: getEyeHeight(). คืนค่า: this.getEyeHeight() < 0.4 ? 0.0 : 0.4.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getForward()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2246 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Forward
ทำงานยังไง
เรียกต่อ: directionFromRotation(), getRotationVector(). คืนค่า: Vec3.directionFromRotation(this.getRotationVector()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getGravity()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1215 - Modifiers:
public final - Return:
double
คืออะไร
อ่านค่า Gravity
ทำงานยังไง
เรียกต่อ: isNoGravity(), getDefaultGravity(). คืนค่า: this.isNoGravity() ? 0.0 : this.getDefaultGravity().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getHandHoldingItemAngle(Item)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2232 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Hand Holding Item Angle
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getOffhandItem(), is(), getMainHandItem(), getMainArm(), getOpposite(), calculateViewVector(), getYRot(), scale(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Item item
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getId()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:317 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Id
ทำงานยังไง
คืนค่า: this.id.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getInBlockState()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3383 - Modifiers:
public - Return:
BlockState
คืออะไร
อ่านค่า In Block State
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: inBlockState. เรียกต่อ: level(), getBlockState(), blockPosition(). คืนค่า: this.inBlockState.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getIndirectPassengers()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3149 - Modifiers:
public - Return:
Iterable<Entity>
คืออะไร
อ่านค่า Indirect Passengers
ทำงานยังไง
เรียกต่อ: getIndirectPassengersStream(), iterator(). คืนค่า: () -> this.getIndirectPassengersStream().iterator().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getInputVector(Vec3,float,float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1437 - Modifiers:
protected static - Return:
Vec3
คืออะไร
อ่านค่า Input Vector
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: lengthSqr(), normalize(), scale(), sin(), cos(). สร้างออบเจ็กต์: Vec3. มีจุด return อย่างน้อย 2 จุด.
Parameters
Vec3 vec3float ffloat g
ตัวอย่างใช้งาน
Vec3 vec3 = ...;
@Override
protected Vec3 getInputVector(Vec3 vec3, float f, float g) {
return super.getInputVector(vec3, f, g);
}
net.minecraft.world.entity.Entity#getKnownMovement()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3637 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Known Movement
ทำงานยังไง
เรียกต่อ: getControllingPassenger(), isAlive(), getDeltaMovement(). คืนค่า: this.getControllingPassenger() instanceof Player player && this.isAlive() ? player.getKnownMovement() : this.getDeltaMovement().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getLeashOffset()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3042 - Modifiers:
protected - Return:
Vec3
คืออะไร
อ่านค่า Leash Offset
ทำงานยังไง
เรียกต่อ: getEyeHeight(), getBbWidth(). สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(0.0, this.getEyeHeight(), this.getBbWidth() * 0.4F).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getLeashOffset(float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3038 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Leash Offset
ทำงานยังไง
คืนค่า: this.getLeashOffset().
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getLightLevelDependentMagicValue()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1449 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Light Level Dependent Magic Value
ทำงานยังไง
เรียกต่อ: level(), hasChunkAt(), getBlockX(), getBlockZ(), containing(), getX(), getEyeY(), getZ().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getLightProbePosition(float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1677 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Light Probe Position
ทำงานยังไง
เรียกต่อ: getEyePosition(). คืนค่า: this.getEyePosition(f).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getLookAngle()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2228 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Look Angle
ทำงานยังไง
เรียกต่อ: calculateViewVector(), getXRot(), getYRot(). คืนค่า: this.calculateViewVector(this.getXRot(), this.getYRot()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getLootTable()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3646 - Modifiers:
public - Return:
Optional<ResourceKey<LootTable>>
คืออะไร
อ่านค่า Loot Table
ทำงานยังไง
เรียกต่อ: getDefaultLootTable(). คืนค่า: this.type.getDefaultLootTable().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getMaxAirSupply()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2450 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Max Air Supply
ทำงานยังไง
คืนค่า: 300.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getMaxFallDistance()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2823 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Max Fall Distance
ทำงานยังไง
คืนค่า: 3.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getMotionDirection()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3009 - Modifiers:
public - Return:
Direction
คืออะไร
อ่านค่า Motion Direction
ทำงานยังไง
เรียกต่อ: getDirection(). คืนค่า: this.getDirection().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getMovementEmission()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1226 - Modifiers:
protected - Return:
Entity.MovementEmission
คืออะไร
อ่านค่า Movement Emission
ทำงานยังไง
คืนค่า: Entity.MovementEmission.ALL.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
@Override
protected Entity.MovementEmission getMovementEmission() {
return super.getMovementEmission();
}
net.minecraft.world.entity.Entity#getName()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2577 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Name
ทำงานยังไง
เรียกต่อ: getCustomName(), removeAction(), getTypeName(). คืนค่า: component != null ? removeAction(component) : this.getTypeName().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getNearestViewDirection()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1628 - Modifiers:
public - Return:
Direction
คืออะไร
อ่านค่า Nearest View Direction
ทำงานยังไง
เรียกต่อ: getApproximateNearest(), getViewVector(). คืนค่า: Direction.getApproximateNearest(this.getViewVector(1.0F)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getOnPos()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:850 - Modifiers:
public - Return:
BlockPos
คืออะไร
อ่านค่า On Pos
ทำงานยังไง
คืนค่า: this.getOnPos(1.0E-5F).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getOnPos(float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:854 - Modifiers:
protected - Return:
BlockPos
คืออะไร
อ่านค่า On Pos
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isPresent(), get(), level(), getBlockState(), is(), getBlock(), atY(), floor(). สร้างออบเจ็กต์: BlockPos. มีจุด return อย่างน้อย 2 จุด.
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getOnPosLegacy()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:841 - Modifiers:
public - Return:
BlockPos
คืออะไร
อ่านค่า On Pos Legacy
ทำงานยังไง
เรียกต่อ: getOnPos(). คืนค่า: this.getOnPos(0.2F).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getPassengerAttachmentPoint(Entity,EntityDimensions,float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2073 - Modifiers:
protected - Return:
Vec3
คืออะไร
อ่านค่า Passenger Attachment Point
ทำงานยังไง
เรียกต่อ: getDefaultPassengerAttachmentPoint(), attachments(). คืนค่า: getDefaultPassengerAttachmentPoint(this, entity, entityDimensions.attachments()).
Parameters
Entity entityEntityDimensions entityDimensionsfloat f
ตัวอย่างใช้งาน
Entity entity = ...;
EntityDimensions entityDimensions = ...;
@Override
protected Vec3 getPassengerAttachmentPoint(Entity entity, EntityDimensions entityDimensions, float f) {
return super.getPassengerAttachmentPoint(entity, entityDimensions, f);
}
net.minecraft.world.entity.Entity#getPassengerRidingPosition(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2069 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Passenger Riding Position
ทำงานยังไง
เรียกต่อ: position(), add(), getPassengerAttachmentPoint(). คืนค่า: this.position().add(this.getPassengerAttachmentPoint(entity, this.dimensions, 1.0F)).
Parameters
Entity entity
ตัวอย่างใช้งาน
Entity instance = ...;
Entity entity = ...;
Vec3 result = instance.getPassengerRidingPosition(entity);
net.minecraft.world.entity.Entity#getPassengers()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3112 - Modifiers:
public final - Return:
List<Entity>
คืออะไร
อ่านค่า Passengers
ทำงานยังไง
คืนค่า: this.passengers.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getPassengersAndSelf()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3144 - Modifiers:
public - Return:
Stream<Entity>
คืออะไร
อ่านค่า Passengers And Self
ทำงานยังไง
เรียกต่อ: concat(), stream(), flatMap(), of(). คืนค่า: Stream.concat(this.passengers.stream().flatMap(Entity::getPassengersAndSelf), Stream.of(this)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getPercentFrozen()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2470 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Percent Frozen
ทำงานยังไง
เรียกต่อ: getTicksRequiredToFreeze(), min(), getTicksFrozen(). คืนค่า: (float)Math.min(this.getTicksFrozen(), i) / i.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getPickRadius()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2224 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Pick Radius
ทำงานยังไง
คืนค่า: 0.0F.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getPickResult()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3499 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Pick Result
ทำงานยังไง
คืนค่า: null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getPistonPushReaction()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3223 - Modifiers:
public - Return:
PushReaction
คืออะไร
อ่านค่า Piston Push Reaction
ทำงานยังไง
คืนค่า: PushReaction.NORMAL.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getPortalCooldown()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:522 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Portal Cooldown
ทำงานยังไง
คืนค่า: this.portalCooldown.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getPose()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:377 - Modifiers:
public - Return:
Pose
คืออะไร
อ่านค่า Pose
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_POSE).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getPosition(float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1681 - Modifiers:
public final - Return:
Vec3
คืออะไร
อ่านค่า Position
ทำงานยังไง
เรียกต่อ: lerp(), getX(), getY(), getZ(). สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(d, e, g).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getPositionCodec()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:309 - Modifiers:
public - Return:
VecDeltaCodec
คืออะไร
อ่านค่า Position Codec
ทำงานยังไง
คืนค่า: this.packetPositionCodec.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getPreciseBodyRotation(float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3262 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Precise Body Rotation
ทำงานยังไง
เรียกต่อ: lerp(). คืนค่า: Mth.lerp(f, this.yRotO, this.yRot).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getPrimaryStepSoundBlockPos(BlockPos)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1137 - Modifiers:
protected - Return:
BlockPos
คืออะไร
อ่านค่า Primary Step Sound Block Pos
ทำงานยังไง
เรียกต่อ: above(), level(), getBlockState(), is(). คืนค่า: !blockState.is(BlockTags.INSIDE_STEP_SOUND_BLOCKS) && !blockState.is(BlockTags.COMBINATION_STEP_SOUND_BLOCKS) ? blockPos : blockPos2.
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
@Override
protected BlockPos getPrimaryStepSoundBlockPos(BlockPos blockPos) {
return super.getPrimaryStepSoundBlockPos(blockPos);
}
net.minecraft.world.entity.Entity#getRandom()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3633 - Modifiers:
public - Return:
RandomSource
คืออะไร
อ่านค่า Random
ทำงานยังไง
คืนค่า: this.random.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getRandomX(double)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3423 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Random X
ทำงานยังไง
เรียกต่อ: getX(), nextDouble(). คืนค่า: this.getX((2.0 * this.random.nextDouble() - 1.0) * d).
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getRandomY()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3439 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Random Y
ทำงานยังไง
เรียกต่อ: getY(), nextDouble(). คืนค่า: this.getY(this.random.nextDouble()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getRandomZ(double)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3459 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Random Z
ทำงานยังไง
เรียกต่อ: getZ(), nextDouble(). คืนค่า: this.getZ((2.0 * this.random.nextDouble() - 1.0) * d).
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getRelativePortalPosition(Direction.Axis,BlockUtil.FoundRectangle)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2793 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Relative Portal Position
ทำงานยังไง
เรียกต่อ: getRelativePosition(), position(), getDimensions(), getPose(). คืนค่า: PortalShape.getRelativePosition(foundRectangle, axis, this.position(), this.getDimensions(this.getPose())).
Parameters
Direction.Axis axisBlockUtil.FoundRectangle foundRectangle
ตัวอย่างใช้งาน
Entity instance = ...;
Direction.Axis axis = ...;
BlockUtil.FoundRectangle foundRectangle = ...;
Vec3 result = instance.getRelativePortalPosition(axis, foundRectangle);
net.minecraft.world.entity.Entity#getRemainingFireTicks()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:568 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Remaining Fire Ticks
ทำงานยังไง
คืนค่า: this.remainingFireTicks.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getRemovalReason()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3559 - Modifiers:
public - Return:
Entity.RemovalReason
คืออะไร
อ่านค่า Removal Reason
ทำงานยังไง
คืนค่า: this.removalReason.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getRootVehicle()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3161 - Modifiers:
public - Return:
Entity
คืออะไร
อ่านค่า Root Vehicle
ทำงานยังไง
มีการวนลูป. เรียกต่อ: isPassenger(), getVehicle(). คืนค่า: entity.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getRopeHoldPosition(float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3484 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Rope Hold Position
ทำงานยังไง
เรียกต่อ: getPosition(), add(). คืนค่า: this.getPosition(f).add(0.0, this.eyeHeight * 0.7, 0.0).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getRotationVector()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2242 - Modifiers:
public - Return:
Vec2
คืออะไร
อ่านค่า Rotation Vector
ทำงานยังไง
เรียกต่อ: getXRot(), getYRot(). สร้างออบเจ็กต์: Vec2. คืนค่า: new Vec2(this.getXRot(), this.getYRot()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getScoreboardName()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2863 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Scoreboard Name
ทำงานยังไง
คืนค่า: this.stringUUID.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getSelfAndPassengers()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3139 - Modifiers:
public - Return:
Stream<Entity>
คืออะไร
อ่านค่า Self And Passengers
ทำงานยังไง
เรียกต่อ: concat(), of(), getIndirectPassengersStream(). คืนค่า: Stream.concat(Stream.of(this), this.getIndirectPassengersStream()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getServer()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3054 - Modifiers:
public - Return:
MinecraftServer
คืออะไร
อ่านค่า Server
ทำงานยังไง
เรียกต่อ: level(). คืนค่า: this.level().getServer().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getSharedFlag(int)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2437 - Modifiers:
protected - Return:
boolean
คืออะไร
อ่านค่า Shared Flag
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: (this.entityData.get(DATA_SHARED_FLAGS_ID) & 1 << i) != 0.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getSlot(int)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3046 - Modifiers:
public - Return:
SlotAccess
คืออะไร
อ่านค่า Slot
ทำงานยังไง
คืนค่า: SlotAccess.NULL.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getSoundSource()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3227 - Modifiers:
public - Return:
SoundSource
คืออะไร
อ่านค่า Sound Source
ทำงานยังไง
คืนค่า: SoundSource.NEUTRAL.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getStringUUID()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2859 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า String UUID
ทำงานยังไง
คืนค่า: this.stringUUID.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getSwimHighSpeedSplashSound()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1048 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Swim High Speed Splash Sound
ทำงานยังไง
คืนค่า: SoundEvents.GENERIC_SPLASH.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
@Override
protected SoundEvent getSwimHighSpeedSplashSound() {
return super.getSwimHighSpeedSplashSound();
}
net.minecraft.world.entity.Entity#getSwimSound()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1040 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Swim Sound
ทำงานยังไง
คืนค่า: SoundEvents.GENERIC_SWIM.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getSwimSplashSound()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1044 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Swim Splash Sound
ทำงานยังไง
คืนค่า: SoundEvents.GENERIC_SPLASH.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getTags()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:326 - Modifiers:
public - Return:
Set<String>
คืออะไร
อ่านค่า Tags
ทำงานยังไง
คืนค่า: this.tags.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getTeam()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2416 - Modifiers:
public - Return:
PlayerTeam
คืออะไร
อ่านค่า Team
ทำงานยังไง
เรียกต่อ: level(), getScoreboard(), getPlayersTeam(), getScoreboardName(). คืนค่า: this.level().getScoreboard().getPlayersTeam(this.getScoreboardName()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getTeamColor()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:286 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Team Color
ทำงานยังไง
เรียกต่อ: getTeam(), getColor(). คืนค่า: team != null && team.getColor().getColor() != null ? team.getColor().getColor() : 16777215.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getTicksFrozen()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2462 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Ticks Frozen
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_TICKS_FROZEN).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getTicksRequiredToFreeze()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2479 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Ticks Required To Freeze
ทำงานยังไง
คืนค่า: 140.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getType()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:313 - Modifiers:
public - Return:
EntityType<?>
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: this.type.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getTypeName()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2583 - Modifiers:
protected - Return:
Component
คืออะไร
อ่านค่า Type Name
ทำงานยังไง
เรียกต่อ: getDescription(). คืนค่า: this.type.getDescription().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getUpVector(float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1658 - Modifiers:
public final - Return:
Vec3
คืออะไร
อ่านค่า Up Vector
ทำงานยังไง
เรียกต่อ: calculateUpVector(), getViewXRot(), getViewYRot(). คืนค่า: this.calculateUpVector(this.getViewXRot(f), this.getViewYRot(f)).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getUUID()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2854 - Modifiers:
public - Return:
UUID
คืออะไร
อ่านค่า UUID
ทำงานยังไง
คืนค่า: this.uuid.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getVehicle()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3213 - Modifiers:
public - Return:
Entity
คืออะไร
อ่านค่า Vehicle
ทำงานยังไง
คืนค่า: this.vehicle.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getVehicleAttachmentPoint(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2065 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Vehicle Attachment Point
ทำงานยังไง
เรียกต่อ: getAttachments(), get(). คืนค่า: this.getAttachments().get(EntityAttachment.VEHICLE, 0, this.yRot).
Parameters
Entity entity
ตัวอย่างใช้งาน
Entity instance = ...;
Entity entity = ...;
Vec3 result = instance.getVehicleAttachmentPoint(entity);
net.minecraft.world.entity.Entity#getViewScale()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2872 - Modifiers:
public static - Return:
double
คืออะไร
อ่านค่า View Scale
ทำงานยังไง
คืนค่า: viewScale.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getViewVector(float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1624 - Modifiers:
public final - Return:
Vec3
คืออะไร
อ่านค่า View Vector
ทำงานยังไง
เรียกต่อ: calculateViewVector(), getViewXRot(), getViewYRot(). คืนค่า: this.calculateViewVector(this.getViewXRot(f), this.getViewYRot(f)).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getViewXRot(float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1632 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า View XRot
ทำงานยังไง
เรียกต่อ: getXRot(). คืนค่า: this.getXRot(f).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getViewYRot(float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1636 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า View YRot
ทำงานยังไง
เรียกต่อ: getYRot(). คืนค่า: this.getYRot(f).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getVisualRotationYInDegrees()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3520 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Visual Rotation YIn Degrees
ทำงานยังไง
เรียกต่อ: getYRot(). คืนค่า: this.getYRot().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getWeaponItem()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3641 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Weapon Item
ทำงานยังไง
คืนค่า: null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getX()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3415 - Modifiers:
public final - Return:
double
คืออะไร
อ่านค่า X
ทำงานยังไง
คืนค่า: this.position.x.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getX(double)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3419 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า X
ทำงานยังไง
เรียกต่อ: getBbWidth(). คืนค่า: this.position.x + this.getBbWidth() * d.
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getXRot()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3532 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า XRot
ทำงานยังไง
คืนค่า: this.xRot.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getXRot(float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1640 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า XRot
ทำงานยังไง
เรียกต่อ: lerp(). คืนค่า: f == 1.0F ? this.getXRot() : Mth.lerp(f, this.xRotO, this.getXRot()).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getY()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3431 - Modifiers:
public final - Return:
double
คืออะไร
อ่านค่า Y
ทำงานยังไง
คืนค่า: this.position.y.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getY(double)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3435 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Y
ทำงานยังไง
เรียกต่อ: getBbHeight(). คืนค่า: this.position.y + this.getBbHeight() * d.
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getYHeadRot()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2591 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า YHead Rot
ทำงานยังไง
คืนค่า: 0.0F.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getYRot()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3516 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า YRot
ทำงานยังไง
คืนค่า: this.yRot.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getYRot(float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1644 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า YRot
ทำงานยังไง
เรียกต่อ: rotLerp(). คืนค่า: f == 1.0F ? this.getYRot() : Mth.rotLerp(f, this.yRotO, this.getYRot()).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getZ()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3451 - Modifiers:
public final - Return:
double
คืออะไร
อ่านค่า Z
ทำงานยังไง
คืนค่า: this.position.z.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#getZ(double)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3455 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Z
ทำงานยังไง
เรียกต่อ: getBbWidth(). คืนค่า: this.position.z + this.getBbWidth() * d.
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#handleDamageEvent(DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2297 - Modifiers:
public - Return:
void
คืออะไร
จัดการ Damage Event
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
DamageSource damageSource
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#handleEntityEvent(byte)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2300 - Modifiers:
public - Return:
void
คืออะไร
จัดการ Entity Event
ทำงานยังไง
แยกกรณีด้วย switch. เรียกต่อ: showSlideParticles().
Parameters
byte b
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#handlePortal()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2263 - Modifiers:
protected - Return:
void
คืออะไร
จัดการ Portal
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: portalProcess. เรียกต่อ: level(), processPortalCooldown(), processPortalTeleportation(), canUsePortal(), get(), push(), setPortalCooldown(), getPortalDestination().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#hasControllingPassenger()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3108 - Modifiers:
public final - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Controlling Passenger
ทำงานยังไง
เรียกต่อ: getControllingPassenger(). คืนค่า: this.getControllingPassenger() != null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#hasCustomName()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2896 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Custom Name
ทำงานยังไง
เรียกต่อ: get(), isPresent(). คืนค่า: this.entityData.get(DATA_CUSTOM_NAME).isPresent().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#hasExactlyOnePlayerPassenger()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3157 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Exactly One Player Passenger
ทำงานยังไง
เรียกต่อ: countPlayerPassengers(). คืนค่า: this.countPlayerPassengers() == 1.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#hasGlowingTag()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2383 - Modifiers:
public final - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Glowing Tag
ทำงานยังไง
คืนค่า: this.hasGlowingTag.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#hashCode()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:358 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ hashCode ตาม implementation ของ Entity
ทำงานยังไง
คืนค่า: this.id.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#hasIndirectPassenger(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3175 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Indirect Passenger
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isPassenger(), getVehicle(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#hasPassenger(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3121 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Passenger
ทำงานยังไง
เรียกต่อ: contains(). คืนค่า: this.passengers.contains(entity).
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#hasPassenger(Predicate<Entity>)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3125 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Passenger
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: test(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Predicate<Entity> predicate
ตัวอย่างใช้งาน
Entity instance = ...;
Predicate<Entity> predicate = ...;
boolean result = instance.hasPassenger(predicate);
net.minecraft.world.entity.Entity#hasPose(Pose)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:381 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Pose
ทำงานยังไง
เรียกต่อ: getPose(). คืนค่า: this.getPose() == pose.
Parameters
Pose pose
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#hurt(DamageSource,float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1606 - Modifiers:
public final - Return:
void
คืออะไร
ประมวลผลความเสียหาย hurt
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: hurtServer().
Parameters
DamageSource damageSourcefloat f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#hurtClient(DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1620 - Modifiers:
public - Return:
boolean
คืออะไร
ประมวลผลความเสียหาย Client
ทำงานยังไง
คืนค่า: false.
Parameters
DamageSource damageSource
ตัวอย่างใช้งาน
Entity instance = ...;
DamageSource damageSource = ...;
boolean result = instance.hurtClient(damageSource);
net.minecraft.world.entity.Entity#hurtOrSimulate(DamageSource,float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1613 - Modifiers:
public final - Return:
boolean
คืออะไร
ประมวลผลความเสียหาย Or Simulate
ทำงานยังไง
เรียกต่อ: hurtServer(), hurtClient(). คืนค่า: this.level instanceof ServerLevel serverLevel ? this.hurtServer(serverLevel, damageSource, f) : this.hurtClient(damageSource).
Parameters
DamageSource damageSourcefloat f
ตัวอย่างใช้งาน
Entity instance = ...;
DamageSource damageSource = ...;
boolean result = instance.hurtOrSimulate(damageSource, 0.0F);
net.minecraft.world.entity.Entity#hurtServer(ServerLevel,DamageSource,float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1618 - Modifiers:
public abstract - Return:
boolean
คืออะไร
ประมวลผลความเสียหาย Server
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
ServerLevel serverLevelDamageSource damageSourcefloat f
ตัวอย่างใช้งาน
Entity instance = ...;
ServerLevel serverLevel = ...;
DamageSource damageSource = ...;
boolean result = instance.hurtServer(serverLevel, damageSource, 0.0F);
net.minecraft.world.entity.Entity#igniteForSeconds(float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:554 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ igniteForSeconds ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: igniteForTicks(), floor().
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#igniteForTicks(int)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:558 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ igniteForTicks ตาม implementation ของ Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: setRemainingFireTicks().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#ignoreExplosion(Explosion)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3063 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ ignoreExplosion ตาม implementation ของ Entity
ทำงานยังไง
คืนค่า: false.
Parameters
Explosion explosion
ตัวอย่างใช้งาน
Entity instance = ...;
Explosion explosion = ...;
boolean result = instance.ignoreExplosion(explosion);
net.minecraft.world.entity.Entity#interact(Player,InteractionHand)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2004 - Modifiers:
public - Return:
InteractionResult
คืออะไร
จัดการ interaction interact
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isAlive(), getLeashHolder(), level(), isClientSide(), hasInfiniteMaterials(), removeLeash(), dropLeash(), gameEvent(). มีจุด return อย่างน้อย 3 จุด.
Parameters
Player playerInteractionHand interactionHand
ตัวอย่างใช้งาน
Entity instance = ...;
Player player = ...;
InteractionHand interactionHand = ...;
InteractionResult result = instance.interact(player, interactionHand);
net.minecraft.world.entity.Entity#interactAt(Player,Vec3,InteractionHand)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3059 - Modifiers:
public - Return:
InteractionResult
คืออะไร
จัดการ interaction At
ทำงานยังไง
คืนค่า: InteractionResult.PASS.
Parameters
Player playerVec3 vec3InteractionHand interactionHand
ตัวอย่างใช้งาน
Entity instance = ...;
Player player = ...;
Vec3 vec3 = ...;
InteractionHand interactionHand = ...;
InteractionResult result = instance.interactAt(player, vec3, interactionHand);
net.minecraft.world.entity.Entity#is(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2587 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ is
ทำงานยังไง
คืนค่า: this == entity.
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isAffectedByBlocks()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:787 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Affected By Blocks
ทำงานยังไง
เรียกต่อ: isRemoved(). คืนค่า: !this.isRemoved() && !this.noPhysics.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isAlive()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1980 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Alive
ทำงานยังไง
เรียกต่อ: isRemoved(). คืนค่า: !this.isRemoved().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isAlliedTo(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2421 - Modifiers:
public final - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Allied To
ทำงานยังไง
เรียกต่อ: considersEntityAsAlly(). คืนค่า: entity == null ? false : this == entity || this.considersEntityAsAlly(entity) || entity.considersEntityAsAlly(this).
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isAlliedTo(Team)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2429 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Allied To
ทำงานยังไง
เรียกต่อ: getTeam(). คืนค่า: this.getTeam() != null ? this.getTeam().isAlliedTo(team) : false.
Parameters
Team team
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isAlwaysTicking()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3597 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Always Ticking
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isAttackable()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2601 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Attackable
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isColliding(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:280 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Colliding
ทำงานยังไง
เรียกต่อ: getCollisionShape(), level(), of(), move(), getX(), getY(), getZ(), joinIsNotEmpty(). คืนค่า: Shapes.joinIsNotEmpty(voxelShape2, Shapes.create(this.getBoundingBox()), BooleanOp.AND).
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
Entity instance = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
boolean result = instance.isColliding(blockPos, blockState);
net.minecraft.world.entity.Entity#isControlledByClient()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3192 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Controlled By Client
ทำงานยังไง
เรียกต่อ: getControllingPassenger(). คืนค่า: livingEntity != null && livingEntity.isControlledByClient().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isControlledByLocalInstance()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3188 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Controlled By Local Instance
ทำงานยังไง
เรียกต่อ: getControllingPassenger(), isLocalPlayer(), isEffectiveAi(). คืนค่า: this.getControllingPassenger() instanceof Player player ? player.isLocalPlayer() : this.isEffectiveAi().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isControlledByOrIsLocalPlayer()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3184 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Controlled By Or Is Local Player
ทำงานยังไง
เรียกต่อ: isLocalPlayer(), isControlledByLocalInstance(). คืนค่า: this instanceof Player player ? player.isLocalPlayer() : this.isControlledByLocalInstance().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isCrouching()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2355 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Crouching
ทำงานยังไง
เรียกต่อ: hasPose(). คืนค่า: this.hasPose(Pose.CROUCHING).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isCurrentlyGlowing()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2392 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Currently Glowing
ทำงานยังไง
เรียกต่อ: level(), isClientSide(), getSharedFlag(). คืนค่า: this.level().isClientSide() ? this.getSharedFlag(6) : this.hasGlowingTag.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isCustomNameVisible()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2905 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Custom Name Visible
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_CUSTOM_NAME_VISIBLE).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isDescending()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2351 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Descending
ทำงานยังไง
เรียกต่อ: isShiftKeyDown(). คืนค่า: this.isShiftKeyDown().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isDiscrete()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2347 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Discrete
ทำงานยังไง
เรียกต่อ: isShiftKeyDown(). คืนค่า: this.isShiftKeyDown().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isEffectiveAi()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3197 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Effective Ai
ทำงานยังไง
เรียกต่อ: level(). คืนค่า: !this.level().isClientSide.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isEyeInFluid(TagKey<Fluid>)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1424 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Eye In Fluid
ทำงานยังไง
เรียกต่อ: contains(). คืนค่า: this.fluidOnEyes.contains(tagKey).
Parameters
TagKey<Fluid> tagKey
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isFlapping()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1179 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Flapping
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isFree(double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:580 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Free
ทำงานยังไง
เรียกต่อ: getBoundingBox(), move(). คืนค่า: this.isFree(this.getBoundingBox().move(d, e, f)).
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isFreezing()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3512 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Freezing
ทำงานยังไง
เรียกต่อ: canFreeze(). คืนค่า: (this.isInPowderSnow || this.wasInPowderSnow) && this.canFreeze().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isFullyFrozen()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2475 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Fully Frozen
ทำงานยังไง
เรียกต่อ: getTicksFrozen(), getTicksRequiredToFreeze(). คืนค่า: this.getTicksFrozen() >= this.getTicksRequiredToFreeze().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isHorizontalCollisionMinor(Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:816 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Horizontal Collision Minor
ทำงานยังไง
คืนค่า: false.
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
Vec3 vec3 = ...;
@Override
protected boolean isHorizontalCollisionMinor(Vec3 vec3) {
return super.isHorizontalCollisionMinor(vec3);
}
net.minecraft.world.entity.Entity#isIgnoringBlockTriggers()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2827 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Ignoring Block Triggers
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isInLava()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1428 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ In Lava
ทำงานยังไง
เรียกต่อ: getDouble(). คืนค่า: !this.firstTick && this.fluidHeight.getDouble(FluidTags.LAVA) > 0.0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isInLiquid()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1304 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ In Liquid
ทำงานยังไง
เรียกต่อ: isInWaterOrBubble(), isInLava(). คืนค่า: this.isInWaterOrBubble() || this.isInLava().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isInvisible()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2396 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Invisible
ทำงานยังไง
เรียกต่อ: getSharedFlag(). คืนค่า: this.getSharedFlag(5).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isInvisibleTo(Player)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2400 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Invisible To
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isSpectator(), getTeam(), canSeeFriendlyInvisibles(), isInvisible(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isInvulnerable()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2645 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Invulnerable
ทำงานยังไง
คืนค่า: this.invulnerable.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isInvulnerableToBase(DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2638 - Modifiers:
protected final - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Invulnerable To Base
ทำงานยังไง
เรียกต่อ: isRemoved(), is(), isCreativePlayer(), fireImmune(), getType().
Parameters
DamageSource damageSource
ตัวอย่างใช้งาน
DamageSource damageSource = ...;
@Override
protected boolean isInvulnerableToBase(DamageSource damageSource) {
return super.isInvulnerableToBase(damageSource);
}
net.minecraft.world.entity.Entity#isInWall()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1984 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ In Wall
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: width(), ofSize(), getEyePosition(), betweenClosedStream(), anyMatch(), level(), getBlockState(), isAir(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isInWater()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1279 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ In Water
ทำงานยังไง
คืนค่า: this.wasTouchingWater.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isInWaterOrBubble()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1300 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ In Water Or Bubble
ทำงานยังไง
เรียกต่อ: isInWater(), isInBubbleColumn(). คืนค่า: this.isInWater() || this.isInBubbleColumn().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isInWaterOrRain()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1292 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ In Water Or Rain
ทำงานยังไง
เรียกต่อ: isInWater(), isInRain(). คืนค่า: this.isInWater() || this.isInRain().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isInWaterRainOrBubble()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1296 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ In Water Rain Or Bubble
ทำงานยังไง
เรียกต่อ: isInWater(), isInRain(), isInBubbleColumn(). คืนค่า: this.isInWater() || this.isInRain() || this.isInBubbleColumn().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isNoGravity()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1203 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ No Gravity
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_NO_GRAVITY).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isOnFire()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2310 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ On Fire
ทำงานยังไง
เรียกต่อ: level(), fireImmune(), getSharedFlag(). คืนค่า: !this.fireImmune() && (this.remainingFireTicks > 0 || bl && this.getSharedFlag(0)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isOnPortalCooldown()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:526 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ On Portal Cooldown
ทำงานยังไง
คืนค่า: this.portalCooldown > 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isOnRails()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2409 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ On Rails
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isPassenger()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2315 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Passenger
ทำงานยังไง
เรียกต่อ: getVehicle(). คืนค่า: this.getVehicle() != null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isPassengerOfSameVehicle(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3171 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Passenger Of Same Vehicle
ทำงานยังไง
เรียกต่อ: getRootVehicle(). คืนค่า: this.getRootVehicle() == entity.getRootVehicle().
Parameters
Entity entity
ตัวอย่างใช้งาน
Entity instance = ...;
Entity entity = ...;
boolean result = instance.isPassengerOfSameVehicle(entity);
net.minecraft.world.entity.Entity#isPickable()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1699 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Pickable
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isPushable()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1703 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Pushable
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isPushedByFluid()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2868 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Pushed By Fluid
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isRemoved()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3555 - Modifiers:
public final - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Removed
ทำงานยังไง
คืนค่า: this.removalReason != null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isShiftKeyDown()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2335 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Shift Key Down
ทำงานยังไง
เรียกต่อ: getSharedFlag(). คืนค่า: this.getSharedFlag(1).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isSilent()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1195 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Silent
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_SILENT).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isSpectator()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:291 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Spectator
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isSprinting()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2359 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Sprinting
ทำงานยังไง
เรียกต่อ: getSharedFlag(). คืนค่า: this.getSharedFlag(3).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isSteppingCarefully()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2339 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Stepping Carefully
ทำงานยังไง
เรียกต่อ: isShiftKeyDown(). คืนค่า: this.isShiftKeyDown().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isSupportedBy(BlockPos)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:603 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Supported By
ทำงานยังไง
เรียกต่อ: isPresent(), get(), equals(). คืนค่า: this.mainSupportingBlockPos.isPresent() && this.mainSupportingBlockPos.get().equals(blockPos).
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isSuppressingBounce()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2343 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Suppressing Bounce
ทำงานยังไง
เรียกต่อ: isShiftKeyDown(). คืนค่า: this.isShiftKeyDown().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isSwimming()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2367 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Swimming
ทำงานยังไง
เรียกต่อ: getSharedFlag(). คืนค่า: this.getSharedFlag(4).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isUnderWater()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1308 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Under Water
ทำงานยังไง
เรียกต่อ: isInWater(). คืนค่า: this.wasEyeInWater && this.isInWater().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isVehicle()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2319 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Vehicle
ทำงานยังไง
เรียกต่อ: isEmpty(). คืนค่า: !this.passengers.isEmpty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isVisuallyCrawling()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2375 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Visually Crawling
ทำงานยังไง
เรียกต่อ: isVisuallySwimming(), isInWater(). คืนค่า: this.isVisuallySwimming() && !this.isInWater().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#isVisuallySwimming()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2371 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Visually Swimming
ทำงานยังไง
เรียกต่อ: hasPose(). คืนค่า: this.hasPose(Pose.SWIMMING).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#kill(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:338 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ kill ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: remove(), gameEvent().
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#killedEntity(ServerLevel,LivingEntity)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2517 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ killedEntity ตาม implementation ของ Entity
ทำงานยังไง
คืนค่า: true.
Parameters
ServerLevel serverLevelLivingEntity livingEntity
ตัวอย่างใช้งาน
Entity instance = ...;
ServerLevel serverLevel = ...;
LivingEntity livingEntity = ...;
boolean result = instance.killedEntity(serverLevel, livingEntity);
net.minecraft.world.entity.Entity#lavaHurt()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:536 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ lavaHurt ตาม implementation ของ Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: fireImmune(), igniteForSeconds(), level(), hurtServer(), damageSources(), lava(), shouldPlayLavaHurtSound(), isSilent().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#lerpHeadTo(float,int)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2220 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ lerpHeadTo ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: setYHeadRot().
Parameters
float fint i
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#lerpMotion(double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2293 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ lerpMotion ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: setDeltaMovement().
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#lerpPositionAndRotationStep(int,double,double,double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3622 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ lerpPositionAndRotationStep ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: lerp(), getX(), getY(), getZ(), rotLerp(), getYRot(), getXRot(), setPos().
Parameters
int idouble ddouble edouble fdouble gdouble h
ตัวอย่างใช้งาน
@Override
protected void lerpPositionAndRotationStep(int i, double d, double e, double f, double g, double h) {
super.lerpPositionAndRotationStep(i, d, e, f, g, h);
}
net.minecraft.world.entity.Entity#lerpTargetX()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2200 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ lerpTargetX ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: getX(). คืนค่า: this.getX().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#lerpTargetXRot()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2212 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ lerpTargetXRot ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: getXRot(). คืนค่า: this.getXRot().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#lerpTargetY()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2204 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ lerpTargetY ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: getY(). คืนค่า: this.getY().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#lerpTargetYRot()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2216 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ lerpTargetYRot ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: getYRot(). คืนค่า: this.getYRot().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#lerpTargetZ()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2208 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ lerpTargetZ ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: getZ(). คืนค่า: this.getZ().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#lerpTo(double,double,double,float,float,int)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2195 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ lerpTo ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: setPos(), setRot().
Parameters
double ddouble edouble ffloat gfloat hint i
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#level()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3606 - Modifiers:
public - Return:
Level
คืออะไร
ดำเนินการ level ตาม implementation ของ Entity
ทำงานยังไง
คืนค่า: this.level.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#limitPistonMovement(Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:893 - Modifiers:
protected - Return:
Vec3
คืออะไร
ดำเนินการ limitPistonMovement ตาม implementation ของ Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: pistonDeltasGameTime. เรียกต่อ: lengthSqr(), level(), getGameTime(), fill(), applyPistonMovementRestriction(), abs(). สร้างออบเจ็กต์: Vec3. มีจุด return อย่างน้อย 5 จุด.
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
Vec3 vec3 = ...;
@Override
protected Vec3 limitPistonMovement(Vec3 vec3) {
return super.limitPistonMovement(vec3);
}
net.minecraft.world.entity.Entity#load(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1833 - Modifiers:
public - Return:
void
คืออะไร
โหลด load
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. แก้ state: hasImpulse, fallDistance, remainingFireTicks, onGround, invulnerable, portalCooldown. เรียกต่อ: getList(), getDouble(), setDeltaMovement(), abs(), setPosRaw(), clamp(), setYRot(), getFloat(). สร้างออบเจ็กต์: IllegalStateException, ReportedException.
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#lookAt(EntityAnchorArgument.Anchor,Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3249 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ lookAt ตาม implementation ของ Entity
ทำงานยังไง
แก้ state: xRotO, yRotO. เรียกต่อ: apply(), sqrt(), setXRot(), wrapDegrees(), atan2(), setYRot(), setYHeadRot(), getYRot().
Parameters
EntityAnchorArgument.Anchor anchorVec3 vec3
ตัวอย่างใช้งาน
Entity instance = ...;
EntityAnchorArgument.Anchor anchor = ...;
Vec3 vec3 = ...;
instance.lookAt(anchor, vec3);
net.minecraft.world.entity.Entity#makeBoundingBox()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:410 - Modifiers:
protected final - Return:
AABB
คืออะไร
สร้าง Bounding Box
ทำงานยังไง
คืนค่า: this.makeBoundingBox(this.position).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#makeBoundingBox(Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:414 - Modifiers:
protected - Return:
AABB
คืออะไร
สร้าง Bounding Box
ทำงานยังไง
คืนค่า: this.dimensions.makeBoundingBox(vec3).
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
Vec3 vec3 = ...;
@Override
protected AABB makeBoundingBox(Vec3 vec3) {
return super.makeBoundingBox(vec3);
}
net.minecraft.world.entity.Entity#makeStuckInBlock(BlockState,Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2562 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Stuck In Block
ทำงานยังไง
แก้ state: stuckSpeedMultiplier. เรียกต่อ: resetFallDistance().
Parameters
BlockState blockStateVec3 vec3
ตัวอย่างใช้งาน
Entity instance = ...;
BlockState blockState = ...;
Vec3 vec3 = ...;
instance.makeStuckInBlock(blockState, vec3);
net.minecraft.world.entity.Entity#markHurt()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1602 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ markHurt ตาม implementation ของ Entity
ทำงานยังไง
แก้ state: hurtMarked.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#maxUpStep()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3548 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ maxUpStep ตาม implementation ของ Entity
ทำงานยังไง
คืนค่า: 0.0F.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#maybeBackOffFromEdge(Vec3,MoverType)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:889 - Modifiers:
protected - Return:
Vec3
คืออะไร
ดำเนินการ maybeBackOffFromEdge ตาม implementation ของ Entity
ทำงานยังไง
คืนค่า: vec3.
Parameters
Vec3 vec3MoverType moverType
ตัวอย่างใช้งาน
Vec3 vec3 = ...;
MoverType moverType = ...;
@Override
protected Vec3 maybeBackOffFromEdge(Vec3 vec3, MoverType moverType) {
return super.maybeBackOffFromEdge(vec3, moverType);
}
net.minecraft.world.entity.Entity#mayInteract(ServerLevel,BlockPos)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3602 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ mayInteract ตาม implementation ของ Entity
ทำงานยังไง
คืนค่า: true.
Parameters
ServerLevel serverLevelBlockPos blockPos
ตัวอย่างใช้งาน
Entity instance = ...;
ServerLevel serverLevel = ...;
BlockPos blockPos = ...;
boolean result = instance.mayInteract(serverLevel, blockPos);
net.minecraft.world.entity.Entity#mirror(Mirror)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3087 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ mirror ตาม implementation ของ Entity
ทำงานยังไง
แยกกรณีด้วย switch. เรียกต่อ: wrapDegrees(), getYRot(). มีจุด return อย่างน้อย 3 จุด.
Parameters
Mirror mirror
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#move(MoverType,Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:633 - Modifiers:
public - Return:
void
คืออะไร
เคลื่อนที่ move
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: wasOnFire, stuckSpeedMultiplier, horizontalCollision, verticalCollision, verticalCollisionBelow, minorHorizontalCollision. เรียกต่อ: setPos(), getX(), getY(), getZ(), isOnFire(), limitPistonMovement(), equals(), get(). สร้างออบเจ็กต์: ClipContext.
Parameters
MoverType moverTypeVec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#moveRelative(float,Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1432 - Modifiers:
public - Return:
void
คืออะไร
เคลื่อนที่ Relative
ทำงานยังไง
เรียกต่อ: getInputVector(), getYRot(), setDeltaMovement(), getDeltaMovement(), add().
Parameters
float fVec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#moveTo(BlockPos,float,float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1485 - Modifiers:
public - Return:
void
คืออะไร
เคลื่อนที่ To
ทำงานยังไง
เรียกต่อ: getBottomCenter().
Parameters
BlockPos blockPosfloat ffloat g
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#moveTo(double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1481 - Modifiers:
public - Return:
void
คืออะไร
เคลื่อนที่ To
ทำงานยังไง
เรียกต่อ: getYRot(), getXRot().
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#moveTo(double,double,double,float,float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1493 - Modifiers:
public - Return:
void
คืออะไร
เคลื่อนที่ To
ทำงานยังไง
เรียกต่อ: setPosRaw(), setYRot(), setXRot(), setOldPosAndRot(), reapplyPosition().
Parameters
double ddouble edouble ffloat gfloat h
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#moveTo(Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1477 - Modifiers:
public - Return:
void
คืออะไร
เคลื่อนที่ To
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#moveTo(Vec3,float,float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1489 - Modifiers:
public - Return:
void
คืออะไร
เคลื่อนที่ To
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Vec3 vec3float ffloat g
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#moveTowardsClosestSpace(double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2531 - Modifiers:
protected - Return:
void
คืออะไร
เคลื่อนที่ Towards Closest Space
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: containing(), getX(), getY(), getZ(), MutableBlockPos(), setWithOffset(), level(), getBlockState(). สร้างออบเจ็กต์: Vec3, BlockPos.MutableBlockPos.
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
@Override
protected void moveTowardsClosestSpace(double d, double e, double f) {
super.moveTowardsClosestSpace(d, e, f);
}
net.minecraft.world.entity.Entity#newDoubleList(double[])
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1933 - Modifiers:
protected - Return:
ListTag
คืออะไร
ดำเนินการ newDoubleList ตาม implementation ของ Entity
ทำงานยังไง
มีการวนลูป. เรียกต่อ: add(), valueOf(). สร้างออบเจ็กต์: ListTag. คืนค่า: listTag.
Parameters
double[] ds
ตัวอย่างใช้งาน
double[] ds = ...;
@Override
protected ListTag newDoubleList(double[] ds) {
return super.newDoubleList(ds);
}
net.minecraft.world.entity.Entity#newFloatList(float[])
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1943 - Modifiers:
protected - Return:
ListTag
คืออะไร
ดำเนินการ newFloatList ตาม implementation ของ Entity
ทำงานยังไง
มีการวนลูป. เรียกต่อ: add(), valueOf(). สร้างออบเจ็กต์: ListTag. คืนค่า: listTag.
Parameters
float[] fs
ตัวอย่างใช้งาน
float[] fs = ...;
@Override
protected ListTag newFloatList(float[] fs) {
return super.newFloatList(fs);
}
net.minecraft.world.entity.Entity#nextStep()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1036 - Modifiers:
protected - Return:
float
คืออะไร
ดำเนินการ nextStep ตาม implementation ของ Entity
ทำงานยังไง
คืนค่า: (int)this.moveDist + 1.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#oldPosition()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1530 - Modifiers:
public final - Return:
Vec3
คืออะไร
ดำเนินการ oldPosition ตาม implementation ของ Entity
ทำงานยังไง
สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(this.xOld, this.yOld, this.zOld).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#onAboveBubbleCol(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2492 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Above Bubble Col
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getDeltaMovement(), max(), min(), setDeltaMovement().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#onBelowWorld()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:576 - Modifiers:
protected - Return:
void
คืออะไร
จัดการเหตุการณ์ Below World
ทำงานยังไง
เรียกต่อ: discard().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#onClientRemoval()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:367 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Client Removal
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#onExplosionHit(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3552 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Explosion Hit
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#onFlap()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1176 - Modifiers:
protected - Return:
void
คืออะไร
จัดการเหตุการณ์ Flap
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#onGround()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:629 - Modifiers:
public - Return:
boolean
คืออะไร
จัดการเหตุการณ์ Ground
ทำงานยังไง
คืนค่า: this.onGround.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#onInsideBlock(BlockState)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1104 - Modifiers:
protected - Return:
void
คืออะไร
จัดการเหตุการณ์ Inside Block
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockState blockState
ตัวอย่างใช้งาน
BlockState blockState = ...;
@Override
protected void onInsideBlock(BlockState blockState) {
super.onInsideBlock(blockState);
}
net.minecraft.world.entity.Entity#onInsideBubbleColumn(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2504 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Inside Bubble Column
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getDeltaMovement(), max(), min(), setDeltaMovement(), resetFallDistance().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#onPassengerTurned(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2062 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Passenger Turned
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#onRemoval(Entity.RemovalReason)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:370 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Removal
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Entity.RemovalReason removalReason
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#onSyncedDataUpdated(EntityDataAccessor<?>)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2946 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Synced Data Updated
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: equals(), refreshDimensions().
Parameters
EntityDataAccessor<?> entityDataAccessor
ตัวอย่างใช้งาน
Entity instance = ...;
EntityDataAccessor<?> entityDataAccessor = ...;
instance.onSyncedDataUpdated(entityDataAccessor);
net.minecraft.world.entity.Entity#onSyncedDataUpdated(List<SynchedEntityData.DataValue<?>>)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2942 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Synced Data Updated
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
List<SynchedEntityData.DataValue<?>> list
ตัวอย่างใช้งาน
Entity instance = ...;
List<SynchedEntityData.DataValue<?>> list = ...;
instance.onSyncedDataUpdated(list);
net.minecraft.world.entity.Entity#pick(double,float,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1688 - Modifiers:
public - Return:
HitResult
คืออะไร
ดำเนินการ pick ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: getEyePosition(), getViewVector(), add(), level(), clip(). สร้างออบเจ็กต์: ClipContext. คืนค่า: this.level().clip(new ClipContext(vec3, vec33, ClipContext.Block.OUTLINE, bl ? ClipContext.Fluid.ANY : ClipContext.Fluid.NONE, this)).
Parameters
double dfloat fboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#placePortalTicket(BlockPos)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2780 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ placePortalTicket ตาม implementation ของ Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), getChunkSource(), addRegionTicket(). สร้างออบเจ็กต์: ChunkPos.
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#playCombinationStepSounds(BlockState,BlockState)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1143 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ playCombinationStepSounds ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: getSoundType(), playSound(), getStepSound(), getVolume(), getPitch(), playMuffledStepSound().
Parameters
BlockState blockStateBlockState blockState2
ตัวอย่างใช้งาน
BlockState blockState = ...;
BlockState blockState2 = ...;
@Override
protected void playCombinationStepSounds(BlockState blockState, BlockState blockState2) {
super.playCombinationStepSounds(blockState, blockState2);
}
net.minecraft.world.entity.Entity#playEntityOnFireExtinguishedSound()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:820 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ playEntityOnFireExtinguishedSound ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: playSound(), nextFloat().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
@Override
protected void playEntityOnFireExtinguishedSound() {
super.playEntityOnFireExtinguishedSound();
}
net.minecraft.world.entity.Entity#playerTouch(Player)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1559 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ playerTouch ตาม implementation ของ Entity
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#playMuffledStepSound(BlockState)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1149 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ playMuffledStepSound ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: getSoundType(), playSound(), getStepSound(), getVolume(), getPitch().
Parameters
BlockState blockState
ตัวอย่างใช้งาน
BlockState blockState = ...;
@Override
protected void playMuffledStepSound(BlockState blockState) {
super.playMuffledStepSound(blockState);
}
net.minecraft.world.entity.Entity#playSound(SoundEvent)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1189 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ playSound ตาม implementation ของ Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isSilent().
Parameters
SoundEvent soundEvent
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#playSound(SoundEvent,float,float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1183 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ playSound ตาม implementation ของ Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isSilent(), level(), getX(), getY(), getZ(), getSoundSource().
Parameters
SoundEvent soundEventfloat ffloat g
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#playStepSound(BlockPos,BlockState)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1154 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ playStepSound ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: getSoundType(), playSound(), getStepSound(), getVolume(), getPitch().
Parameters
BlockPos blockPosBlockState blockState
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockState blockState = ...;
@Override
protected void playStepSound(BlockPos blockPos, BlockState blockState) {
super.playStepSound(blockPos, blockState);
}
net.minecraft.world.entity.Entity#playSwimSound(float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1172 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ playSwimSound ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: playSound(), getSwimSound(), nextFloat().
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#position()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3370 - Modifiers:
public - Return:
Vec3
คืออะไร
ดำเนินการ position ตาม implementation ของ Entity
ทำงานยังไง
คืนค่า: this.position.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#positionRider(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2050 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ positionRider ตาม implementation ของ Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: hasPassenger().
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#positionRider(Entity,Entity.MoveFunction)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2056 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ positionRider ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: getPassengerRidingPosition(), getVehicleAttachmentPoint(), accept().
Parameters
Entity entityEntity.MoveFunction moveFunction
ตัวอย่างใช้งาน
Entity entity = ...;
Entity.MoveFunction moveFunction = ...;
@Override
protected void positionRider(Entity entity, Entity.MoveFunction moveFunction) {
super.positionRider(entity, moveFunction);
}
net.minecraft.world.entity.Entity#processFlappingMovement()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:832 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ processFlappingMovement ตาม implementation ของ Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isFlapping(), onFlap(), getMovementEmission(), emitsEvents(), gameEvent().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#processPortalCooldown()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:530 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ processPortalCooldown ตาม implementation ของ Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: portalCooldown. เรียกต่อ: isOnPortalCooldown().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#push(double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1597 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ push ตาม implementation ของ Entity
ทำงานยังไง
แก้ state: hasImpulse. เรียกต่อ: setDeltaMovement(), getDeltaMovement(), add().
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#push(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1562 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ push ตาม implementation ของ Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isPassengerOfSameVehicle(), getX(), getZ(), absMax(), sqrt(), isVehicle(), isPushable().
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#push(Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1593 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ push ตาม implementation ของ Entity
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1929 - Modifiers:
protected abstract - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void readAdditionalSaveData(CompoundTag compoundTag) {
super.readAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.Entity#reapplyPosition()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:418 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ reapplyPosition ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: setPos().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#recordMovementThroughBlocks(Vec3,Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1052 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ recordMovementThroughBlocks ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: add(), Movement(). สร้างออบเจ็กต์: Entity.Movement.
Parameters
Vec3 vec3Vec3 vec32
ตัวอย่างใช้งาน
Entity instance = ...;
Vec3 vec3 = ...;
Vec3 vec32 = ...;
instance.recordMovementThroughBlocks(vec3, vec32);
net.minecraft.world.entity.Entity#recreateFromPacket(ClientboundAddEntityPacket)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3488 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ recreateFromPacket ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: getId(), getX(), getY(), getZ(), syncPacketPositionCodec(), moveTo(), getYRot(), getXRot().
Parameters
ClientboundAddEntityPacket clientboundAddEntityPacket
ตัวอย่างใช้งาน
Entity instance = ...;
ClientboundAddEntityPacket clientboundAddEntityPacket = ...;
instance.recreateFromPacket(clientboundAddEntityPacket);
net.minecraft.world.entity.Entity#refreshDimensions()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2961 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ refreshDimensions ตาม implementation ของ Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: dimensions, eyeHeight. เรียกต่อ: getPose(), getDimensions(), eyeHeight(), reapplyPosition(), width(), height(), fudgePositionAfterSizeChange().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#registryAccess()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3618 - Modifiers:
public - Return:
RegistryAccess
คืออะไร
ดำเนินการ registryAccess ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: level(). คืนค่า: this.level().registryAccess().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#remove(Entity.RemovalReason)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:363 - Modifiers:
public - Return:
void
คืออะไร
ลบ remove
ทำงานยังไง
เรียกต่อ: setRemoved().
Parameters
Entity.RemovalReason removalReason
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#removeAfterChangingDimensions()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2786 - Modifiers:
protected - Return:
void
คืออะไร
ลบ After Changing Dimensions
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: setRemoved(), removeLeash().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#removePassenger(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2169 - Modifiers:
protected - Return:
void
คืออะไร
ลบ Passenger
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: passengers. เรียกต่อ: getVehicle(), stopRiding(), size(), get(), of(), stream(), filter(), collect(). สร้างออบเจ็กต์: IllegalStateException.
Parameters
Entity entity
ตัวอย่างใช้งาน
Entity entity = ...;
@Override
protected void removePassenger(Entity entity) {
super.removePassenger(entity);
}
net.minecraft.world.entity.Entity#removeTag(String)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:334 - Modifiers:
public - Return:
boolean
คืออะไร
ลบ Tag
ทำงานยังไง
เรียกต่อ: remove(). คืนค่า: this.tags.remove(string).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#removeVehicle()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2136 - Modifiers:
public - Return:
void
คืออะไร
ลบ Vehicle
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: vehicle. เรียกต่อ: removePassenger().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#repositionEntityAfterLoad()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1918 - Modifiers:
protected - Return:
boolean
คืออะไร
ดำเนินการ repositionEntityAfterLoad ตาม implementation ของ Entity
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
@Override
protected boolean repositionEntityAfterLoad() {
return super.repositionEntityAfterLoad();
}
net.minecraft.world.entity.Entity#resetFallDistance()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2527 - Modifiers:
public - Return:
void
คืออะไร
รีเซ็ต Fall Distance
ทำงานยังไง
แก้ state: fallDistance.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#restoreFrom(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2657 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ restoreFrom ตาม implementation ของ Entity
ทำงานยังไง
แก้ state: portalCooldown, portalProcess. เรียกต่อ: saveWithoutId(), remove(), load(). สร้างออบเจ็กต์: CompoundTag.
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#rideTick()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2042 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ rideTick ตาม implementation ของ Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: setDeltaMovement(), tick(), isPassenger(), getVehicle(), positionRider().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#rotate(Rotation)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3073 - Modifiers:
public - Return:
float
คืออะไร
หมุน rotate
ทำงานยังไง
แยกกรณีด้วย switch. เรียกต่อ: wrapDegrees(), getYRot(). มีจุด return อย่างน้อย 4 จุด.
Parameters
Rotation rotation
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#save(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1746 - Modifiers:
public - Return:
boolean
คืออะไร
บันทึก save
ทำงานยังไง
เรียกต่อ: isPassenger(), saveAsPassenger(). คืนค่า: this.isPassenger() ? false : this.saveAsPassenger(compoundTag).
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#saveAsPassenger(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1731 - Modifiers:
public - Return:
boolean
คืออะไร
บันทึก As Passenger
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: shouldSave(), getEncodeId(), putString(), saveWithoutId(). มีจุด return อย่างน้อย 3 จุด.
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
Entity instance = ...;
CompoundTag compoundTag = ...;
boolean result = instance.saveAsPassenger(compoundTag);
net.minecraft.world.entity.Entity#saveWithoutId(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1750 - Modifiers:
public - Return:
CompoundTag
คืออะไร
บันทึก Without Id
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: put(), newDoubleList(), getX(), getY(), getZ(), getDeltaMovement(), newFloatList(), getYRot(). สร้างออบเจ็กต์: ListTag, CompoundTag, ReportedException. คืนค่า: compoundTag.
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
Entity instance = ...;
CompoundTag compoundTag = ...;
CompoundTag result = instance.saveWithoutId(compoundTag);
net.minecraft.world.entity.Entity#setAirSupply(int)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2458 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Air Supply
ทำงานยังไง
เรียกต่อ: set().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setAsInsidePortal(Portal,BlockPos)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2250 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า As Inside Portal
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: portalProcess. เรียกต่อ: isOnPortalCooldown(), setPortalCooldown(), isSamePortal(), immutable(), isInsidePortalThisTick(), updateEntryPosition(), setAsInsidePortalThisTick(). สร้างออบเจ็กต์: PortalProcessor.
Parameters
Portal portalBlockPos blockPos
ตัวอย่างใช้งาน
Entity instance = ...;
Portal portal = ...;
BlockPos blockPos = ...;
instance.setAsInsidePortal(portal, blockPos);
net.minecraft.world.entity.Entity#setBoundingBox(AABB)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3026 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Bounding Box
ทำงานยังไง
แก้ state: bb.
Parameters
AABB aABB
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setCustomName(Component)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2886 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Custom Name
ทำงานยังไง
เรียกต่อ: set(), ofNullable().
Parameters
Component component
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setCustomNameVisible(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2901 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Custom Name Visible
ทำงานยังไง
เรียกต่อ: set().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setDeltaMovement(double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3407 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Delta Movement
ทำงานยังไง
สร้างออบเจ็กต์: Vec3.
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setDeltaMovement(Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3399 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Delta Movement
ทำงานยังไง
แก้ state: deltaMovement.
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setGlowingTag(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2387 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Glowing Tag
ทำงานยังไง
แก้ state: hasGlowingTag. เรียกต่อ: setSharedFlag(), isCurrentlyGlowing().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setId(int)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:322 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Id
ทำงานยังไง
แก้ state: id.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setInvisible(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2433 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Invisible
ทำงานยังไง
เรียกต่อ: setSharedFlag().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setInvulnerable(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2649 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Invulnerable
ทำงานยังไง
แก้ state: invulnerable.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setIsInPowderSnow(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3504 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Is In Powder Snow
ทำงานยังไง
แก้ state: isInPowderSnow.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setLevel(Level)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3610 - Modifiers:
protected - Return:
void
คืออะไร
กำหนดค่า Level
ทำงานยังไง
แก้ state: level.
Parameters
Level level
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setLevelCallback(EntityInLevelCallback)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3583 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Level Callback
ทำงานยังไง
แก้ state: levelCallback.
Parameters
EntityInLevelCallback entityInLevelCallback
ตัวอย่างใช้งาน
Entity instance = ...;
EntityInLevelCallback entityInLevelCallback = ...;
instance.setLevelCallback(entityInLevelCallback);
net.minecraft.world.entity.Entity#setNoGravity(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1207 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า No Gravity
ทำงานยังไง
เรียกต่อ: set().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setOldPos()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1511 - Modifiers:
protected - Return:
void
คืออะไร
กำหนดค่า Old Pos
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setOldPosAndRot()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1501 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Old Pos And Rot
ทำงานยังไง
เรียกต่อ: setOldPos(), setOldRot().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setOldPosAndRot(Vec3,float,float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1506 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Old Pos And Rot
ทำงานยังไง
เรียกต่อ: setOldPos(), setOldRot().
Parameters
Vec3 vec3float ffloat g
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setOldRot()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1515 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Old Rot
ทำงานยังไง
เรียกต่อ: getYRot(), getXRot().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setOnGround(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:588 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า On Ground
ทำงานยังไง
แก้ state: onGround. เรียกต่อ: checkSupportingBlock().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setOnGroundWithMovement(boolean,boolean,Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:597 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า On Ground With Movement
ทำงานยังไง
แก้ state: onGround, horizontalCollision. เรียกต่อ: checkSupportingBlock().
Parameters
boolean blboolean bl2Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setOnGroundWithMovement(boolean,Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:593 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า On Ground With Movement
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
boolean blVec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setPortalCooldown()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:514 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Portal Cooldown
ทำงานยังไง
แก้ state: portalCooldown. เรียกต่อ: getDimensionChangingDelay().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setPortalCooldown(int)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:518 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Portal Cooldown
ทำงานยังไง
แก้ state: portalCooldown.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setPos(double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:405 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Pos
ทำงานยังไง
เรียกต่อ: setPosRaw(), setBoundingBox(), makeBoundingBox().
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setPos(Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:401 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Pos
ทำงานยังไง
เรียกต่อ: x(), y(), z().
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setPose(Pose)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:373 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Pose
ทำงานยังไง
เรียกต่อ: set().
Parameters
Pose pose
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setPosRaw(double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3463 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Pos Raw
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: position, blockPosition, inBlockState, chunkPosition. เรียกต่อ: floor(), getX(), getY(), getZ(), blockToSectionCoord(), onMove(). สร้างออบเจ็กต์: Vec3, BlockPos, ChunkPos.
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setRemainingFireTicks(int)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:564 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Remaining Fire Ticks
ทำงานยังไง
แก้ state: remainingFireTicks.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setRemoved(Entity.RemovalReason)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3564 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Removed
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: removalReason. เรียกต่อ: shouldDestroy(), stopRiding(), getPassengers(), forEach(), onRemove(), onRemoval().
Parameters
Entity.RemovalReason removalReason
ตัวอย่างใช้งาน
Entity instance = ...;
Entity.RemovalReason removalReason = ...;
instance.setRemoved(removalReason);
net.minecraft.world.entity.Entity#setRot(float,float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:396 - Modifiers:
protected - Return:
void
คืออะไร
กำหนดค่า Rot
ทำงานยังไง
เรียกต่อ: setYRot(), setXRot().
Parameters
float ffloat g
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setSharedFlag(int,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2441 - Modifiers:
protected - Return:
void
คืออะไร
กำหนดค่า Shared Flag
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), set().
Parameters
int iboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setSharedFlagOnFire(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:504 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Shared Flag On Fire
ทำงานยังไง
เรียกต่อ: setSharedFlag().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setShiftKeyDown(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2331 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Shift Key Down
ทำงานยังไง
เรียกต่อ: setSharedFlag().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setSilent(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1199 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Silent
ทำงานยังไง
เรียกต่อ: set().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setSprinting(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2363 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Sprinting
ทำงานยังไง
เรียกต่อ: setSharedFlag().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setSwimming(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2379 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Swimming
ทำงานยังไง
เรียกต่อ: setSharedFlag().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setTicksFrozen(int)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2466 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Ticks Frozen
ทำงานยังไง
เรียกต่อ: set().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setUUID(UUID)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2849 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า UUID
ทำงานยังไง
แก้ state: uuid, stringUUID. เรียกต่อ: toString().
Parameters
UUID uUID
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setViewScale(double)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2876 - Modifiers:
public static - Return:
void
คืออะไร
กำหนดค่า View Scale
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setXRot(float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3536 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า XRot
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: xRot. เรียกต่อ: isFinite(), logAndPauseIfInIde(), clamp().
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setYBodyRot(float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2598 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า YBody Rot
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setYHeadRot(float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2595 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า YHead Rot
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#setYRot(float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3524 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า YRot
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: yRot. เรียกต่อ: isFinite(), logAndPauseIfInIde().
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#shouldBeSaved()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3588 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Be Saved
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: shouldSave(), isPassenger(), isVehicle(), hasExactlyOnePlayerPassenger(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#shouldBlockExplode(Explosion,BlockGetter,BlockPos,BlockState,float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2819 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Block Explode
ทำงานยังไง
คืนค่า: true.
Parameters
Explosion explosionBlockGetter blockGetterBlockPos blockPosBlockState blockStatefloat f
ตัวอย่างใช้งาน
Entity instance = ...;
Explosion explosion = ...;
BlockGetter blockGetter = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
boolean result = instance.shouldBlockExplode(explosion, blockGetter, blockPos, blockState, 0.0F);
net.minecraft.world.entity.Entity#shouldPlayLavaHurtSound()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:550 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Play Lava Hurt Sound
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#shouldRender(double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1713 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Render
ทำงานยังไง
เรียกต่อ: getX(), getY(), getZ(), shouldRenderAtSqrDistance(). คืนค่า: this.shouldRenderAtSqrDistance(j).
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#shouldRenderAtSqrDistance(double)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1721 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Render At Sqr Distance
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getBoundingBox(), getSize(), isNaN(). คืนค่า: d < e * e.
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#shouldShowName()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2938 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Show Name
ทำงานยังไง
เรียกต่อ: isCustomNameVisible(). คืนค่า: this.isCustomNameVisible().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#showVehicleHealth()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2086 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ showVehicleHealth ตาม implementation ของ Entity
ทำงานยังไง
คืนค่า: this instanceof LivingEntity.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#skipAttackInteraction(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2605 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ skipAttackInteraction ตาม implementation ของ Entity
ทำงานยังไง
คืนค่า: false.
Parameters
Entity entity
ตัวอย่างใช้งาน
Entity instance = ...;
Entity entity = ...;
boolean result = instance.skipAttackInteraction(entity);
net.minecraft.world.entity.Entity#spawnAtLocation(ServerLevel,ItemLike)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1953 - Modifiers:
public - Return:
ItemEntity
คืออะไร
สร้าง entity ในโลก At Location
ทำงานยังไง
คืนค่า: this.spawnAtLocation(serverLevel, itemLike, 0).
Parameters
ServerLevel serverLevelItemLike itemLike
ตัวอย่างใช้งาน
Entity instance = ...;
ServerLevel serverLevel = ...;
ItemLike itemLike = ...;
ItemEntity result = instance.spawnAtLocation(serverLevel, itemLike);
net.minecraft.world.entity.Entity#spawnAtLocation(ServerLevel,ItemLike,int)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1958 - Modifiers:
public - Return:
ItemEntity
คืออะไร
สร้าง entity ในโลก At Location
ทำงานยังไง
สร้างออบเจ็กต์: ItemStack. คืนค่า: this.spawnAtLocation(serverLevel, new ItemStack(itemLike), i).
Parameters
ServerLevel serverLevelItemLike itemLikeint i
ตัวอย่างใช้งาน
Entity instance = ...;
ServerLevel serverLevel = ...;
ItemLike itemLike = ...;
ItemEntity result = instance.spawnAtLocation(serverLevel, itemLike, 0);
net.minecraft.world.entity.Entity#spawnAtLocation(ServerLevel,ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1963 - Modifiers:
public - Return:
ItemEntity
คืออะไร
สร้าง entity ในโลก At Location
ทำงานยังไง
คืนค่า: this.spawnAtLocation(serverLevel, itemStack, 0.0F).
Parameters
ServerLevel serverLevelItemStack itemStack
ตัวอย่างใช้งาน
Entity instance = ...;
ServerLevel serverLevel = ...;
ItemStack itemStack = ...;
ItemEntity result = instance.spawnAtLocation(serverLevel, itemStack);
net.minecraft.world.entity.Entity#spawnAtLocation(ServerLevel,ItemStack,float)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1968 - Modifiers:
public - Return:
ItemEntity
คืออะไร
สร้าง entity ในโลก At Location
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isEmpty(), getX(), getY(), getZ(), setDefaultPickUpDelay(), addFreshEntity(). สร้างออบเจ็กต์: ItemEntity. มีจุด return อย่างน้อย 2 จุด.
Parameters
ServerLevel serverLevelItemStack itemStackfloat f
ตัวอย่างใช้งาน
Entity instance = ...;
ServerLevel serverLevel = ...;
ItemStack itemStack = ...;
ItemEntity result = instance.spawnAtLocation(serverLevel, itemStack, 0.0F);
net.minecraft.world.entity.Entity#spawnSprintParticle()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1404 - Modifiers:
protected - Return:
void
คืออะไร
สร้าง entity ในโลก Sprint Particle
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getOnPosLegacy(), level(), getBlockState(), getRenderShape(), getDeltaMovement(), blockPosition(), getX(), nextDouble(). สร้างออบเจ็กต์: BlockParticleOption.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#startRiding(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2082 - Modifiers:
public - Return:
boolean
คืออะไร
เริ่ม Riding
ทำงานยังไง
คืนค่า: this.startRiding(entity, false).
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#startRiding(Entity,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2090 - Modifiers:
public - Return:
boolean
คืออะไร
เริ่ม Riding
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: vehicle. เรียกต่อ: couldAcceptPassenger(), level(), isClientSide(), canSerialize(), canRide(), canAddPassenger(), isPassenger(), stopRiding(). มีจุด return อย่างน้อย 6 จุด.
Parameters
Entity entityboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#startSeenByPlayer(ServerPlayer)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3067 - Modifiers:
public - Return:
void
คืออะไร
เริ่ม Seen By Player
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
ServerPlayer serverPlayer
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#stopRiding()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2144 - Modifiers:
public - Return:
void
คืออะไร
หยุด Riding
ทำงานยังไง
เรียกต่อ: removeVehicle().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#stopSeenByPlayer(ServerPlayer)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3070 - Modifiers:
public - Return:
void
คืออะไร
หยุด Seen By Player
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
ServerPlayer serverPlayer
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#syncPacketPositionCodec(double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:305 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ syncPacketPositionCodec ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: setBase(). สร้างออบเจ็กต์: Vec3.
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#teleport(TeleportTransition)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2665 - Modifiers:
public - Return:
Entity
คืออะไร
ดำเนินการ teleport ตาม implementation ของ Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), isRemoved(), newLevel(), dimension(), asPassenger(), stopRiding(), teleportCrossDimension(), teleportSameDimension(). มีจุด return อย่างน้อย 2 จุด.
Parameters
TeleportTransition teleportTransition
ตัวอย่างใช้งาน
Entity instance = ...;
TeleportTransition teleportTransition = ...;
Entity result = instance.teleport(teleportTransition);
net.minecraft.world.entity.Entity#teleportRelative(double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2934 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ teleportRelative ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: teleportTo(), getX(), getY(), getZ().
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#teleportSetPosition(PositionMoveRotation,Set<Relative>)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2760 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ teleportSetPosition ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: of(), calculateAbsolute(), setPosRaw(), position(), setYRot(), yRot(), setYHeadRot(), setXRot().
Parameters
PositionMoveRotation positionMoveRotationSet<Relative> set
ตัวอย่างใช้งาน
Entity instance = ...;
PositionMoveRotation positionMoveRotation = ...;
Set<Relative> set = ...;
instance.teleportSetPosition(positionMoveRotation, set);
net.minecraft.world.entity.Entity#teleportTo(double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2919 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ teleportTo ตาม implementation ของ Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), moveTo(), getYRot(), getXRot(), teleportPassengers().
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#teleportTo(ServerLevel,double,double,double,Set<Relative>,float,float,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2909 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ teleportTo ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: clamp(), teleport(). สร้างออบเจ็กต์: TeleportTransition, Vec3. คืนค่า: entity != null.
Parameters
ServerLevel serverLeveldouble ddouble edouble fSet<Relative> setfloat gfloat hboolean bl
ตัวอย่างใช้งาน
Entity instance = ...;
ServerLevel serverLevel = ...;
Set<Relative> set = ...;
boolean result = instance.teleportTo(serverLevel, 0.0D, 0.0D, 0.0D, set, 0.0F, 0.0F, true);
net.minecraft.world.entity.Entity#thunderHit(ServerLevel,LightningBolt)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2483 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ thunderHit ตาม implementation ของ Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: remainingFireTicks. เรียกต่อ: setRemainingFireTicks(), igniteForSeconds(), hurtServer(), damageSources(), lightningBolt().
Parameters
ServerLevel serverLevelLightningBolt lightningBolt
ตัวอย่างใช้งาน
Entity instance = ...;
ServerLevel serverLevel = ...;
LightningBolt lightningBolt = ...;
instance.thunderHit(serverLevel, lightningBolt);
net.minecraft.world.entity.Entity#tick()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:436 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
เรียกต่อ: baseTick().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#toString()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2609 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: level(), format(), getClass(), getSimpleName(), getName(), getString(), getX(), getY().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#touchingUnloadedChunk()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3333 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ touchingUnloadedChunk ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: getBoundingBox(), inflate(), floor(), ceil(), level(), hasChunksAt(). คืนค่า: !this.level().hasChunksAt(i, k, j, l).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#trackingPosition()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3374 - Modifiers:
public - Return:
Vec3
คืออะไร
ดำเนินการ trackingPosition ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: position(). คืนค่า: this.position().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#turn(double,double)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:422 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ turn ตาม implementation ของ Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: xRotO, yRotO. เรียกต่อ: setXRot(), getXRot(), setYRot(), getYRot(), clamp(), onPassengerTurned().
Parameters
double ddouble e
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#unRide()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:295 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ unRide ตาม implementation ของ Entity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isVehicle(), ejectPassengers(), isPassenger(), stopRiding().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#unsetRemoved()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3579 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ unsetRemoved ตาม implementation ของ Entity
ทำงานยังไง
แก้ state: removalReason.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#updateDynamicGameEventListener(BiConsumer<DynamicGameEventListener<?>, ServerLevel>)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:2413 - Modifiers:
public - Return:
void
คืออะไร
อัปเดต Dynamic Game Event Listener
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BiConsumer<DynamicGameEventListener<?>, ServerLevel> biConsumer
ตัวอย่างใช้งาน
Entity instance = ...;
BiConsumer<DynamicGameEventListener<?>, ServerLevel> biConsumer = ...;
instance.updateDynamicGameEventListener(biConsumer);
net.minecraft.world.entity.Entity#updateFluidHeightAndDoFluidPushing(TagKey<Fluid>,double)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3266 - Modifiers:
public - Return:
boolean
คืออะไร
อัปเดต Fluid Height And Do Fluid Pushing
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: touchingUnloadedChunk(), getBoundingBox(), deflate(), floor(), ceil(), isPushedByFluid(), MutableBlockPos(), set(). สร้างออบเจ็กต์: BlockPos.MutableBlockPos. มีจุด return อย่างน้อย 2 จุด.
Parameters
TagKey<Fluid> tagKeydouble d
ตัวอย่างใช้งาน
Entity instance = ...;
TagKey<Fluid> tagKey = ...;
boolean result = instance.updateFluidHeightAndDoFluidPushing(tagKey, 0.0D);
net.minecraft.world.entity.Entity#updateInWaterStateAndDoFluidPushing()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1320 - Modifiers:
protected - Return:
boolean
คืออะไร
อัปเดต In Water State And Do Fluid Pushing
ทำงานยังไง
เรียกต่อ: clear(), updateInWaterStateAndDoWaterCurrentPushing(), level(), dimensionType(), ultraWarm(), updateFluidHeightAndDoFluidPushing(), isInWater(). คืนค่า: this.isInWater() || bl.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
@Override
protected boolean updateInWaterStateAndDoFluidPushing() {
return super.updateInWaterStateAndDoFluidPushing();
}
net.minecraft.world.entity.Entity#updateSwimming()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1312 - Modifiers:
public - Return:
void
คืออะไร
อัปเดต Swimming
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isSwimming(), setSwimming(), isSprinting(), isInWater(), isPassenger(), isUnderWater(), level(), getFluidState().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity#waterSwimSound()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:1129 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ waterSwimSound ตาม implementation ของ Entity
ทำงานยังไง
เรียกต่อ: requireNonNullElse(), getControllingPassenger(), getDeltaMovement(), min(), sqrt(), playSwimSound().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Entity$MoveFunction
- Full name:
net.minecraft.world.entity.Entity$MoveFunction - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/Entity.java - Type:
interface - Modifiers:
public
net.minecraft.world.entity.Entity$MoveFunction#accept(Entity,double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3652 - Modifiers: ``
- Return:
void
คืออะไร
รับค่า accept
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Entity entitydouble ddouble edouble f
ตัวอย่างใช้งาน
Entity$MovementEmission
- Full name:
net.minecraft.world.entity.Entity$MovementEmission - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/Entity.java - Type:
enum - Modifiers:
public
net.minecraft.world.entity.Entity$MovementEmission#emitsAnything()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3672 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ emitsAnything ตาม implementation ของ Entity$MovementEmission
ทำงานยังไง
คืนค่า: this.events || this.sounds.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity$MovementEmission#emitsEvents()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3676 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ emitsEvents ตาม implementation ของ Entity$MovementEmission
ทำงานยังไง
คืนค่า: this.events.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity$MovementEmission#emitsSounds()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3680 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ emitsSounds ตาม implementation ของ Entity$MovementEmission
ทำงานยังไง
คืนค่า: this.sounds.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Entity$RemovalReason
- Full name:
net.minecraft.world.entity.Entity$RemovalReason - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/Entity.java - Type:
enum - Modifiers:
public
net.minecraft.world.entity.Entity$RemovalReason#shouldDestroy()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3700 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Destroy
ทำงานยังไง
คืนค่า: this.destroy.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Entity$RemovalReason#shouldSave()
- Origin:
common - Source:
net/minecraft/world/entity/Entity.java:3704 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Save
ทำงานยังไง
คืนค่า: this.save.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EntityAttachment
- Full name:
net.minecraft.world.entity.EntityAttachment - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/EntityAttachment.java - Type:
enum - Modifiers:
public
net.minecraft.world.entity.EntityAttachment#createFallbackPoints(float,float)
- Origin:
common - Source:
net/minecraft/world/entity/EntityAttachment.java:18 - Modifiers:
public - Return:
List<Vec3>
คืออะไร
สร้าง Fallback Points
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: this.fallback.create(f, g).
Parameters
float ffloat g
ตัวอย่างใช้งาน
EntityAttachment$Fallback
- Full name:
net.minecraft.world.entity.EntityAttachment$Fallback - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/EntityAttachment.java - Type:
interface - Modifiers:
public
net.minecraft.world.entity.EntityAttachment$Fallback#create(float,float)
- Origin:
common - Source:
net/minecraft/world/entity/EntityAttachment.java:28 - Modifiers: ``
- Return:
List<Vec3>
คืออะไร
สร้าง create
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
float ffloat g
ตัวอย่างใช้งาน
EntityAttachments
- Full name:
net.minecraft.world.entity.EntityAttachments - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/EntityAttachments.java - Type:
class - Modifiers:
public
net.minecraft.world.entity.EntityAttachments#builder()
- Origin:
common - Source:
net/minecraft/world/entity/EntityAttachments.java:23 - Modifiers:
public static - Return:
EntityAttachments.Builder
คืออะไร
ดำเนินการ builder ตาม implementation ของ EntityAttachments
ทำงานยังไง
เรียกต่อ: Builder(). สร้างออบเจ็กต์: EntityAttachments.Builder. คืนค่า: new EntityAttachments.Builder().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityAttachments#createDefault(float,float)
- Origin:
common - Source:
net/minecraft/world/entity/EntityAttachments.java:19 - Modifiers:
public static - Return:
EntityAttachments
คืออะไร
สร้าง Default
ทำงานยังไง
เรียกต่อ: builder(), build(). คืนค่า: builder().build(f, g).
Parameters
float ffloat g
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityAttachments#get(EntityAttachment,int,float)
- Origin:
common - Source:
net/minecraft/world/entity/EntityAttachments.java:53 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า get
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getNullable(). สร้างออบเจ็กต์: IllegalStateException. คืนค่า: vec3.
Parameters
EntityAttachment entityAttachmentint ifloat f
ตัวอย่างใช้งาน
EntityAttachments instance = ...;
EntityAttachment entityAttachment = ...;
Vec3 result = instance.get(entityAttachment, 0, 0.0F);
net.minecraft.world.entity.EntityAttachments#getClamped(EntityAttachment,int,float)
- Origin:
common - Source:
net/minecraft/world/entity/EntityAttachments.java:62 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Clamped
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), isEmpty(), clamp(), size(), transformPoint(). สร้างออบเจ็กต์: IllegalStateException. คืนค่า: transformPoint(vec3, f).
Parameters
EntityAttachment entityAttachmentint ifloat f
ตัวอย่างใช้งาน
EntityAttachments instance = ...;
EntityAttachment entityAttachment = ...;
Vec3 result = instance.getClamped(entityAttachment, 0, 0.0F);
net.minecraft.world.entity.EntityAttachments#getNullable(EntityAttachment,int,float)
- Origin:
common - Source:
net/minecraft/world/entity/EntityAttachments.java:47 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Nullable
ทำงานยังไง
เรียกต่อ: get(), size(), transformPoint(). คืนค่า: i >= 0 && i < list.size() ? transformPoint(list.get(i), f) : null.
Parameters
EntityAttachment entityAttachmentint ifloat f
ตัวอย่างใช้งาน
EntityAttachments instance = ...;
EntityAttachment entityAttachment = ...;
Vec3 result = instance.getNullable(entityAttachment, 0, 0.0F);
net.minecraft.world.entity.EntityAttachments#scale(float,float,float)
- Origin:
common - Source:
net/minecraft/world/entity/EntityAttachments.java:27 - Modifiers:
public - Return:
EntityAttachments
คืออะไร
ดำเนินการ scale ตาม implementation ของ EntityAttachments
ทำงานยังไง
มีการวนลูป. เรียกต่อ: entrySet(), put(), getKey(), scalePoints(), getValue(). สร้างออบเจ็กต์: EnumMap<>, EntityAttachments. คืนค่า: new EntityAttachments(map).
Parameters
float ffloat gfloat h
ตัวอย่างใช้งาน
EntityAttachments$Builder
- Full name:
net.minecraft.world.entity.EntityAttachments$Builder - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/EntityAttachments.java - Type:
class - Modifiers:
public static
net.minecraft.world.entity.EntityAttachments$Builder#attach(EntityAttachment,float,float,float)
- Origin:
common - Source:
net/minecraft/world/entity/EntityAttachments.java:82 - Modifiers:
public - Return:
EntityAttachments.Builder
คืออะไร
ดำเนินการ attach ตาม implementation ของ EntityAttachments$Builder
ทำงานยังไง
สร้างออบเจ็กต์: Vec3. คืนค่า: this.attach(entityAttachment, new Vec3(f, g, h)).
Parameters
EntityAttachment entityAttachmentfloat ffloat gfloat h
ตัวอย่างใช้งาน
EntityAttachments.Builder instance = ...;
EntityAttachment entityAttachment = ...;
EntityAttachments.Builder result = instance.attach(entityAttachment, 0.0F, 0.0F, 0.0F);
net.minecraft.world.entity.EntityAttachments$Builder#attach(EntityAttachment,Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/EntityAttachments.java:86 - Modifiers:
public - Return:
EntityAttachments.Builder
คืออะไร
ดำเนินการ attach ตาม implementation ของ EntityAttachments$Builder
ทำงานยังไง
เรียกต่อ: computeIfAbsent(), add(). สร้างออบเจ็กต์: ArrayList<>. คืนค่า: this.
Parameters
EntityAttachment entityAttachmentVec3 vec3
ตัวอย่างใช้งาน
EntityAttachments.Builder instance = ...;
EntityAttachment entityAttachment = ...;
Vec3 vec3 = ...;
EntityAttachments.Builder result = instance.attach(entityAttachment, vec3);
net.minecraft.world.entity.EntityAttachments$Builder#build(float,float)
- Origin:
common - Source:
net/minecraft/world/entity/EntityAttachments.java:91 - Modifiers:
public - Return:
EntityAttachments
คืออะไร
สร้าง build
ทำงานยังไง
มีการวนลูป. เรียกต่อ: values(), get(), put(), copyOf(), createFallbackPoints(). สร้างออบเจ็กต์: EnumMap<>, EntityAttachments. คืนค่า: new EntityAttachments(map).
Parameters
float ffloat g
ตัวอย่างใช้งาน
EntityDimensions
- Full name:
net.minecraft.world.entity.EntityDimensions - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/EntityDimensions.java - Type:
record - Modifiers:
public
net.minecraft.world.entity.EntityDimensions#fixed(float,float)
- Origin:
common - Source:
net/minecraft/world/entity/EntityDimensions.java:39 - Modifiers:
public static - Return:
EntityDimensions
คืออะไร
ดำเนินการ fixed ตาม implementation ของ EntityDimensions
ทำงานยังไง
สร้างออบเจ็กต์: EntityDimensions. คืนค่า: new EntityDimensions(f, g, true).
Parameters
float ffloat g
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityDimensions#makeBoundingBox(double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/EntityDimensions.java:19 - Modifiers:
public - Return:
AABB
คืออะไร
สร้าง Bounding Box
ทำงานยังไง
สร้างออบเจ็กต์: AABB. คืนค่า: new AABB(d - g, e, f - g, d + g, e + h, f + g).
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityDimensions#makeBoundingBox(Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/EntityDimensions.java:15 - Modifiers:
public - Return:
AABB
คืออะไร
สร้าง Bounding Box
ทำงานยังไง
คืนค่า: this.makeBoundingBox(vec3.x, vec3.y, vec3.z).
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityDimensions#scalable(float,float)
- Origin:
common - Source:
net/minecraft/world/entity/EntityDimensions.java:35 - Modifiers:
public static - Return:
EntityDimensions
คืออะไร
ดำเนินการ scalable ตาม implementation ของ EntityDimensions
ทำงานยังไง
สร้างออบเจ็กต์: EntityDimensions. คืนค่า: new EntityDimensions(f, g, false).
Parameters
float ffloat g
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityDimensions#scale(float)
- Origin:
common - Source:
net/minecraft/world/entity/EntityDimensions.java:25 - Modifiers:
public - Return:
EntityDimensions
คืออะไร
ดำเนินการ scale ตาม implementation ของ EntityDimensions
ทำงานยังไง
คืนค่า: this.scale(f, f).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityDimensions#scale(float,float)
- Origin:
common - Source:
net/minecraft/world/entity/EntityDimensions.java:29 - Modifiers:
public - Return:
EntityDimensions
คืออะไร
ดำเนินการ scale ตาม implementation ของ EntityDimensions
ทำงานยังไง
สร้างออบเจ็กต์: EntityDimensions.
Parameters
float ffloat g
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityDimensions#withAttachments(EntityAttachments.Builder)
- Origin:
common - Source:
net/minecraft/world/entity/EntityDimensions.java:47 - Modifiers:
public - Return:
EntityDimensions
คืออะไร
ดำเนินการ withAttachments ตาม implementation ของ EntityDimensions
ทำงานยังไง
เรียกต่อ: build(). สร้างออบเจ็กต์: EntityDimensions. คืนค่า: new EntityDimensions(this.width, this.height, this.eyeHeight, builder.build(this.width, this.height), this.fixed).
Parameters
EntityAttachments.Builder builder
ตัวอย่างใช้งาน
EntityDimensions instance = ...;
EntityAttachments.Builder builder = ...;
EntityDimensions result = instance.withAttachments(builder);
net.minecraft.world.entity.EntityDimensions#withEyeHeight(float)
- Origin:
common - Source:
net/minecraft/world/entity/EntityDimensions.java:43 - Modifiers:
public - Return:
EntityDimensions
คืออะไร
ดำเนินการ withEyeHeight ตาม implementation ของ EntityDimensions
ทำงานยังไง
สร้างออบเจ็กต์: EntityDimensions. คืนค่า: new EntityDimensions(this.width, this.height, f, this.attachments, this.fixed).
Parameters
float f
ตัวอย่างใช้งาน
EntitySelector
- Full name:
net.minecraft.world.entity.EntitySelector - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/EntitySelector.java - Type:
class - Modifiers:
public final
net.minecraft.world.entity.EntitySelector#notRiding(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/EntitySelector.java:57 - Modifiers:
public static - Return:
Predicate<Entity>
คืออะไร
ดำเนินการ notRiding ตาม implementation ของ EntitySelector
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: isPassenger(), getVehicle(). มีจุด return อย่างน้อย 3 จุด.
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntitySelector#pushableBy(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/EntitySelector.java:28 - Modifiers:
public static - Return:
Predicate<Entity>
คืออะไร
ดำเนินการ pushableBy ตาม implementation ของ EntitySelector
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getTeam(), getCollisionRule(), alwaysFalse(), and(), isPushable(), level(), isLocalPlayer(), isAlliedTo(). มีจุด return อย่างน้อย 3 จุด.
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntitySelector#withinDistance(double,double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/EntitySelector.java:23 - Modifiers:
public static - Return:
Predicate<Entity>
คืออะไร
ดำเนินการ withinDistance ตาม implementation ของ EntitySelector
ทำงานยังไง
เรียกต่อ: distanceToSqr(). คืนค่า: entity -> entity != null && entity.distanceToSqr(d, e, f) <= h.
Parameters
double ddouble edouble fdouble g
ตัวอย่างใช้งาน
EntitySpawnReason
- Full name:
net.minecraft.world.entity.EntitySpawnReason - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/EntitySpawnReason.java - Type:
enum - Modifiers:
public
net.minecraft.world.entity.EntitySpawnReason#ignoresLightRequirements(EntitySpawnReason)
- Origin:
common - Source:
net/minecraft/world/entity/EntitySpawnReason.java:28 - Modifiers:
public static - Return:
boolean
คืออะไร
ดำเนินการ ignoresLightRequirements ตาม implementation ของ EntitySpawnReason
ทำงานยังไง
คืนค่า: entitySpawnReason == TRIAL_SPAWNER.
Parameters
EntitySpawnReason entitySpawnReason
ตัวอย่างใช้งาน
EntitySpawnReason entitySpawnReason = ...;
boolean result = EntitySpawnReason.ignoresLightRequirements(entitySpawnReason);
net.minecraft.world.entity.EntitySpawnReason#isSpawner(EntitySpawnReason)
- Origin:
common - Source:
net/minecraft/world/entity/EntitySpawnReason.java:24 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Spawner
ทำงานยังไง
คืนค่า: entitySpawnReason == SPAWNER || entitySpawnReason == TRIAL_SPAWNER.
Parameters
EntitySpawnReason entitySpawnReason
ตัวอย่างใช้งาน
EntitySpawnReason entitySpawnReason = ...;
boolean result = EntitySpawnReason.isSpawner(entitySpawnReason);
EntityType
- Full name:
net.minecraft.world.entity.EntityType - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/EntityType.java - Type:
class - Modifiers:
public - Implements:
FeatureElement,EntityTypeTest<Entity, T>
net.minecraft.world.entity.EntityType#appendCustomEntityStackConfig(Consumer<T>,Level,ItemStack,Player)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1080 - Modifiers:
public static - Return:
Consumer<T>
คืออะไร
ดำเนินการ appendCustomEntityStackConfig ตาม implementation ของ EntityType
ทำงานยังไง
เรียกต่อ: getOrDefault(), isEmpty(), andThen(), updateCustomEntityTag(). คืนค่า: !customData.isEmpty() ? consumer.andThen(entity -> updateCustomEntityTag(level, player, entity, customData)) : consumer.
Parameters
Consumer<T> consumerLevel levelItemStack itemStackPlayer player
ตัวอย่างใช้งาน
Consumer<T> consumer = ...;
Level level = ...;
ItemStack itemStack = ...;
Player player = ...;
Consumer<T> result = EntityType.appendCustomEntityStackConfig(consumer, level, itemStack, player);
net.minecraft.world.entity.EntityType#appendCustomNameConfig(Consumer<T>,ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1075 - Modifiers:
public static - Return:
Consumer<T>
คืออะไร
ดำเนินการ appendCustomNameConfig ตาม implementation ของ EntityType
ทำงานยังไง
เรียกต่อ: get(), andThen(), setCustomName(). คืนค่า: component != null ? consumer.andThen(entity -> entity.setCustomName(component)) : consumer.
Parameters
Consumer<T> consumerItemStack itemStack
ตัวอย่างใช้งาน
Consumer<T> consumer = ...;
ItemStack itemStack = ...;
Consumer<T> result = EntityType.appendCustomNameConfig(consumer, itemStack);
net.minecraft.world.entity.EntityType#appendDefaultStackConfig(Consumer<T>,Level,ItemStack,Player)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1071 - Modifiers:
public static - Return:
Consumer<T>
คืออะไร
ดำเนินการ appendDefaultStackConfig ตาม implementation ของ EntityType
ทำงานยังไง
เรียกต่อ: appendCustomEntityStackConfig(), appendCustomNameConfig(). คืนค่า: appendCustomEntityStackConfig(appendCustomNameConfig(consumer, itemStack), level, itemStack, player).
Parameters
Consumer<T> consumerLevel levelItemStack itemStackPlayer player
ตัวอย่างใช้งาน
Consumer<T> consumer = ...;
Level level = ...;
ItemStack itemStack = ...;
Player player = ...;
Consumer<T> result = EntityType.appendDefaultStackConfig(consumer, level, itemStack, player);
net.minecraft.world.entity.EntityType#builtInRegistryHolder()
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1344 - Modifiers:
public - Return:
Holder.Reference<EntityType<?>>
คืออะไร
ดำเนินการ builtInRegistryHolder ตาม implementation ของ EntityType
ทำงานยังไง
คืนค่า: this.builtInRegistryHolder.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EntityType instance = ...;
Holder.Reference<EntityType<?>> result = instance.builtInRegistryHolder();
net.minecraft.world.entity.EntityType#by(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1246 - Modifiers:
public static - Return:
Optional<EntityType<?>>
คืออะไร
ดำเนินการ by ตาม implementation ของ EntityType
ทำงานยังไง
เรียกต่อ: getOptional(), parse(), getString(). คืนค่า: BuiltInRegistries.ENTITY_TYPE.getOptional(ResourceLocation.parse(compoundTag.getString("id"))).
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType#byString(String)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1011 - Modifiers:
public static - Return:
Optional<EntityType<?>>
คืออะไร
ดำเนินการ byString ตาม implementation ของ EntityType
ทำงานยังไง
เรียกต่อ: getOptional(), tryParse(). คืนค่า: BuiltInRegistries.ENTITY_TYPE.getOptional(ResourceLocation.tryParse(string)).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType#canSerialize()
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1154 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Serialize
ทำงานยังไง
คืนค่า: this.serialize.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType#canSpawnFarFromPlayer()
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1166 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Spawn Far From Player
ทำงานยังไง
คืนค่า: this.canSpawnFarFromPlayer.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType#canSummon()
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1158 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Summon
ทำงานยังไง
คืนค่า: this.summon.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType#clientTrackingRange()
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1305 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ clientTrackingRange ตาม implementation ของ EntityType
ทำงานยังไง
คืนค่า: this.clientTrackingRange.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType#create(CompoundTag,Level,EntitySpawnReason)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1218 - Modifiers:
public static - Return:
Optional<Entity>
คืออะไร
สร้าง create
ทำงานยังไง
เรียกต่อ: ifElse(), by(), map(), load(), warn(), getString().
Parameters
CompoundTag compoundTagLevel levelEntitySpawnReason entitySpawnReason
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
Level level = ...;
EntitySpawnReason entitySpawnReason = ...;
Optional<Entity> result = EntityType.create(compoundTag, level, entitySpawnReason);
net.minecraft.world.entity.EntityType#create(Level,EntitySpawnReason)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1213 - Modifiers:
public - Return:
T
คืออะไร
สร้าง create
ทำงานยังไง
เรียกต่อ: isEnabled(), enabledFeatures(). คืนค่า: !this.isEnabled(level.enabledFeatures()) ? null : this.factory.create(this, level).
Parameters
Level levelEntitySpawnReason entitySpawnReason
ตัวอย่างใช้งาน
EntityType instance = ...;
Level level = ...;
EntitySpawnReason entitySpawnReason = ...;
T result = instance.create(level, entitySpawnReason);
net.minecraft.world.entity.EntityType#create(ServerLevel,Consumer<T>,BlockPos,EntitySpawnReason,boolean,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1103 - Modifiers:
public - Return:
T
คืออะไร
สร้าง create
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: setPos(), getX(), getY(), getZ(), getYOffset(), getBoundingBox(), moveTo(), wrapDegrees(). มีจุด return อย่างน้อย 2 จุด.
Parameters
ServerLevel serverLevelConsumer<T> consumerBlockPos blockPosEntitySpawnReason entitySpawnReasonboolean blboolean bl2
ตัวอย่างใช้งาน
EntityType instance = ...;
ServerLevel serverLevel = ...;
Consumer<T> consumer = ...;
BlockPos blockPos = ...;
EntitySpawnReason entitySpawnReason = ...;
T result = instance.create(serverLevel, consumer, blockPos, entitySpawnReason, true, true);
net.minecraft.world.entity.EntityType#createDefaultStackConfig(Level,ItemStack,Player)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1067 - Modifiers:
public static - Return:
Consumer<T>
คืออะไร
สร้าง Default Stack Config
ทำงานยังไง
เรียกต่อ: appendDefaultStackConfig(). คืนค่า: appendDefaultStackConfig(entity -> {}, level, itemStack, player).
Parameters
Level levelItemStack itemStackPlayer player
ตัวอย่างใช้งาน
Level level = ...;
ItemStack itemStack = ...;
Player player = ...;
Consumer<T> result = EntityType.createDefaultStackConfig(level, itemStack, player);
net.minecraft.world.entity.EntityType#EntityType(EntityType.EntityFactory<T>,MobCategory,boolean,boolean,boolean,boolean,ImmutableSet<Block>,EntityDimensions,float,int,int,String,Optional<ResourceKey<LootTable>>,FeatureFlagSet)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1015 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityType ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: factory, category, canSpawnFarFromPlayer, serialize, summon, fireImmune.
Parameters
EntityType.EntityFactory<T> entityFactoryMobCategory mobCategoryboolean blboolean bl2boolean bl3boolean bl4ImmutableSet<Block> immutableSetEntityDimensions entityDimensionsfloat fint iint jString stringOptional<ResourceKey<LootTable>> optionalFeatureFlagSet featureFlagSet
ตัวอย่างใช้งาน
EntityType.EntityFactory<T> entityFactory = ...;
MobCategory mobCategory = ...;
ImmutableSet<Block> immutableSet = ...;
EntityDimensions entityDimensions = ...;
Optional<ResourceKey<LootTable>> optional = ...;
FeatureFlagSet featureFlagSet = ...;
EntityType instance = new EntityType(entityFactory, mobCategory, true, true, true, true, immutableSet, entityDimensions, 0.0F, 0, 0, "value", optional, featureFlagSet);
net.minecraft.world.entity.EntityType#fireImmune()
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1162 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ fireImmune ตาม implementation ของ EntityType
ทำงานยังไง
คืนค่า: this.fireImmune.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType#getBaseClass()
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1339 - Modifiers:
public - Return:
Class<? extends Entity>
คืออะไร
อ่านค่า Base Class
ทำงานยังไง
คืนค่า: Entity.class.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType#getCategory()
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1170 - Modifiers:
public - Return:
MobCategory
คืออะไร
อ่านค่า Category
ทำงานยังไง
คืนค่า: this.category.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType#getDefaultLootTable()
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1196 - Modifiers:
public - Return:
Optional<ResourceKey<LootTable>>
คืออะไร
อ่านค่า Default Loot Table
ทำงานยังไง
คืนค่า: this.lootTable.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EntityType instance = ...;
Optional<ResourceKey<LootTable>> result = instance.getDefaultLootTable();
net.minecraft.world.entity.EntityType#getDescription()
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1178 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Description
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: description. เรียกต่อ: translatable(), getDescriptionId(). คืนค่า: this.description.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType#getDescriptionId()
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1174 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Description Id
ทำงานยังไง
คืนค่า: this.descriptionId.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType#getDimensions()
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1242 - Modifiers:
public - Return:
EntityDimensions
คืออะไร
อ่านค่า Dimensions
ทำงานยังไง
คืนค่า: this.dimensions.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType#getHeight()
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1204 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Height
ทำงานยังไง
เรียกต่อ: height(). คืนค่า: this.dimensions.height().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType#getKey(EntityType<?>)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1007 - Modifiers:
public static - Return:
ResourceLocation
คืออะไร
อ่านค่า Key
ทำงานยังไง
คืนค่า: BuiltInRegistries.ENTITY_TYPE.getKey(entityType).
Parameters
EntityType<?> entityType
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType#getSpawnAABB(double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1226 - Modifiers:
public - Return:
AABB
คืออะไร
อ่านค่า Spawn AABB
ทำงานยังไง
เรียกต่อ: getWidth(), getHeight(). สร้างออบเจ็กต์: AABB. คืนค่า: new AABB(d - g, e, f - g, d + g, e + h, f + g).
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType#getWidth()
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1200 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Width
ทำงานยังไง
เรียกต่อ: width(). คืนค่า: this.dimensions.width().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType#getYOffset(LevelReader,BlockPos,boolean,AABB)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1132 - Modifiers:
protected static - Return:
double
คืออะไร
อ่านค่า YOffset
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: expandTowards(), getCollisions(), collide(). สร้างออบเจ็กต์: AABB. คืนค่า: 1.0 + Shapes.collide(Direction.Axis.Y, aABB, iterable, bl ? -2.0 : -1.0).
Parameters
LevelReader levelReaderBlockPos blockPosboolean blAABB aABB
ตัวอย่างใช้งาน
LevelReader levelReader = ...;
BlockPos blockPos = ...;
AABB aABB = ...;
@Override
protected double getYOffset(LevelReader levelReader, BlockPos blockPos, boolean bl, AABB aABB) {
return super.getYOffset(levelReader, blockPos, bl, aABB);
}
net.minecraft.world.entity.EntityType#is(HolderSet<EntityType<?>>)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1330 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ is
ทำงานยังไง
เรียกต่อ: contains(). คืนค่า: holderSet.contains(this.builtInRegistryHolder).
Parameters
HolderSet<EntityType<?>> holderSet
ตัวอย่างใช้งาน
EntityType instance = ...;
HolderSet<EntityType<?>> holderSet = ...;
boolean result = instance.is(holderSet);
net.minecraft.world.entity.EntityType#is(TagKey<EntityType<?>>)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1326 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ is
ทำงานยังไง
คืนค่า: this.builtInRegistryHolder.is(tagKey).
Parameters
TagKey<EntityType<?>> tagKey
ตัวอย่างใช้งาน
EntityType instance = ...;
TagKey<EntityType<?>> tagKey = ...;
boolean result = instance.is(tagKey);
net.minecraft.world.entity.EntityType#isBlockDangerous(BlockState)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1232 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Block Dangerous
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: contains(), getBlock(), isBurningBlock(), is(). คืนค่า: false.
Parameters
BlockState blockState
ตัวอย่างใช้งาน
EntityType instance = ...;
BlockState blockState = ...;
boolean result = instance.isBlockDangerous(blockState);
net.minecraft.world.entity.EntityType#loadEntitiesRecursive(List<? extends Tag>,Level,EntitySpawnReason)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1268 - Modifiers:
public static - Return:
Stream<Entity>
คืออะไร
โหลด Entities Recursive
ทำงานยังไง
เรียกต่อ: spliterator(), stream(), tryAdvance(), loadEntityRecursive(), accept(), trySplit(), estimateSize(), size(). สร้างออบเจ็กต์: Spliterator<Entity>. มีจุด return อย่างน้อย 5 จุด.
Parameters
List<? extends Tag> listLevel levelEntitySpawnReason entitySpawnReason
ตัวอย่างใช้งาน
List<? extends Tag> list = ...;
Level level = ...;
EntitySpawnReason entitySpawnReason = ...;
Stream<Entity> result = EntityType.loadEntitiesRecursive(list, level, entitySpawnReason);
net.minecraft.world.entity.EntityType#loadEntityRecursive(CompoundTag,Level,EntitySpawnReason,Function<Entity, Entity>)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1250 - Modifiers:
public static - Return:
Entity
คืออะไร
โหลด Entity Recursive
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: loadStaticEntity(), map(), contains(), getList(), size(), getCompound(), startRiding(), orElse(). คืนค่า: (Entity)entity.
Parameters
CompoundTag compoundTagLevel levelEntitySpawnReason entitySpawnReasonFunction<Entity, Entity> function
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
Level level = ...;
EntitySpawnReason entitySpawnReason = ...;
Function<Entity, Entity> function = ...;
Entity result = EntityType.loadEntityRecursive(compoundTag, level, entitySpawnReason, function);
net.minecraft.world.entity.EntityType#onlyOpCanSetNbt()
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1365 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ onlyOpCanSetNbt ตาม implementation ของ EntityType
ทำงานยังไง
เรียกต่อ: contains(). คืนค่า: OP_ONLY_CUSTOM_DATA.contains(this).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType#requiredFeatures()
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1208 - Modifiers:
public - Return:
FeatureFlagSet
คืออะไร
ดำเนินการ requiredFeatures ตาม implementation ของ EntityType
ทำงานยังไง
คืนค่า: this.requiredFeatures.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType#spawn(ServerLevel,BlockPos,EntitySpawnReason)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1085 - Modifiers:
public - Return:
T
คืออะไร
สร้าง entity ในโลก spawn
ทำงานยังไง
คืนค่า: this.spawn(serverLevel, null, blockPos, entitySpawnReason, false, false).
Parameters
ServerLevel serverLevelBlockPos blockPosEntitySpawnReason entitySpawnReason
ตัวอย่างใช้งาน
EntityType instance = ...;
ServerLevel serverLevel = ...;
BlockPos blockPos = ...;
EntitySpawnReason entitySpawnReason = ...;
T result = instance.spawn(serverLevel, blockPos, entitySpawnReason);
net.minecraft.world.entity.EntityType#spawn(ServerLevel,Consumer<T>,BlockPos,EntitySpawnReason,boolean,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1090 - Modifiers:
public - Return:
T
คืออะไร
สร้าง entity ในโลก spawn
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: create(), addFreshEntityWithPassengers(), playAmbientSound(). คืนค่า: entity.
Parameters
ServerLevel serverLevelConsumer<T> consumerBlockPos blockPosEntitySpawnReason entitySpawnReasonboolean blboolean bl2
ตัวอย่างใช้งาน
EntityType instance = ...;
ServerLevel serverLevel = ...;
Consumer<T> consumer = ...;
BlockPos blockPos = ...;
EntitySpawnReason entitySpawnReason = ...;
T result = instance.spawn(serverLevel, consumer, blockPos, entitySpawnReason, true, true);
net.minecraft.world.entity.EntityType#spawn(ServerLevel,ItemStack,Player,BlockPos,EntitySpawnReason,boolean,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1047 - Modifiers:
public - Return:
T
คืออะไร
สร้าง entity ในโลก spawn
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: createDefaultStackConfig(). คืนค่า: this.spawn(serverLevel, consumer, blockPos, entitySpawnReason, bl, bl2).
Parameters
ServerLevel serverLevelItemStack itemStackPlayer playerBlockPos blockPosEntitySpawnReason entitySpawnReasonboolean blboolean bl2
ตัวอย่างใช้งาน
EntityType instance = ...;
ServerLevel serverLevel = ...;
ItemStack itemStack = ...;
Player player = ...;
BlockPos blockPos = ...;
EntitySpawnReason entitySpawnReason = ...;
T result = instance.spawn(serverLevel, itemStack, player, blockPos, entitySpawnReason, true, true);
net.minecraft.world.entity.EntityType#toShortString()
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1191 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toShortString ตาม implementation ของ EntityType
ทำงานยังไง
เรียกต่อ: getDescriptionId(), lastIndexOf(), substring(). คืนค่า: i == -1 ? this.getDescriptionId() : this.getDescriptionId().substring(i + 1).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType#toString()
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1186 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ EntityType
ทำงานยังไง
เรียกต่อ: getDescriptionId(). คืนค่า: this.getDescriptionId().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType#trackDeltas()
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1313 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ trackDeltas ตาม implementation ของ EntityType
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType#tryCast(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1334 - Modifiers:
public - Return:
T
คืออะไร
ดำเนินการ tryCast ตาม implementation ของ EntityType
ทำงานยังไง
เรียกต่อ: getType(). คืนค่า: (T)(entity.getType() == this ? entity : null).
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType#updateCustomEntityTag(Level,Player,Entity,CustomData)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1142 - Modifiers:
public static - Return:
void
คืออะไร
อัปเดต Custom Entity Tag
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getServer(), parseEntityType(), registryAccess(), getType(), onlyOpCanSetNbt(), getPlayerList(), isOp(), getGameProfile().
Parameters
Level levelPlayer playerEntity entityCustomData customData
ตัวอย่างใช้งาน
Level level = ...;
Player player = ...;
Entity entity = ...;
CustomData customData = ...;
EntityType.updateCustomEntityTag(level, player, entity, customData);
net.minecraft.world.entity.EntityType#updateInterval()
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1309 - Modifiers:
public - Return:
int
คืออะไร
อัปเดต Interval
ทำงานยังไง
คืนค่า: this.updateInterval.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EntityType$Builder
- Full name:
net.minecraft.world.entity.EntityType$Builder - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/EntityType.java - Type:
class - Modifiers:
public static - Implements:
net.fabricmc.fabric.api.object.builder.v1.entity.FabricEntityType.Builder<T>
net.minecraft.world.entity.EntityType$Builder#attach(EntityAttachment,float,float,float)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1448 - Modifiers:
public - Return:
EntityType.Builder<T>
คืออะไร
ดำเนินการ attach ตาม implementation ของ EntityType$Builder
ทำงานยังไง
แก้ state: attachments. คืนค่า: this.
Parameters
EntityAttachment entityAttachmentfloat ffloat gfloat h
ตัวอย่างใช้งาน
EntityType.Builder instance = ...;
EntityAttachment entityAttachment = ...;
EntityType.Builder<T> result = instance.attach(entityAttachment, 0.0F, 0.0F, 0.0F);
net.minecraft.world.entity.EntityType$Builder#attach(EntityAttachment,Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1453 - Modifiers:
public - Return:
EntityType.Builder<T>
คืออะไร
ดำเนินการ attach ตาม implementation ของ EntityType$Builder
ทำงานยังไง
แก้ state: attachments. คืนค่า: this.
Parameters
EntityAttachment entityAttachmentVec3 vec3
ตัวอย่างใช้งาน
EntityType.Builder instance = ...;
EntityAttachment entityAttachment = ...;
Vec3 vec3 = ...;
EntityType.Builder<T> result = instance.attach(entityAttachment, vec3);
net.minecraft.world.entity.EntityType$Builder#build(ResourceKey<EntityType<?>>)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1503 - Modifiers:
public - Return:
EntityType<T>
คืออะไร
สร้าง build
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: fetchChoiceType(), location(), toString(), withAttachments(), get(). สร้างออบเจ็กต์: EntityType<>.
Parameters
ResourceKey<EntityType<?>> resourceKey
ตัวอย่างใช้งาน
EntityType.Builder instance = ...;
ResourceKey<EntityType<?>> resourceKey = ...;
EntityType<T> result = instance.build(resourceKey);
net.minecraft.world.entity.EntityType$Builder#canSpawnFarFromPlayer()
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1478 - Modifiers:
public - Return:
EntityType.Builder<T>
คืออะไร
ตรวจสอบว่าสามารถ Spawn Far From Player
ทำงานยังไง
แก้ state: canSpawnFarFromPlayer. คืนค่า: this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType$Builder#clientTrackingRange(int)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1483 - Modifiers:
public - Return:
EntityType.Builder<T>
คืออะไร
ดำเนินการ clientTrackingRange ตาม implementation ของ EntityType$Builder
ทำงานยังไง
แก้ state: clientTrackingRange. คืนค่า: this.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType$Builder#createNothing(MobCategory)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1401 - Modifiers:
public static - Return:
EntityType.Builder<T>
คืออะไร
สร้าง Nothing
ทำงานยังไง
สร้างออบเจ็กต์: EntityType.Builder<>. คืนค่า: new EntityType.Builder<>((entityType, level) -> null, mobCategory).
Parameters
MobCategory mobCategory
ตัวอย่างใช้งาน
MobCategory mobCategory = ...;
EntityType.Builder<T> result = EntityType.Builder.createNothing(mobCategory);
net.minecraft.world.entity.EntityType$Builder#eyeHeight(float)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1415 - Modifiers:
public - Return:
EntityType.Builder<T>
คืออะไร
ดำเนินการ eyeHeight ตาม implementation ของ EntityType$Builder
ทำงานยังไง
แก้ state: dimensions. เรียกต่อ: withEyeHeight(). คืนค่า: this.
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType$Builder#fireImmune()
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1468 - Modifiers:
public - Return:
EntityType.Builder<T>
คืออะไร
ดำเนินการ fireImmune ตาม implementation ของ EntityType$Builder
ทำงานยังไง
แก้ state: fireImmune. คืนค่า: this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType$Builder#immuneTo(Block[])
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1473 - Modifiers:
public - Return:
EntityType.Builder<T>
คืออะไร
ดำเนินการ immuneTo ตาม implementation ของ EntityType$Builder
ทำงานยังไง
แก้ state: immuneTo. เรียกต่อ: copyOf(). คืนค่า: this.
Parameters
Block[] blocks
ตัวอย่างใช้งาน
EntityType.Builder instance = ...;
Block[] blocks = ...;
EntityType.Builder<T> result = instance.immuneTo(blocks);
net.minecraft.world.entity.EntityType$Builder#nameTagOffset(float)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1444 - Modifiers:
public - Return:
EntityType.Builder<T>
คืออะไร
ดำเนินการ nameTagOffset ตาม implementation ของ EntityType$Builder
ทำงานยังไง
เรียกต่อ: attach(). คืนค่า: this.attach(EntityAttachment.NAME_TAG, 0.0F, f, 0.0F).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType$Builder#noLootTable()
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1498 - Modifiers:
public - Return:
EntityType.Builder<T>
คืออะไร
ดำเนินการ noLootTable ตาม implementation ของ EntityType$Builder
ทำงานยังไง
แก้ state: lootTable. เรียกต่อ: fixed(), empty(). คืนค่า: this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType$Builder#noSave()
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1463 - Modifiers:
public - Return:
EntityType.Builder<T>
คืออะไร
ดำเนินการ noSave ตาม implementation ของ EntityType$Builder
ทำงานยังไง
แก้ state: serialize. คืนค่า: this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType$Builder#noSummon()
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1458 - Modifiers:
public - Return:
EntityType.Builder<T>
คืออะไร
ดำเนินการ noSummon ตาม implementation ของ EntityType$Builder
ทำงานยังไง
แก้ state: summon. คืนค่า: this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType$Builder#of(EntityType.EntityFactory<T>,MobCategory)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1397 - Modifiers:
public static - Return:
EntityType.Builder<T>
คืออะไร
ดำเนินการ of ตาม implementation ของ EntityType$Builder
ทำงานยังไง
สร้างออบเจ็กต์: EntityType.Builder<>. คืนค่า: new EntityType.Builder<>(entityFactory, mobCategory).
Parameters
EntityType.EntityFactory<T> entityFactoryMobCategory mobCategory
ตัวอย่างใช้งาน
EntityType.EntityFactory<T> entityFactory = ...;
MobCategory mobCategory = ...;
EntityType.Builder<T> result = EntityType.Builder.of(entityFactory, mobCategory);
net.minecraft.world.entity.EntityType$Builder#passengerAttachments(float[])
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1420 - Modifiers:
public - Return:
EntityType.Builder<T>
คืออะไร
ดำเนินการ passengerAttachments ตาม implementation ของ EntityType$Builder
ทำงานยังไง
มีการวนลูป. แก้ state: attachments. เรียกต่อ: attach(). คืนค่า: this.
Parameters
float[] fs
ตัวอย่างใช้งาน
EntityType.Builder instance = ...;
float[] fs = ...;
EntityType.Builder<T> result = instance.passengerAttachments(fs);
net.minecraft.world.entity.EntityType$Builder#passengerAttachments(Vec3[])
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1428 - Modifiers:
public - Return:
EntityType.Builder<T>
คืออะไร
ดำเนินการ passengerAttachments ตาม implementation ของ EntityType$Builder
ทำงานยังไง
มีการวนลูป. แก้ state: attachments. เรียกต่อ: attach(). คืนค่า: this.
Parameters
Vec3[] vec3s
ตัวอย่างใช้งาน
EntityType.Builder instance = ...;
Vec3[] vec3s = ...;
EntityType.Builder<T> result = instance.passengerAttachments(vec3s);
net.minecraft.world.entity.EntityType$Builder#requiredFeatures(FeatureFlag[])
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1493 - Modifiers:
public - Return:
EntityType.Builder<T>
คืออะไร
ดำเนินการ requiredFeatures ตาม implementation ของ EntityType$Builder
ทำงานยังไง
แก้ state: requiredFeatures. เรียกต่อ: subset(). คืนค่า: this.
Parameters
FeatureFlag[] featureFlags
ตัวอย่างใช้งาน
EntityType.Builder instance = ...;
FeatureFlag[] featureFlags = ...;
EntityType.Builder<T> result = instance.requiredFeatures(featureFlags);
net.minecraft.world.entity.EntityType$Builder#ridingOffset(float)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1440 - Modifiers:
public - Return:
EntityType.Builder<T>
คืออะไร
ดำเนินการ ridingOffset ตาม implementation ของ EntityType$Builder
ทำงานยังไง
เรียกต่อ: attach(). คืนค่า: this.attach(EntityAttachment.VEHICLE, 0.0F, -f, 0.0F).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType$Builder#sized(float,float)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1405 - Modifiers:
public - Return:
EntityType.Builder<T>
คืออะไร
ดำเนินการ sized ตาม implementation ของ EntityType$Builder
ทำงานยังไง
แก้ state: dimensions. เรียกต่อ: scalable(). คืนค่า: this.
Parameters
float ffloat g
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType$Builder#spawnDimensionsScale(float)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1410 - Modifiers:
public - Return:
EntityType.Builder<T>
คืออะไร
สร้าง entity ในโลก Dimensions Scale
ทำงานยังไง
แก้ state: spawnDimensionsScale. คืนค่า: this.
Parameters
float f
ตัวอย่างใช้งาน
EntityType.Builder instance = ...;
EntityType.Builder<T> result = instance.spawnDimensionsScale(0.0F);
net.minecraft.world.entity.EntityType$Builder#updateInterval(int)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1488 - Modifiers:
public - Return:
EntityType.Builder<T>
คืออะไร
อัปเดต Interval
ทำงานยังไง
แก้ state: updateInterval. คืนค่า: this.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.EntityType$Builder#vehicleAttachment(Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1436 - Modifiers:
public - Return:
EntityType.Builder<T>
คืออะไร
ดำเนินการ vehicleAttachment ตาม implementation ของ EntityType$Builder
ทำงานยังไง
เรียกต่อ: attach(). คืนค่า: this.attach(EntityAttachment.VEHICLE, vec3).
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
EntityType.Builder instance = ...;
Vec3 vec3 = ...;
EntityType.Builder<T> result = instance.vehicleAttachment(vec3);
EntityType$EntityFactory
- Full name:
net.minecraft.world.entity.EntityType$EntityFactory - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/EntityType.java - Type:
interface - Modifiers:
public
net.minecraft.world.entity.EntityType$EntityFactory#create(EntityType<T>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/EntityType.java:1529 - Modifiers: ``
- Return:
T
คืออะไร
สร้าง create
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
EntityType<T> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType.EntityFactory instance = ...;
EntityType<T> entityType = ...;
Level level = ...;
T result = instance.create(entityType, level);
EquipmentSlot
- Full name:
net.minecraft.world.entity.EquipmentSlot - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/EquipmentSlot.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.entity.EquipmentSlot#byName(String)
- Origin:
common - Source:
net/minecraft/world/entity/EquipmentSlot.java:81 - Modifiers:
public static - Return:
EquipmentSlot
คืออะไร
ดำเนินการ byName ตาม implementation ของ EquipmentSlot
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. สร้างออบเจ็กต์: IllegalArgumentException. คืนค่า: equipmentSlot.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.world.entity.EquipmentSlot#getFilterBit(int)
- Origin:
common - Source:
net/minecraft/world/entity/EquipmentSlot.java:64 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Filter Bit
ทำงานยังไง
คืนค่า: this.id + i.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.EquipmentSlot#getId()
- Origin:
common - Source:
net/minecraft/world/entity/EquipmentSlot.java:60 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Id
ทำงานยังไง
คืนค่า: this.id.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EquipmentSlot#getIndex()
- Origin:
common - Source:
net/minecraft/world/entity/EquipmentSlot.java:48 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Index
ทำงานยังไง
คืนค่า: this.index.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EquipmentSlot#getIndex(int)
- Origin:
common - Source:
net/minecraft/world/entity/EquipmentSlot.java:52 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Index
ทำงานยังไง
คืนค่า: i + this.index.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.EquipmentSlot#getName()
- Origin:
common - Source:
net/minecraft/world/entity/EquipmentSlot.java:68 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EquipmentSlot#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/entity/EquipmentSlot.java:76 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EquipmentSlot#getType()
- Origin:
common - Source:
net/minecraft/world/entity/EquipmentSlot.java:44 - Modifiers:
public - Return:
EquipmentSlot.Type
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: this.type.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EquipmentSlot#isArmor()
- Origin:
common - Source:
net/minecraft/world/entity/EquipmentSlot.java:72 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Armor
ทำงานยังไง
แก้ state: type. คืนค่า: this.type == EquipmentSlot.Type.HUMANOID_ARMOR || this.type == EquipmentSlot.Type.ANIMAL_ARMOR.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EquipmentSlot#limit(ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/EquipmentSlot.java:56 - Modifiers:
public - Return:
ItemStack
คืออะไร
ดำเนินการ limit ตาม implementation ของ EquipmentSlot
ทำงานยังไง
เรียกต่อ: split(). คืนค่า: this.countLimit > 0 ? itemStack.split(this.countLimit) : itemStack.
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
EquipmentSlot instance = ...;
ItemStack itemStack = ...;
ItemStack result = instance.limit(itemStack);
EquipmentSlotGroup
- Full name:
net.minecraft.world.entity.EquipmentSlotGroup - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/EquipmentSlotGroup.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.entity.EquipmentSlotGroup#bySlot(EquipmentSlot)
- Origin:
common - Source:
net/minecraft/world/entity/EquipmentSlotGroup.java:43 - Modifiers:
public static - Return:
EquipmentSlotGroup
คืออะไร
ดำเนินการ bySlot ตาม implementation ของ EquipmentSlotGroup
ทำงานยังไง
แยกกรณีด้วย switch. คืนค่า: switch (equipmentSlot) { case MAINHAND -> MAINHAND.
Parameters
EquipmentSlot equipmentSlot
ตัวอย่างใช้งาน
EquipmentSlot equipmentSlot = ...;
EquipmentSlotGroup result = EquipmentSlotGroup.bySlot(equipmentSlot);
net.minecraft.world.entity.EquipmentSlotGroup#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/entity/EquipmentSlotGroup.java:55 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.key.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.EquipmentSlotGroup#test(EquipmentSlot)
- Origin:
common - Source:
net/minecraft/world/entity/EquipmentSlotGroup.java:60 - Modifiers:
public - Return:
boolean
คืออะไร
ทดสอบเงื่อนไข test
ทำงานยังไง
คืนค่า: this.predicate.test(equipmentSlot).
Parameters
EquipmentSlot equipmentSlot
ตัวอย่างใช้งาน
EquipmentSlotGroup instance = ...;
EquipmentSlot equipmentSlot = ...;
boolean result = instance.test(equipmentSlot);
EquipmentTable
- Full name:
net.minecraft.world.entity.EquipmentTable - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/EquipmentTable.java - Type:
record - Modifiers:
public
net.minecraft.world.entity.EquipmentTable#EquipmentTable(ResourceKey<LootTable>,float)
- Origin:
common - Source:
net/minecraft/world/entity/EquipmentTable.java:29 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EquipmentTable ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: createForAllSlots().
Parameters
ResourceKey<LootTable> resourceKeyfloat f
ตัวอย่างใช้งาน
ResourceKey<LootTable> resourceKey = ...;
EquipmentTable instance = new EquipmentTable(resourceKey, 0.0F);
EquipmentUser
- Full name:
net.minecraft.world.entity.EquipmentUser - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/EquipmentUser.java - Type:
interface - Modifiers:
public
net.minecraft.world.entity.EquipmentUser#equip(EquipmentTable,LootParams)
- Origin:
common - Source:
net/minecraft/world/entity/EquipmentUser.java:21 - Modifiers:
default - Return:
void
คืออะไร
ดำเนินการ equip ตาม implementation ของ EquipmentUser
ทำงานยังไง
เรียกต่อ: lootTable(), slotDropChances().
Parameters
EquipmentTable equipmentTableLootParams lootParams
ตัวอย่างใช้งาน
EquipmentUser instance = ...;
EquipmentTable equipmentTable = ...;
LootParams lootParams = ...;
instance.equip(equipmentTable, lootParams);
net.minecraft.world.entity.EquipmentUser#equip(ResourceKey<LootTable>,LootParams,long,Map<EquipmentSlot, Float>)
- Origin:
common - Source:
net/minecraft/world/entity/EquipmentUser.java:29 - Modifiers:
default - Return:
void
คืออะไร
ดำเนินการ equip ตาม implementation ของ EquipmentUser
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getLevel(), getServer(), reloadableRegistries(), getLootTable(), getRandomItems(), resolveSlot(), limit(), setItemSlot(). สร้างออบเจ็กต์: ArrayList<>.
Parameters
ResourceKey<LootTable> resourceKeyLootParams lootParamslong lMap<EquipmentSlot, Float> map
ตัวอย่างใช้งาน
EquipmentUser instance = ...;
ResourceKey<LootTable> resourceKey = ...;
LootParams lootParams = ...;
Map<EquipmentSlot, Float> map = ...;
instance.equip(resourceKey, lootParams, 0L, map);
net.minecraft.world.entity.EquipmentUser#equip(ResourceKey<LootTable>,LootParams,Map<EquipmentSlot, Float>)
- Origin:
common - Source:
net/minecraft/world/entity/EquipmentUser.java:25 - Modifiers:
default - Return:
void
คืออะไร
ดำเนินการ equip ตาม implementation ของ EquipmentUser
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
ResourceKey<LootTable> resourceKeyLootParams lootParamsMap<EquipmentSlot, Float> map
ตัวอย่างใช้งาน
EquipmentUser instance = ...;
ResourceKey<LootTable> resourceKey = ...;
LootParams lootParams = ...;
Map<EquipmentSlot, Float> map = ...;
instance.equip(resourceKey, lootParams, map);
net.minecraft.world.entity.EquipmentUser#getItemBySlot(EquipmentSlot)
- Origin:
common - Source:
net/minecraft/world/entity/EquipmentUser.java:17 - Modifiers: ``
- Return:
ItemStack
คืออะไร
อ่านค่า Item By Slot
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
EquipmentSlot equipmentSlot
ตัวอย่างใช้งาน
EquipmentUser instance = ...;
EquipmentSlot equipmentSlot = ...;
ItemStack result = instance.getItemBySlot(equipmentSlot);
net.minecraft.world.entity.EquipmentUser#resolveSlot(ItemStack,List<EquipmentSlot>)
- Origin:
common - Source:
net/minecraft/world/entity/EquipmentUser.java:51 - Modifiers:
default - Return:
EquipmentSlot
คืออะไร
ดำเนินการ resolveSlot ตาม implementation ของ EquipmentUser
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isEmpty(), get(), slot(), contains(). มีจุด return อย่างน้อย 4 จุด.
Parameters
ItemStack itemStackList<EquipmentSlot> list
ตัวอย่างใช้งาน
EquipmentUser instance = ...;
ItemStack itemStack = ...;
List<EquipmentSlot> list = ...;
EquipmentSlot result = instance.resolveSlot(itemStack, list);
net.minecraft.world.entity.EquipmentUser#setDropChance(EquipmentSlot,float)
- Origin:
common - Source:
net/minecraft/world/entity/EquipmentUser.java:19 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Drop Chance
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
EquipmentSlot equipmentSlotfloat f
ตัวอย่างใช้งาน
EquipmentUser instance = ...;
EquipmentSlot equipmentSlot = ...;
instance.setDropChance(equipmentSlot, 0.0F);
net.minecraft.world.entity.EquipmentUser#setItemSlot(EquipmentSlot,ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/EquipmentUser.java:15 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Item Slot
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
EquipmentSlot equipmentSlotItemStack itemStack
ตัวอย่างใช้งาน
EquipmentUser instance = ...;
EquipmentSlot equipmentSlot = ...;
ItemStack itemStack = ...;
instance.setItemSlot(equipmentSlot, itemStack);
ExperienceOrb
- Full name:
net.minecraft.world.entity.ExperienceOrb - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/ExperienceOrb.java - Type:
class - Modifiers:
public - Extends:
Entity
net.minecraft.world.entity.ExperienceOrb#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/ExperienceOrb.java:210 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
เรียกต่อ: putShort(), putInt().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
ExperienceOrb instance = ...;
CompoundTag compoundTag = ...;
instance.addAdditionalSaveData(compoundTag);
net.minecraft.world.entity.ExperienceOrb#award(ServerLevel,Vec3,int)
- Origin:
common - Source:
net/minecraft/world/entity/ExperienceOrb.java:143 - Modifiers:
public static - Return:
void
คืออะไร
ดำเนินการ award ตาม implementation ของ ExperienceOrb
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getExperienceValue(), tryMergeToExisting(), addFreshEntity(), x(), y(), z(). สร้างออบเจ็กต์: ExperienceOrb.
Parameters
ServerLevel serverLevelVec3 vec3int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.ExperienceOrb#defineSynchedData(SynchedEntityData.Builder)
- Origin:
common - Source:
net/minecraft/world/entity/ExperienceOrb.java:56 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ defineSynchedData ตาม implementation ของ ExperienceOrb
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
SynchedEntityData.Builder builder
ตัวอย่างใช้งาน
SynchedEntityData.Builder builder = ...;
@Override
protected void defineSynchedData(SynchedEntityData.Builder builder) {
super.defineSynchedData(builder);
}
net.minecraft.world.entity.ExperienceOrb#doWaterSplashEffect()
- Origin:
common - Source:
net/minecraft/world/entity/ExperienceOrb.java:186 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ doWaterSplashEffect ตาม implementation ของ ExperienceOrb
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.ExperienceOrb#ExperienceOrb(EntityType<? extends ExperienceOrb>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/ExperienceOrb.java:47 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ExperienceOrb ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EntityType<? extends ExperienceOrb> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<? extends ExperienceOrb> entityType = ...;
Level level = ...;
ExperienceOrb instance = new ExperienceOrb(entityType, level);
net.minecraft.world.entity.ExperienceOrb#ExperienceOrb(Level,double,double,double,int)
- Origin:
common - Source:
net/minecraft/world/entity/ExperienceOrb.java:39 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ExperienceOrb ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: value. เรียกต่อ: setPos(), setYRot(), nextDouble(), setDeltaMovement().
Parameters
Level leveldouble ddouble edouble fint i
ตัวอย่างใช้งาน
net.minecraft.world.entity.ExperienceOrb#getAddEntityPacket(ServerEntity)
- Origin:
common - Source:
net/minecraft/world/entity/ExperienceOrb.java:322 - Modifiers:
public - Return:
Packet<ClientGamePacketListener>
คืออะไร
อ่านค่า Add Entity Packet
ทำงานยังไง
สร้างออบเจ็กต์: ClientboundAddExperienceOrbPacket. คืนค่า: new ClientboundAddExperienceOrbPacket(this, serverEntity).
Parameters
ServerEntity serverEntity
ตัวอย่างใช้งาน
ExperienceOrb instance = ...;
ServerEntity serverEntity = ...;
Packet<ClientGamePacketListener> result = instance.getAddEntityPacket(serverEntity);
net.minecraft.world.entity.ExperienceOrb#getBlockPosBelowThatAffectsMyMovement()
- Origin:
common - Source:
net/minecraft/world/entity/ExperienceOrb.java:125 - Modifiers:
public - Return:
BlockPos
คืออะไร
อ่านค่า Block Pos Below That Affects My Movement
ทำงานยังไง
เรียกต่อ: getOnPos(). คืนค่า: this.getOnPos(0.999999F).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.ExperienceOrb#getDefaultGravity()
- Origin:
common - Source:
net/minecraft/world/entity/ExperienceOrb.java:60 - Modifiers:
protected - Return:
double
คืออะไร
อ่านค่า Default Gravity
ทำงานยังไง
คืนค่า: 0.03.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.ExperienceOrb#getExperienceValue(int)
- Origin:
common - Source:
net/minecraft/world/entity/ExperienceOrb.java:293 - Modifiers:
public static - Return:
int
คืออะไร
อ่านค่า Experience Value
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. มีจุด return อย่างน้อย 10 จุด.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.ExperienceOrb#getIcon()
- Origin:
common - Source:
net/minecraft/world/entity/ExperienceOrb.java:269 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Icon
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. มีจุด return อย่างน้อย 10 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.ExperienceOrb#getMovementEmission()
- Origin:
common - Source:
net/minecraft/world/entity/ExperienceOrb.java:51 - Modifiers:
protected - Return:
Entity.MovementEmission
คืออะไร
อ่านค่า Movement Emission
ทำงานยังไง
คืนค่า: Entity.MovementEmission.NONE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
@Override
protected Entity.MovementEmission getMovementEmission() {
return super.getMovementEmission();
}
net.minecraft.world.entity.ExperienceOrb#getSoundSource()
- Origin:
common - Source:
net/minecraft/world/entity/ExperienceOrb.java:327 - Modifiers:
public - Return:
SoundSource
คืออะไร
อ่านค่า Sound Source
ทำงานยังไง
คืนค่า: SoundSource.AMBIENT.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.ExperienceOrb#getValue()
- Origin:
common - Source:
net/minecraft/world/entity/ExperienceOrb.java:265 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Value
ทำงานยังไง
คืนค่า: this.value.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.ExperienceOrb#hurtClient(DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/ExperienceOrb.java:190 - Modifiers:
public final - Return:
boolean
คืออะไร
ประมวลผลความเสียหาย Client
ทำงานยังไง
เรียกต่อ: isInvulnerableToBase(). คืนค่า: !this.isInvulnerableToBase(damageSource).
Parameters
DamageSource damageSource
ตัวอย่างใช้งาน
ExperienceOrb instance = ...;
DamageSource damageSource = ...;
boolean result = instance.hurtClient(damageSource);
net.minecraft.world.entity.ExperienceOrb#hurtServer(ServerLevel,DamageSource,float)
- Origin:
common - Source:
net/minecraft/world/entity/ExperienceOrb.java:195 - Modifiers:
public final - Return:
boolean
คืออะไร
ประมวลผลความเสียหาย Server
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: health. เรียกต่อ: isInvulnerableToBase(), markHurt(), discard(). มีจุด return อย่างน้อย 2 จุด.
Parameters
ServerLevel serverLevelDamageSource damageSourcefloat f
ตัวอย่างใช้งาน
ExperienceOrb instance = ...;
ServerLevel serverLevel = ...;
DamageSource damageSource = ...;
boolean result = instance.hurtServer(serverLevel, damageSource, 0.0F);
net.minecraft.world.entity.ExperienceOrb#isAttackable()
- Origin:
common - Source:
net/minecraft/world/entity/ExperienceOrb.java:317 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Attackable
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.ExperienceOrb#playerTouch(Player)
- Origin:
common - Source:
net/minecraft/world/entity/ExperienceOrb.java:226 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ playerTouch ตาม implementation ของ ExperienceOrb
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: count. เรียกต่อ: take(), repairPlayerItems(), giveExperiencePoints(), discard().
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.entity.ExperienceOrb#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/ExperienceOrb.java:218 - Modifiers:
public - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
แก้ state: health, age, value, count. เรียกต่อ: getShort(), max(), getInt().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
ExperienceOrb instance = ...;
CompoundTag compoundTag = ...;
instance.readAdditionalSaveData(compoundTag);
net.minecraft.world.entity.ExperienceOrb#tick()
- Origin:
common - Source:
net/minecraft/world/entity/ExperienceOrb.java:65 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: xo, yo, zo, followingPlayer, age. เรียกต่อ: getX(), getY(), getZ(), isEyeInFluid(), setUnderwaterMovement(), applyGravity(), level(), getFluidState(). สร้างออบเจ็กต์: Vec3.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
FlyingMob
- Full name:
net.minecraft.world.entity.FlyingMob - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/FlyingMob.java - Type:
class - Modifiers:
public abstract - Extends:
Mob
net.minecraft.world.entity.FlyingMob#checkFallDamage(double,boolean,BlockState,BlockPos)
- Origin:
common - Source:
net/minecraft/world/entity/FlyingMob.java:13 - Modifiers:
protected - Return:
void
คืออะไร
ตรวจสอบ Fall Damage
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
double dboolean blBlockState blockStateBlockPos blockPos
ตัวอย่างใช้งาน
BlockState blockState = ...;
BlockPos blockPos = ...;
@Override
protected void checkFallDamage(double d, boolean bl, BlockState blockState, BlockPos blockPos) {
super.checkFallDamage(d, bl, blockState, blockPos);
}
net.minecraft.world.entity.FlyingMob#FlyingMob(EntityType<? extends FlyingMob>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/FlyingMob.java:9 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ FlyingMob ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EntityType<? extends FlyingMob> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<? extends FlyingMob> entityType = ...;
Level level = ...;
FlyingMob instance = new FlyingMob(entityType, level);
net.minecraft.world.entity.FlyingMob#onClimbable()
- Origin:
common - Source:
net/minecraft/world/entity/FlyingMob.java:47 - Modifiers:
public - Return:
boolean
คืออะไร
จัดการเหตุการณ์ Climbable
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.FlyingMob#travel(Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/FlyingMob.java:17 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ travel ตาม implementation ของ FlyingMob
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isControlledByLocalInstance(), isInWater(), moveRelative(), move(), getDeltaMovement(), setDeltaMovement(), scale(), isInLava().
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
GlowSquid
- Full name:
net.minecraft.world.entity.GlowSquid - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/GlowSquid.java - Type:
class - Modifiers:
public - Extends:
Squid
net.minecraft.world.entity.GlowSquid#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/GlowSquid.java:65 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
เรียกต่อ: putInt(), getDarkTicksRemaining().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
GlowSquid instance = ...;
CompoundTag compoundTag = ...;
instance.addAdditionalSaveData(compoundTag);
net.minecraft.world.entity.GlowSquid#aiStep()
- Origin:
common - Source:
net/minecraft/world/entity/GlowSquid.java:77 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ aiStep ตาม implementation ของ GlowSquid
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getDarkTicksRemaining(), setDarkTicks(), level(), addParticle(), getRandomX(), getRandomY(), getRandomZ().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.GlowSquid#checkGlowSquidSpawnRules(EntityType<? extends LivingEntity>,ServerLevelAccessor,EntitySpawnReason,BlockPos,RandomSource)
- Origin:
common - Source:
net/minecraft/world/entity/GlowSquid.java:106 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบ Glow Squid Spawn Rules
ทำงานยังไง
เรียกต่อ: getY(), getSeaLevel(), getRawBrightness(), getBlockState(), is().
Parameters
EntityType<? extends LivingEntity> entityTypeServerLevelAccessor serverLevelAccessorEntitySpawnReason entitySpawnReasonBlockPos blockPosRandomSource randomSource
ตัวอย่างใช้งาน
EntityType<? extends LivingEntity> entityType = ...;
ServerLevelAccessor serverLevelAccessor = ...;
EntitySpawnReason entitySpawnReason = ...;
BlockPos blockPos = ...;
RandomSource randomSource = ...;
boolean result = GlowSquid.checkGlowSquidSpawnRules(entityType, serverLevelAccessor, entitySpawnReason, blockPos, randomSource);
net.minecraft.world.entity.GlowSquid#defineSynchedData(SynchedEntityData.Builder)
- Origin:
common - Source:
net/minecraft/world/entity/GlowSquid.java:33 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ defineSynchedData ตาม implementation ของ GlowSquid
ทำงานยังไง
เรียกต่อ: define().
Parameters
SynchedEntityData.Builder builder
ตัวอย่างใช้งาน
SynchedEntityData.Builder builder = ...;
@Override
protected void defineSynchedData(SynchedEntityData.Builder builder) {
super.defineSynchedData(builder);
}
net.minecraft.world.entity.GlowSquid#getAmbientSound()
- Origin:
common - Source:
net/minecraft/world/entity/GlowSquid.java:50 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Ambient Sound
ทำงานยังไง
คืนค่า: SoundEvents.GLOW_SQUID_AMBIENT.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.GlowSquid#getBreedOffspring(ServerLevel,AgeableMob)
- Origin:
common - Source:
net/minecraft/world/entity/GlowSquid.java:39 - Modifiers:
public - Return:
AgeableMob
คืออะไร
อ่านค่า Breed Offspring
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: EntityType.GLOW_SQUID.create(serverLevel, EntitySpawnReason.BREEDING).
Parameters
ServerLevel serverLevelAgeableMob ageableMob
ตัวอย่างใช้งาน
GlowSquid instance = ...;
ServerLevel serverLevel = ...;
AgeableMob ageableMob = ...;
AgeableMob result = instance.getBreedOffspring(serverLevel, ageableMob);
net.minecraft.world.entity.GlowSquid#getDarkTicksRemaining()
- Origin:
common - Source:
net/minecraft/world/entity/GlowSquid.java:102 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Dark Ticks Remaining
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_DARK_TICKS_REMAINING).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.GlowSquid#getDeathSound()
- Origin:
common - Source:
net/minecraft/world/entity/GlowSquid.java:60 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Death Sound
ทำงานยังไง
คืนค่า: SoundEvents.GLOW_SQUID_DEATH.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.GlowSquid#getHurtSound(DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/GlowSquid.java:55 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Hurt Sound
ทำงานยังไง
คืนค่า: SoundEvents.GLOW_SQUID_HURT.
Parameters
DamageSource damageSource
ตัวอย่างใช้งาน
DamageSource damageSource = ...;
@Override
protected SoundEvent getHurtSound(DamageSource damageSource) {
return super.getHurtSound(damageSource);
}
net.minecraft.world.entity.GlowSquid#getInkParticle()
- Origin:
common - Source:
net/minecraft/world/entity/GlowSquid.java:28 - Modifiers:
protected - Return:
ParticleOptions
คืออะไร
อ่านค่า Ink Particle
ทำงานยังไง
คืนค่า: ParticleTypes.GLOW_SQUID_INK.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.GlowSquid#getSquirtSound()
- Origin:
common - Source:
net/minecraft/world/entity/GlowSquid.java:45 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Squirt Sound
ทำงานยังไง
คืนค่า: SoundEvents.GLOW_SQUID_SQUIRT.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.GlowSquid#GlowSquid(EntityType<? extends GlowSquid>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/GlowSquid.java:24 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ GlowSquid ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EntityType<? extends GlowSquid> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<? extends GlowSquid> entityType = ...;
Level level = ...;
GlowSquid instance = new GlowSquid(entityType, level);
net.minecraft.world.entity.GlowSquid#hurtServer(ServerLevel,DamageSource,float)
- Origin:
common - Source:
net/minecraft/world/entity/GlowSquid.java:88 - Modifiers:
public - Return:
boolean
คืออะไร
ประมวลผลความเสียหาย Server
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: setDarkTicks(). คืนค่า: bl.
Parameters
ServerLevel serverLevelDamageSource damageSourcefloat f
ตัวอย่างใช้งาน
GlowSquid instance = ...;
ServerLevel serverLevel = ...;
DamageSource damageSource = ...;
boolean result = instance.hurtServer(serverLevel, damageSource, 0.0F);
net.minecraft.world.entity.GlowSquid#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/GlowSquid.java:71 - Modifiers:
public - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
เรียกต่อ: setDarkTicks(), getInt().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
GlowSquid instance = ...;
CompoundTag compoundTag = ...;
instance.readAdditionalSaveData(compoundTag);
HasCustomInventoryScreen
- Full name:
net.minecraft.world.entity.HasCustomInventoryScreen - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/HasCustomInventoryScreen.java - Type:
interface - Modifiers:
public
net.minecraft.world.entity.HasCustomInventoryScreen#openCustomInventoryScreen(Player)
- Origin:
common - Source:
net/minecraft/world/entity/HasCustomInventoryScreen.java:6 - Modifiers: ``
- Return:
void
คืออะไร
เปิด Custom Inventory Screen
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Player player
ตัวอย่างใช้งาน
HasCustomInventoryScreen instance = ...;
Player player = ...;
instance.openCustomInventoryScreen(player);
HumanoidArm
- Full name:
net.minecraft.world.entity.HumanoidArm - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/HumanoidArm.java - Type:
enum - Modifiers:
public - Implements:
OptionEnum,StringRepresentable
net.minecraft.world.entity.HumanoidArm#getId()
- Origin:
common - Source:
net/minecraft/world/entity/HumanoidArm.java:29 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Id
ทำงานยังไง
คืนค่า: this.id.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.HumanoidArm#getKey()
- Origin:
common - Source:
net/minecraft/world/entity/HumanoidArm.java:34 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Key
ทำงานยังไง
คืนค่า: this.translationKey.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.HumanoidArm#getOpposite()
- Origin:
common - Source:
net/minecraft/world/entity/HumanoidArm.java:25 - Modifiers:
public - Return:
HumanoidArm
คืออะไร
อ่านค่า Opposite
ทำงานยังไง
คืนค่า: this == LEFT ? RIGHT : LEFT.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.HumanoidArm#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/entity/HumanoidArm.java:39 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Interaction
- Full name:
net.minecraft.world.entity.Interaction - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/Interaction.java - Type:
class - Modifiers:
public - Extends:
Entity - Implements:
Attackable,Targeting
net.minecraft.world.entity.Interaction#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/Interaction.java:87 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: putFloat(), getWidth(), getHeight(), encodeStart(), ifSuccess(), put(), putBoolean(), getResponse().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(CompoundTag compoundTag) {
super.addAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.Interaction#canBeHitByProjectile()
- Origin:
common - Source:
net/minecraft/world/entity/Interaction.java:110 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Be Hit By Projectile
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Interaction#defineSynchedData(SynchedEntityData.Builder)
- Origin:
common - Source:
net/minecraft/world/entity/Interaction.java:48 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ defineSynchedData ตาม implementation ของ Interaction
ทำงานยังไง
เรียกต่อ: define().
Parameters
SynchedEntityData.Builder builder
ตัวอย่างใช้งาน
SynchedEntityData.Builder builder = ...;
@Override
protected void defineSynchedData(SynchedEntityData.Builder builder) {
super.defineSynchedData(builder);
}
net.minecraft.world.entity.Interaction#getDimensions(Pose)
- Origin:
common - Source:
net/minecraft/world/entity/Interaction.java:203 - Modifiers:
public - Return:
EntityDimensions
คืออะไร
อ่านค่า Dimensions
ทำงานยังไง
คืนค่า: this.getDimensions().
Parameters
Pose pose
ตัวอย่างใช้งาน
Interaction instance = ...;
Pose pose = ...;
EntityDimensions result = instance.getDimensions(pose);
net.minecraft.world.entity.Interaction#getHeight()
- Origin:
common - Source:
net/minecraft/world/entity/Interaction.java:187 - Modifiers:
public final - Return:
float
คืออะไร
อ่านค่า Height
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_HEIGHT_ID).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Interaction#getLastAttacker()
- Origin:
common - Source:
net/minecraft/world/entity/Interaction.java:163 - Modifiers:
public - Return:
LivingEntity
คืออะไร
อ่านค่า Last Attacker
ทำงานยังไง
เรียกต่อ: level(), getPlayerByUUID(), player(). คืนค่า: this.attack != null ? this.level().getPlayerByUUID(this.attack.player()) : null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Interaction#getPistonPushReaction()
- Origin:
common - Source:
net/minecraft/world/entity/Interaction.java:120 - Modifiers:
public - Return:
PushReaction
คืออะไร
อ่านค่า Piston Push Reaction
ทำงานยังไง
คืนค่า: PushReaction.IGNORE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Interaction#getResponse()
- Origin:
common - Source:
net/minecraft/world/entity/Interaction.java:195 - Modifiers:
public final - Return:
boolean
คืออะไร
อ่านค่า Response
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_RESPONSE_ID).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Interaction#getTarget()
- Origin:
common - Source:
net/minecraft/world/entity/Interaction.java:169 - Modifiers:
public - Return:
LivingEntity
คืออะไร
อ่านค่า Target
ทำงานยังไง
เรียกต่อ: level(), getPlayerByUUID(), player(). คืนค่า: this.interaction != null ? this.level().getPlayerByUUID(this.interaction.player()) : null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Interaction#getWidth()
- Origin:
common - Source:
net/minecraft/world/entity/Interaction.java:179 - Modifiers:
public final - Return:
float
คืออะไร
อ่านค่า Width
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_WIDTH_ID).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Interaction#hurtServer(ServerLevel,DamageSource,float)
- Origin:
common - Source:
net/minecraft/world/entity/Interaction.java:144 - Modifiers:
public final - Return:
boolean
คืออะไร
ประมวลผลความเสียหาย Server
ทำงานยังไง
คืนค่า: false.
Parameters
ServerLevel serverLevelDamageSource damageSourcefloat f
ตัวอย่างใช้งาน
Interaction instance = ...;
ServerLevel serverLevel = ...;
DamageSource damageSource = ...;
boolean result = instance.hurtServer(serverLevel, damageSource, 0.0F);
net.minecraft.world.entity.Interaction#interact(Player,InteractionHand)
- Origin:
common - Source:
net/minecraft/world/entity/Interaction.java:149 - Modifiers:
public - Return:
InteractionResult
คืออะไร
จัดการ interaction interact
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: interaction. เรียกต่อ: level(), getResponse(), PlayerAction(), getUUID(), getGameTime(). สร้างออบเจ็กต์: Interaction.PlayerAction. มีจุด return อย่างน้อย 2 จุด.
Parameters
Player playerInteractionHand interactionHand
ตัวอย่างใช้งาน
Interaction instance = ...;
Player player = ...;
InteractionHand interactionHand = ...;
InteractionResult result = instance.interact(player, interactionHand);
net.minecraft.world.entity.Interaction#Interaction(EntityType<?>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/Interaction.java:43 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Interaction ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: noPhysics.
Parameters
EntityType<?> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<?> entityType = ...;
Level level = ...;
Interaction instance = new Interaction(entityType, level);
net.minecraft.world.entity.Interaction#isIgnoringBlockTriggers()
- Origin:
common - Source:
net/minecraft/world/entity/Interaction.java:125 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Ignoring Block Triggers
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Interaction#isPickable()
- Origin:
common - Source:
net/minecraft/world/entity/Interaction.java:115 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Pickable
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Interaction#makeBoundingBox(Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/Interaction.java:208 - Modifiers:
protected - Return:
AABB
คืออะไร
สร้าง Bounding Box
ทำงานยังไง
เรียกต่อ: getDimensions(). คืนค่า: this.getDimensions().makeBoundingBox(vec3).
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
Vec3 vec3 = ...;
@Override
protected AABB makeBoundingBox(Vec3 vec3) {
return super.makeBoundingBox(vec3);
}
net.minecraft.world.entity.Interaction#onSyncedDataUpdated(EntityDataAccessor<?>)
- Origin:
common - Source:
net/minecraft/world/entity/Interaction.java:102 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Synced Data Updated
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: equals(), refreshDimensions().
Parameters
EntityDataAccessor<?> entityDataAccessor
ตัวอย่างใช้งาน
Interaction instance = ...;
EntityDataAccessor<?> entityDataAccessor = ...;
instance.onSyncedDataUpdated(entityDataAccessor);
net.minecraft.world.entity.Interaction#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/Interaction.java:55 - Modifiers:
protected - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: attack, interaction. เรียกต่อ: contains(), setWidth(), getFloat(), setHeight(), decode(), get(), resultOrPartial(), prefix().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void readAdditionalSaveData(CompoundTag compoundTag) {
super.readAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.Interaction#setHeight(float)
- Origin:
common - Source:
net/minecraft/world/entity/Interaction.java:183 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Height
ทำงานยังไง
เรียกต่อ: set().
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Interaction#setResponse(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Interaction.java:191 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Response
ทำงานยังไง
เรียกต่อ: set().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.Interaction#setWidth(float)
- Origin:
common - Source:
net/minecraft/world/entity/Interaction.java:175 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Width
ทำงานยังไง
เรียกต่อ: set().
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Interaction#skipAttackInteraction(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Interaction.java:130 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ skipAttackInteraction ตาม implementation ของ Interaction
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: attack. เรียกต่อ: PlayerAction(), getUUID(), level(), getGameTime(), trigger(), damageSources(), generic(), getResponse(). สร้างออบเจ็กต์: Interaction.PlayerAction. มีจุด return อย่างน้อย 2 จุด.
Parameters
Entity entity
ตัวอย่างใช้งาน
Interaction instance = ...;
Entity entity = ...;
boolean result = instance.skipAttackInteraction(entity);
net.minecraft.world.entity.Interaction#tick()
- Origin:
common - Source:
net/minecraft/world/entity/Interaction.java:159 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ItemBasedSteering
- Full name:
net.minecraft.world.entity.ItemBasedSteering - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/ItemBasedSteering.java - Type:
class - Modifiers:
public
net.minecraft.world.entity.ItemBasedSteering#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/ItemBasedSteering.java:54 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
เรียกต่อ: putBoolean(), hasSaddle().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
ItemBasedSteering instance = ...;
CompoundTag compoundTag = ...;
instance.addAdditionalSaveData(compoundTag);
net.minecraft.world.entity.ItemBasedSteering#boost(RandomSource)
- Origin:
common - Source:
net/minecraft/world/entity/ItemBasedSteering.java:29 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ boost ตาม implementation ของ ItemBasedSteering
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: boosting, boostTime. เรียกต่อ: set(), nextInt(). มีจุด return อย่างน้อย 2 จุด.
Parameters
RandomSource randomSource
ตัวอย่างใช้งาน
ItemBasedSteering instance = ...;
RandomSource randomSource = ...;
boolean result = instance.boost(randomSource);
net.minecraft.world.entity.ItemBasedSteering#boostFactor()
- Origin:
common - Source:
net/minecraft/world/entity/ItemBasedSteering.java:46 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ boostFactor ตาม implementation ของ ItemBasedSteering
ทำงานยังไง
เรียกต่อ: sin(), boostTimeTotal(). คืนค่า: this.boosting ? 1.0F + 1.15F * Mth.sin((float)this.boostTime / this.boostTimeTotal() * (float) Math.PI) : 1.0F.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.ItemBasedSteering#hasSaddle()
- Origin:
common - Source:
net/minecraft/world/entity/ItemBasedSteering.java:66 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Saddle
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(this.hasSaddleAccessor).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.ItemBasedSteering#ItemBasedSteering(SynchedEntityData,EntityDataAccessor<Integer>,EntityDataAccessor<Boolean>)
- Origin:
common - Source:
net/minecraft/world/entity/ItemBasedSteering.java:18 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ItemBasedSteering ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: entityData, boostTimeAccessor, hasSaddleAccessor.
Parameters
SynchedEntityData synchedEntityDataEntityDataAccessor<Integer> entityDataAccessorEntityDataAccessor<Boolean> entityDataAccessor2
ตัวอย่างใช้งาน
SynchedEntityData synchedEntityData = ...;
EntityDataAccessor<Integer> entityDataAccessor = ...;
EntityDataAccessor<Boolean> entityDataAccessor2 = ...;
ItemBasedSteering instance = new ItemBasedSteering(synchedEntityData, entityDataAccessor, entityDataAccessor2);
net.minecraft.world.entity.ItemBasedSteering#onSynced()
- Origin:
common - Source:
net/minecraft/world/entity/ItemBasedSteering.java:24 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Synced
ทำงานยังไง
แก้ state: boosting, boostTime.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.ItemBasedSteering#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/ItemBasedSteering.java:58 - Modifiers:
public - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
เรียกต่อ: setSaddle(), getBoolean().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
ItemBasedSteering instance = ...;
CompoundTag compoundTag = ...;
instance.readAdditionalSaveData(compoundTag);
net.minecraft.world.entity.ItemBasedSteering#setSaddle(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/ItemBasedSteering.java:62 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Saddle
ทำงานยังไง
เรียกต่อ: set().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.ItemBasedSteering#tickBoost()
- Origin:
common - Source:
net/minecraft/world/entity/ItemBasedSteering.java:40 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick Boost
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: boostTime, boosting. เรียกต่อ: boostTimeTotal().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ItemSteerable
- Full name:
net.minecraft.world.entity.ItemSteerable - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/ItemSteerable.java - Type:
interface - Modifiers:
public
net.minecraft.world.entity.ItemSteerable#boost()
- Origin:
common - Source:
net/minecraft/world/entity/ItemSteerable.java:4 - Modifiers: ``
- Return:
boolean
คืออะไร
ดำเนินการ boost ตาม implementation ของ ItemSteerable
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Leashable
- Full name:
net.minecraft.world.entity.Leashable - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/Leashable.java - Type:
interface - Modifiers:
public
net.minecraft.world.entity.Leashable#canBeLeashed()
- Origin:
common - Source:
net/minecraft/world/entity/Leashable.java:38 - Modifiers:
default - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Be Leashed
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Leashable#canHaveALeashAttachedToIt()
- Origin:
common - Source:
net/minecraft/world/entity/Leashable.java:34 - Modifiers:
default - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Have ALeash Attached To It
ทำงานยังไง
เรียกต่อ: canBeLeashed(), isLeashed(). คืนค่า: this.canBeLeashed() && !this.isLeashed().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Leashable#closeRangeLeashBehaviour(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Leashable.java:183 - Modifiers:
default - Return:
void
คืออะไร
ปิด Range Leash Behaviour
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.Leashable#dropLeash()
- Origin:
common - Source:
net/minecraft/world/entity/Leashable.java:113 - Modifiers:
default - Return:
void
คืออะไร
ดำเนินการ dropLeash ตาม implementation ของ Leashable
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Leashable#elasticRangeLeashBehaviour(Entity,float)
- Origin:
common - Source:
net/minecraft/world/entity/Leashable.java:186 - Modifiers:
default - Return:
void
คืออะไร
ดำเนินการ elasticRangeLeashBehaviour ตาม implementation ของ Leashable
ทำงานยังไง
เรียกต่อ: legacyElasticRangeLeashBehaviour().
Parameters
Entity entityfloat f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Leashable#getLeashData()
- Origin:
common - Source:
net/minecraft/world/entity/Leashable.java:21 - Modifiers: ``
- Return:
Leashable.LeashData
คืออะไร
อ่านค่า Leash Data
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Leashable#getLeashHolder()
- Origin:
common - Source:
net/minecraft/world/entity/Leashable.java:219 - Modifiers:
default - Return:
Entity
คืออะไร
อ่านค่า Leash Holder
ทำงานยังไง
คืนค่า: getLeashHolder((Entity & Leashable)this).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Leashable#handleLeashAtDistance(Entity,float)
- Origin:
common - Source:
net/minecraft/world/entity/Leashable.java:175 - Modifiers:
default - Return:
boolean
คืออะไร
จัดการ Leash At Distance
ทำงานยังไง
คืนค่า: true.
Parameters
Entity entityfloat f
ตัวอย่างใช้งาน
Leashable instance = ...;
Entity entity = ...;
boolean result = instance.handleLeashAtDistance(entity, 0.0F);
net.minecraft.world.entity.Leashable#isLeashed()
- Origin:
common - Source:
net/minecraft/world/entity/Leashable.java:26 - Modifiers:
default - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Leashed
ทำงานยังไง
เรียกต่อ: getLeashData(). คืนค่า: this.getLeashData() != null && this.getLeashData().leashHolder != null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Leashable#leashTooFarBehaviour()
- Origin:
common - Source:
net/minecraft/world/entity/Leashable.java:179 - Modifiers:
default - Return:
void
คืออะไร
ดำเนินการ leashTooFarBehaviour ตาม implementation ของ Leashable
ทำงานยังไง
เรียกต่อ: dropLeash().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Leashable#mayBeLeashed()
- Origin:
common - Source:
net/minecraft/world/entity/Leashable.java:30 - Modifiers:
default - Return:
boolean
คืออะไร
ดำเนินการ mayBeLeashed ตาม implementation ของ Leashable
ทำงานยังไง
เรียกต่อ: getLeashData(). คืนค่า: this.getLeashData() != null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Leashable#onLeashRemoved()
- Origin:
common - Source:
net/minecraft/world/entity/Leashable.java:121 - Modifiers:
default - Return:
void
คืออะไร
จัดการเหตุการณ์ Leash Removed
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Leashable#readLeashData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/Leashable.java:47 - Modifiers:
default - Return:
void
คืออะไร
อ่าน Leash Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: readLeashDataInternal(), getLeashData(), removeLeash(), setLeashData().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
net.minecraft.world.entity.Leashable#removeLeash()
- Origin:
common - Source:
net/minecraft/world/entity/Leashable.java:117 - Modifiers:
default - Return:
void
คืออะไร
ลบ Leash
ทำงานยังไง
เรียกต่อ: dropLeash().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Leashable#setDelayedLeashHolderId(int)
- Origin:
common - Source:
net/minecraft/world/entity/Leashable.java:42 - Modifiers:
default - Return:
void
คืออะไร
กำหนดค่า Delayed Leash Holder Id
ทำงานยังไง
เรียกต่อ: setLeashData(), LeashData(), dropLeash(). สร้างออบเจ็กต์: Leashable.LeashData.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.Leashable#setLeashData(Leashable.LeashData)
- Origin:
common - Source:
net/minecraft/world/entity/Leashable.java:24 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Leash Data
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Leashable.LeashData leashData
ตัวอย่างใช้งาน
net.minecraft.world.entity.Leashable#setLeashedTo(Entity,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Leashable.java:197 - Modifiers:
default - Return:
void
คืออะไร
กำหนดค่า Leashed To
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Entity entityboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.Leashable#tickLeash(ServerLevel,E)
- Origin:
common - Source:
net/minecraft/world/entity/Leashable.java:141 - Modifiers:
static - Return:
void
คืออะไร
ประมวลผล tick Leash
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getLeashData(), restoreLeashFromSave(), isAlive(), getGameRules(), getBoolean(), dropLeash(), removeLeash(), getLeashHolder().
Parameters
ServerLevel serverLevelE entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.Leashable#writeLeashData(CompoundTag,Leashable.LeashData)
- Origin:
common - Source:
net/minecraft/world/entity/Leashable.java:72 - Modifiers:
default - Return:
void
คืออะไร
เขียน Leash Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: right(), getPos(), left(), getUUID(), put(), map(), putUUID(). สร้างออบเจ็กต์: CompoundTag. คืนค่า: compoundTagx.
Parameters
CompoundTag compoundTagLeashable.LeashData leashData
ตัวอย่างใช้งาน
Leashable instance = ...;
CompoundTag compoundTag = ...;
Leashable.LeashData leashData = ...;
instance.writeLeashData(compoundTag, leashData);
LightningBolt
- Full name:
net.minecraft.world.entity.LightningBolt - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/LightningBolt.java - Type:
class - Modifiers:
public - Extends:
Entity
net.minecraft.world.entity.LightningBolt#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/LightningBolt.java:236 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(CompoundTag compoundTag) {
super.addAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.LightningBolt#defineSynchedData(SynchedEntityData.Builder)
- Origin:
common - Source:
net/minecraft/world/entity/LightningBolt.java:228 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ defineSynchedData ตาม implementation ของ LightningBolt
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
SynchedEntityData.Builder builder
ตัวอย่างใช้งาน
SynchedEntityData.Builder builder = ...;
@Override
protected void defineSynchedData(SynchedEntityData.Builder builder) {
super.defineSynchedData(builder);
}
net.minecraft.world.entity.LightningBolt#getBlocksSetOnFire()
- Origin:
common - Source:
net/minecraft/world/entity/LightningBolt.java:240 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Blocks Set On Fire
ทำงานยังไง
คืนค่า: this.blocksSetOnFire.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LightningBolt#getCause()
- Origin:
common - Source:
net/minecraft/world/entity/LightningBolt.java:59 - Modifiers:
public - Return:
ServerPlayer
คืออะไร
อ่านค่า Cause
ทำงานยังไง
คืนค่า: this.cause.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LightningBolt#getHitEntities()
- Origin:
common - Source:
net/minecraft/world/entity/LightningBolt.java:244 - Modifiers:
public - Return:
Stream<Entity>
คืออะไร
อ่านค่า Hit Entities
ทำงานยังไง
เรียกต่อ: stream(), filter(). คืนค่า: this.hitEntities.stream().filter(Entity::isAlive).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LightningBolt#getSoundSource()
- Origin:
common - Source:
net/minecraft/world/entity/LightningBolt.java:54 - Modifiers:
public - Return:
SoundSource
คืออะไร
อ่านค่า Sound Source
ทำงานยังไง
คืนค่า: SoundSource.WEATHER.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LightningBolt#hurtServer(ServerLevel,DamageSource,float)
- Origin:
common - Source:
net/minecraft/world/entity/LightningBolt.java:248 - Modifiers:
public final - Return:
boolean
คืออะไร
ประมวลผลความเสียหาย Server
ทำงานยังไง
คืนค่า: false.
Parameters
ServerLevel serverLevelDamageSource damageSourcefloat f
ตัวอย่างใช้งาน
LightningBolt instance = ...;
ServerLevel serverLevel = ...;
DamageSource damageSource = ...;
boolean result = instance.hurtServer(serverLevel, damageSource, 0.0F);
net.minecraft.world.entity.LightningBolt#LightningBolt(EntityType<? extends LightningBolt>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/LightningBolt.java:43 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LightningBolt ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: life, seed, flashes. เรียกต่อ: nextLong(), nextInt().
Parameters
EntityType<? extends LightningBolt> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<? extends LightningBolt> entityType = ...;
Level level = ...;
LightningBolt instance = new LightningBolt(entityType, level);
net.minecraft.world.entity.LightningBolt#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/LightningBolt.java:232 - Modifiers:
protected - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void readAdditionalSaveData(CompoundTag compoundTag) {
super.readAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.LightningBolt#setCause(ServerPlayer)
- Origin:
common - Source:
net/minecraft/world/entity/LightningBolt.java:64 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Cause
ทำงานยังไง
แก้ state: cause.
Parameters
ServerPlayer serverPlayer
ตัวอย่างใช้งาน
net.minecraft.world.entity.LightningBolt#setVisualOnly(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/LightningBolt.java:50 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Visual Only
ทำงานยังไง
แก้ state: visualOnly.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.LightningBolt#shouldRenderAtSqrDistance(double)
- Origin:
common - Source:
net/minecraft/world/entity/LightningBolt.java:222 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Render At Sqr Distance
ทำงานยังไง
เรียกต่อ: getViewScale(). คืนค่า: d < e * e.
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.world.entity.LightningBolt#tick()
- Origin:
common - Source:
net/minecraft/world/entity/LightningBolt.java:76 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: life, flashes, seed. เรียกต่อ: level(), isClientSide(), playLocalSound(), getX(), getY(), getZ(), nextFloat(), getDifficulty(). สร้างออบเจ็กต์: AABB.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LivingEntity
- Full name:
net.minecraft.world.entity.LivingEntity - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/LivingEntity.java - Type:
class - Modifiers:
public abstract - Extends:
Entity - Implements:
Attackable
net.minecraft.world.entity.LivingEntity#activeLocationDependentEnchantments(EquipmentSlot)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1548 - Modifiers:
public - Return:
Map<Enchantment, Set<EnchantmentLocationBasedEffect>>
คืออะไร
ดำเนินการ activeLocationDependentEnchantments ตาม implementation ของ LivingEntity
ทำงานยังไง
เรียกต่อ: computeIfAbsent(). สร้างออบเจ็กต์: Reference2ObjectArrayMap<>. คืนค่า: this.activeLocationDependentEnchantments.computeIfAbsent(equipmentSlot, equipmentSlotx -> new Reference2ObjectArrayMap<>()).
Parameters
EquipmentSlot equipmentSlot
ตัวอย่างใช้งาน
LivingEntity instance = ...;
EquipmentSlot equipmentSlot = ...;
Map<Enchantment, Set<EnchantmentLocationBasedEffect>> result = instance.activeLocationDependentEnchantments(equipmentSlot);
net.minecraft.world.entity.LivingEntity#actuallyHurt(ServerLevel,DamageSource,float)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1744 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ actuallyHurt ตาม implementation ของ LivingEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isInvulnerableTo(), getDamageAfterArmorAbsorb(), getDamageAfterMagicAbsorb(), max(), getAbsorptionAmount(), setAbsorptionAmount(), getEntity(), awardStat().
Parameters
ServerLevel serverLevelDamageSource damageSourcefloat f
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
DamageSource damageSource = ...;
@Override
protected void actuallyHurt(ServerLevel serverLevel, DamageSource damageSource, float f) {
super.actuallyHurt(serverLevel, damageSource, f);
}
net.minecraft.world.entity.LivingEntity#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:696 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: putFloat(), getHealth(), putShort(), putInt(), getAbsorptionAmount(), put(), getAttributes(), save(). สร้างออบเจ็กต์: ListTag.
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
LivingEntity instance = ...;
CompoundTag compoundTag = ...;
instance.addAdditionalSaveData(compoundTag);
net.minecraft.world.entity.LivingEntity#addEffect(MobEffectInstance)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:928 - Modifiers:
public final - Return:
boolean
คืออะไร
เพิ่ม Effect
ทำงานยังไง
คืนค่า: this.addEffect(mobEffectInstance, null).
Parameters
MobEffectInstance mobEffectInstance
ตัวอย่างใช้งาน
LivingEntity instance = ...;
MobEffectInstance mobEffectInstance = ...;
boolean result = instance.addEffect(mobEffectInstance);
net.minecraft.world.entity.LivingEntity#addEffect(MobEffectInstance,Entity)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:932 - Modifiers:
public - Return:
boolean
คืออะไร
เพิ่ม Effect
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: canBeAffected(), get(), getEffect(), put(), onEffectAdded(), update(), onEffectUpdated(), onEffectStarted(). มีจุด return อย่างน้อย 2 จุด.
Parameters
MobEffectInstance mobEffectInstanceEntity entity
ตัวอย่างใช้งาน
LivingEntity instance = ...;
MobEffectInstance mobEffectInstance = ...;
Entity entity = ...;
boolean result = instance.addEffect(mobEffectInstance, entity);
net.minecraft.world.entity.LivingEntity#aiStep()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2675 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ aiStep ตาม implementation ของ LivingEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: noJumpDelay, lerpSteps, lerpHeadSteps, jumping, xxa, zza. เรียกต่อ: lerpPositionAndRotationStep(), isEffectiveAi(), setDeltaMovement(), getDeltaMovement(), scale(), lerpHeadRotationStep(), abs(), get(). สร้างออบเจ็กต์: Vec3.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#animateHurt(float)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1659 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ animateHurt ตาม implementation ของ LivingEntity
ทำงานยังไง
แก้ state: hurtDuration, hurtTime.
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#areAllEffectsAmbient(Collection<MobEffectInstance>)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:882 - Modifiers:
public static - Return:
boolean
คืออะไร
ดำเนินการ areAllEffectsAmbient ตาม implementation ของ LivingEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: isVisible(), isAmbient(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Collection<MobEffectInstance> collection
ตัวอย่างใช้งาน
Collection<MobEffectInstance> collection = ...;
boolean result = LivingEntity.areAllEffectsAmbient(collection);
net.minecraft.world.entity.LivingEntity#attackable()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3329 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ attackable ตาม implementation ของ LivingEntity
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#baseTick()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:385 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ baseTick ตาม implementation ของ LivingEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: oAttackAnim, lastPos, hurtTime, invulnerableTime, lastHurtByPlayerTime, lastHurtByPlayer. เรียกต่อ: getSleepingPos(), ifPresent(), level(), tickEffects(), get(), push(), fireImmune(), clearFire().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#blockedByShield(LivingEntity)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1255 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ blockedByShield ตาม implementation ของ LivingEntity
ทำงานยังไง
เรียกต่อ: knockback(), getX(), getZ().
Parameters
LivingEntity livingEntity
ตัวอย่างใช้งาน
LivingEntity livingEntity = ...;
@Override
protected void blockedByShield(LivingEntity livingEntity) {
super.blockedByShield(livingEntity);
}
net.minecraft.world.entity.LivingEntity#blockUsingShield(LivingEntity)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1251 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ blockUsingShield ตาม implementation ของ LivingEntity
ทำงานยังไง
เรียกต่อ: blockedByShield().
Parameters
LivingEntity livingEntity
ตัวอย่างใช้งาน
LivingEntity livingEntity = ...;
@Override
protected void blockUsingShield(LivingEntity livingEntity) {
super.blockUsingShield(livingEntity);
}
net.minecraft.world.entity.LivingEntity#brainProvider()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:288 - Modifiers:
protected - Return:
Brain.Provider<?>
คืออะไร
ดำเนินการ brainProvider ตาม implementation ของ LivingEntity
ทำงานยังไง
เรียกต่อ: provider(), of(). คืนค่า: Brain.provider(ImmutableList.of(), ImmutableList.of()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#calculateEntityAnimation(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2332 - Modifiers:
public - Return:
void
คืออะไร
คำนวณ Entity Animation
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: length(), getX(), getY(), getZ(), isPassenger(), isAlive(), updateWalkAnimation(), stop().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#calculateFallDamage(float,float)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1636 - Modifiers:
protected - Return:
int
คืออะไร
คำนวณ Fall Damage
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getType(), is(), getAttributeValue(), ceil(). มีจุด return อย่างน้อย 2 จุด.
Parameters
float ffloat g
ตัวอย่างใช้งาน
@Override
protected int calculateFallDamage(float f, float g) {
return super.calculateFallDamage(f, g);
}
net.minecraft.world.entity.LivingEntity#canAttack(LivingEntity)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:870 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Attack
ทำงานยังไง
เรียกต่อ: level(), getDifficulty(), canBeSeenAsEnemy(). คืนค่า: livingEntity instanceof Player && this.level().getDifficulty() == Difficulty.PEACEFUL ? false : livingEntity.canBeSeenAsEnemy().
Parameters
LivingEntity livingEntity
ตัวอย่างใช้งาน
LivingEntity instance = ...;
LivingEntity livingEntity = ...;
boolean result = instance.canAttack(livingEntity);
net.minecraft.world.entity.LivingEntity#canAttackType(EntityType<?>)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:301 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Attack Type
ทำงานยังไง
คืนค่า: true.
Parameters
EntityType<?> entityType
ตัวอย่างใช้งาน
LivingEntity instance = ...;
EntityType<?> entityType = ...;
boolean result = instance.canAttackType(entityType);
net.minecraft.world.entity.LivingEntity#canBeAffected(MobEffectInstance)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:953 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Be Affected
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getType(), is(). มีจุด return อย่างน้อย 2 จุด.
Parameters
MobEffectInstance mobEffectInstance
ตัวอย่างใช้งาน
LivingEntity instance = ...;
MobEffectInstance mobEffectInstance = ...;
boolean result = instance.canBeAffected(mobEffectInstance);
net.minecraft.world.entity.LivingEntity#canBeNameTagged()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1552 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Be Name Tagged
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#canBeSeenAsEnemy()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:874 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Be Seen As Enemy
ทำงานยังไง
เรียกต่อ: isInvulnerable(), canBeSeenByAnyone(). คืนค่า: !this.isInvulnerable() && this.canBeSeenByAnyone().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#canBeSeenByAnyone()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:878 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Be Seen By Anyone
ทำงานยังไง
เรียกต่อ: isSpectator(), isAlive(). คืนค่า: !this.isSpectator() && this.isAlive().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#canBreatheUnderwater()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:373 - Modifiers:
public final - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Breathe Underwater
ทำงานยังไง
เรียกต่อ: getType(), is(). คืนค่า: this.getType().is(EntityTypeTags.CAN_BREATHE_UNDER_WATER).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#cancelLerp()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2930 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ cancelLerp ตาม implementation ของ LivingEntity
ทำงานยังไง
แก้ state: lerpSteps.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#canDisableShield()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3592 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Disable Shield
ทำงานยังไง
เรียกต่อ: getWeaponItem(), getItem(). คืนค่า: this.getWeaponItem().getItem() instanceof AxeItem.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#canDispenserEquipIntoSlot(EquipmentSlot)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3501 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Dispenser Equip Into Slot
ทำงานยังไง
คืนค่า: true.
Parameters
EquipmentSlot equipmentSlot
ตัวอย่างใช้งาน
EquipmentSlot equipmentSlot = ...;
@Override
protected boolean canDispenserEquipIntoSlot(EquipmentSlot equipmentSlot) {
return super.canDispenserEquipIntoSlot(equipmentSlot);
}
net.minecraft.world.entity.LivingEntity#canEquipWithDispenser(ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3485 - Modifiers:
public final - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Equip With Dispenser
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isAlive(), isSpectator(), get(), dispensable(), slot(), canUseSlot(), canBeEquippedBy(), getType(). มีจุด return อย่างน้อย 2 จุด.
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
LivingEntity instance = ...;
ItemStack itemStack = ...;
boolean result = instance.canEquipWithDispenser(itemStack);
net.minecraft.world.entity.LivingEntity#canFreeze()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3550 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Freeze
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isSpectator(), getItemBySlot(), is(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#canGlide()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2834 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Glide
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: onGround(), isPassenger(), hasEffect(), canGlideUsing(), getItemBySlot(). มีจุด return อย่างน้อย 3 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#canGlideUsing(ItemStack,EquipmentSlot)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3624 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Glide Using
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: has(), get(), slot(), nextDamageWillBreak(). มีจุด return อย่างน้อย 2 จุด.
Parameters
ItemStack itemStackEquipmentSlot equipmentSlot
ตัวอย่างใช้งาน
ItemStack itemStack = ...;
EquipmentSlot equipmentSlot = ...;
boolean result = LivingEntity.canGlideUsing(itemStack, equipmentSlot);
net.minecraft.world.entity.LivingEntity#canPickUpLoot()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3336 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Pick Up Loot
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#canStandOnFluid(FluidState)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2159 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Stand On Fluid
ทำงานยังไง
คืนค่า: false.
Parameters
FluidState fluidState
ตัวอย่างใช้งาน
LivingEntity instance = ...;
FluidState fluidState = ...;
boolean result = instance.canStandOnFluid(fluidState);
net.minecraft.world.entity.LivingEntity#canUsePortal(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3370 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Use Portal
ทำงานยังไง
เรียกต่อ: isSleeping(). คืนค่า: super.canUsePortal(bl) && !this.isSleeping().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#canUseSlot(EquipmentSlot)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2020 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Use Slot
ทำงานยังไง
คืนค่า: false.
Parameters
EquipmentSlot equipmentSlot
ตัวอย่างใช้งาน
LivingEntity instance = ...;
EquipmentSlot equipmentSlot = ...;
boolean result = instance.canUseSlot(equipmentSlot);
net.minecraft.world.entity.LivingEntity#causeFallDamage(float,float,DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1622 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ causeFallDamage ตาม implementation ของ LivingEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: calculateFallDamage(), playSound(), getFallDamageSound(), playBlockFallSound(), hurt(). มีจุด return อย่างน้อย 2 จุด.
Parameters
float ffloat gDamageSource damageSource
ตัวอย่างใช้งาน
LivingEntity instance = ...;
DamageSource damageSource = ...;
boolean result = instance.causeFallDamage(0.0F, 0.0F, damageSource);
net.minecraft.world.entity.LivingEntity#checkAutoSpinAttack(AABB,AABB)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2879 - Modifiers:
protected - Return:
void
คืออะไร
ตรวจสอบ Auto Spin Attack
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: autoSpinAttackTicks, autoSpinAttackDmg, autoSpinAttackItemStack. เรียกต่อ: minmax(), level(), getEntities(), isEmpty(), doAutoAttackOnTouch(), setDeltaMovement(), getDeltaMovement(), scale().
Parameters
AABB aABBAABB aABB2
ตัวอย่างใช้งาน
AABB aABB = ...;
AABB aABB2 = ...;
@Override
protected void checkAutoSpinAttack(AABB aABB, AABB aABB2) {
super.checkAutoSpinAttack(aABB, aABB2);
}
net.minecraft.world.entity.LivingEntity#checkFallDamage(double,boolean,BlockState,BlockPos)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:338 - Modifiers:
protected - Return:
void
คืออะไร
ตรวจสอบ Fall Damage
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: lastClimbablePos. เรียกต่อ: isInWater(), updateInWaterStateAndDoWaterCurrentPushing(), level(), onChangedBlock(), getAttributeValue(), isAir(), getX(), getY(). สร้างออบเจ็กต์: BlockParticleOption.
Parameters
double dboolean blBlockState blockStateBlockPos blockPos
ตัวอย่างใช้งาน
BlockState blockState = ...;
BlockPos blockPos = ...;
@Override
protected void checkFallDamage(double d, boolean bl, BlockState blockState, BlockPos blockPos) {
super.checkFallDamage(d, bl, blockState, blockPos);
}
net.minecraft.world.entity.LivingEntity#clearSleepingPos()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3383 - Modifiers:
public - Return:
void
คืออะไร
ล้าง Sleeping Pos
ทำงานยังไง
เรียกต่อ: set(), empty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#completeUsingItem()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3187 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ completeUsingItem ตาม implementation ของ LivingEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), isUsingItem(), getUsedItemHand(), equals(), getItemInHand(), releaseUsingItem(), isEmpty(), finishUsingItem().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#createLivingAttributes()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:316 - Modifiers:
public static - Return:
AttributeSupplier.Builder
คืออะไร
สร้าง Living Attributes
ทำงานยังไง
เรียกต่อ: builder(), add().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#createWitherRose(LivingEntity)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1377 - Modifiers:
protected - Return:
void
คืออะไร
สร้าง Wither Rose
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), getGameRules(), getBoolean(), blockPosition(), defaultBlockState(), getBlockState(), isAir(), canSurvive(). สร้างออบเจ็กต์: ItemEntity, ItemStack.
Parameters
LivingEntity livingEntity
ตัวอย่างใช้งาน
LivingEntity livingEntity = ...;
@Override
protected void createWitherRose(LivingEntity livingEntity) {
super.createWitherRose(livingEntity);
}
net.minecraft.world.entity.LivingEntity#decreaseAirSupply(int)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:570 - Modifiers:
protected - Return:
int
คืออะไร
ดำเนินการ decreaseAirSupply ตาม implementation ของ LivingEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getAttribute(), getValue(), nextDouble(). คืนค่า: d > 0.0 && this.random.nextDouble() >= 1.0 / (d + 1.0) ? i : i - 1.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#defineSynchedData(SynchedEntityData.Builder)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:305 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ defineSynchedData ตาม implementation ของ LivingEntity
ทำงานยังไง
เรียกต่อ: define(), of(), empty().
Parameters
SynchedEntityData.Builder builder
ตัวอย่างใช้งาน
SynchedEntityData.Builder builder = ...;
@Override
protected void defineSynchedData(SynchedEntityData.Builder builder) {
super.defineSynchedData(builder);
}
net.minecraft.world.entity.LivingEntity#die(DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1345 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ die ตาม implementation ของ LivingEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: dead. เรียกต่อ: isRemoved(), getEntity(), getKillCredit(), awardKillScore(), isSleeping(), stopSleeping(), level(), hasCustomName().
Parameters
DamageSource damageSource
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#doAutoAttackOnTouch(LivingEntity)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2906 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ doAutoAttackOnTouch ตาม implementation ของ LivingEntity
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
LivingEntity livingEntity
ตัวอย่างใช้งาน
LivingEntity livingEntity = ...;
@Override
protected void doAutoAttackOnTouch(LivingEntity livingEntity) {
super.doAutoAttackOnTouch(livingEntity);
}
net.minecraft.world.entity.LivingEntity#doesEmitEquipEvent(EquipmentSlot)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:657 - Modifiers:
protected - Return:
boolean
คืออะไร
ดำเนินการ doesEmitEquipEvent ตาม implementation ของ LivingEntity
ทำงานยังไง
คืนค่า: true.
Parameters
EquipmentSlot equipmentSlot
ตัวอย่างใช้งาน
EquipmentSlot equipmentSlot = ...;
@Override
protected boolean doesEmitEquipEvent(EquipmentSlot equipmentSlot) {
return super.doesEmitEquipEvent(equipmentSlot);
}
net.minecraft.world.entity.LivingEntity#doHurtEquipment(DamageSource,float,EquipmentSlot[])
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1678 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ doHurtEquipment ตาม implementation ของ LivingEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: max(), getItemBySlot(), get(), damageOnHurt(), isDamageableItem(), canBeHurtBy(), hurtAndBreak().
Parameters
DamageSource damageSourcefloat fEquipmentSlot[] equipmentSlots
ตัวอย่างใช้งาน
DamageSource damageSource = ...;
EquipmentSlot[] equipmentSlots = ...;
@Override
protected void doHurtEquipment(DamageSource damageSource, float f, EquipmentSlot[] equipmentSlots) {
super.doHurtEquipment(damageSource, f, equipmentSlots);
}
net.minecraft.world.entity.LivingEntity#doHurtTarget(ServerLevel,Entity)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2407 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ doHurtTarget ตาม implementation ของ LivingEntity
ทำงานยังไง
เรียกต่อ: setLastHurtMob(). คืนค่า: false.
Parameters
ServerLevel serverLevelEntity entity
ตัวอย่างใช้งาน
LivingEntity instance = ...;
ServerLevel serverLevel = ...;
Entity entity = ...;
boolean result = instance.doHurtTarget(serverLevel, entity);
net.minecraft.world.entity.LivingEntity#doPush(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2902 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ doPush ตาม implementation ของ LivingEntity
ทำงานยังไง
เรียกต่อ: push().
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#dropAllDeathLoot(ServerLevel,DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1398 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ dropAllDeathLoot ตาม implementation ของ LivingEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: shouldDropLoot(), getGameRules(), getBoolean(), dropFromLootTable(), dropCustomDeathLoot(), dropEquipment(), dropExperience(), getEntity().
Parameters
ServerLevel serverLevelDamageSource damageSource
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
DamageSource damageSource = ...;
@Override
protected void dropAllDeathLoot(ServerLevel serverLevel, DamageSource damageSource) {
super.dropAllDeathLoot(serverLevel, damageSource);
}
net.minecraft.world.entity.LivingEntity#dropCustomDeathLoot(ServerLevel,DamageSource,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1422 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ dropCustomDeathLoot ตาม implementation ของ LivingEntity
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
ServerLevel serverLevelDamageSource damageSourceboolean bl
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
DamageSource damageSource = ...;
@Override
protected void dropCustomDeathLoot(ServerLevel serverLevel, DamageSource damageSource, boolean bl) {
super.dropCustomDeathLoot(serverLevel, damageSource, bl);
}
net.minecraft.world.entity.LivingEntity#dropEquipment(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1409 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ dropEquipment ตาม implementation ของ LivingEntity
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
@Override
protected void dropEquipment(ServerLevel serverLevel) {
super.dropEquipment(serverLevel);
}
net.minecraft.world.entity.LivingEntity#dropExperience(ServerLevel,Entity)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1412 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ dropExperience ตาม implementation ของ LivingEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: wasExperienceConsumed(), isAlwaysExperienceDropper(), shouldDropExperience(), getGameRules(), getBoolean(), award(), position(), getExperienceReward().
Parameters
ServerLevel serverLevelEntity entity
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
Entity entity = ...;
@Override
protected void dropExperience(ServerLevel serverLevel, Entity entity) {
super.dropExperience(serverLevel, entity);
}
net.minecraft.world.entity.LivingEntity#dropFromGiftLootTable(ServerLevel,ResourceKey<LootTable>,BiConsumer<ServerLevel, ItemStack>)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1453 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ dropFromGiftLootTable ตาม implementation ของ LivingEntity
ทำงานยังไง
เรียกต่อ: dropFromLootTable(), withParameter(), position(), create().
Parameters
ServerLevel serverLevelResourceKey<LootTable> resourceKeyBiConsumer<ServerLevel, ItemStack> biConsumer
ตัวอย่างใช้งาน
LivingEntity instance = ...;
ServerLevel serverLevel = ...;
ResourceKey<LootTable> resourceKey = ...;
BiConsumer<ServerLevel, ItemStack> biConsumer = ...;
boolean result = instance.dropFromGiftLootTable(serverLevel, resourceKey, biConsumer);
net.minecraft.world.entity.LivingEntity#dropFromLootTable(ServerLevel,DamageSource,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1434 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ dropFromLootTable ตาม implementation ของ LivingEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getLootTable(), isEmpty(), getServer(), reloadableRegistries(), get(), Builder(), withParameter(), position(). สร้างออบเจ็กต์: LootParams.Builder.
Parameters
ServerLevel serverLevelDamageSource damageSourceboolean bl
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
DamageSource damageSource = ...;
@Override
protected void dropFromLootTable(ServerLevel serverLevel, DamageSource damageSource, boolean bl) {
super.dropFromLootTable(serverLevel, damageSource, bl);
}
net.minecraft.world.entity.LivingEntity#dropFromLootTable(ServerLevel,ResourceKey<LootTable>,Function<LootParams.Builder, LootParams>,BiConsumer<ServerLevel, ItemStack>)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1478 - Modifiers:
protected - Return:
boolean
คืออะไร
ดำเนินการ dropFromLootTable ตาม implementation ของ LivingEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getServer(), reloadableRegistries(), getLootTable(), apply(), Builder(), getRandomItems(), isEmpty(), forEach(). สร้างออบเจ็กต์: LootParams.Builder. มีจุด return อย่างน้อย 2 จุด.
Parameters
ServerLevel serverLevelResourceKey<LootTable> resourceKeyFunction<LootParams.Builder, LootParams> functionBiConsumer<ServerLevel, ItemStack> biConsumer
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
ResourceKey<LootTable> resourceKey = ...;
Function<LootParams.Builder, LootParams> function = ...;
BiConsumer<ServerLevel, ItemStack> biConsumer = ...;
@Override
protected boolean dropFromLootTable(ServerLevel serverLevel, ResourceKey<LootTable> resourceKey, Function<LootParams.Builder, LootParams> function, BiConsumer<ServerLevel, ItemStack> biConsumer) {
return super.dropFromLootTable(serverLevel, resourceKey, function, biConsumer);
}
net.minecraft.world.entity.LivingEntity#dropFromShearingLootTable(ServerLevel,ResourceKey<LootTable>,ItemStack,BiConsumer<ServerLevel, ItemStack>)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1464 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ dropFromShearingLootTable ตาม implementation ของ LivingEntity
ทำงานยังไง
เรียกต่อ: dropFromLootTable(), withParameter(), position(), create().
Parameters
ServerLevel serverLevelResourceKey<LootTable> resourceKeyItemStack itemStackBiConsumer<ServerLevel, ItemStack> biConsumer
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
ResourceKey<LootTable> resourceKey = ...;
ItemStack itemStack = ...;
BiConsumer<ServerLevel, ItemStack> biConsumer = ...;
@Override
protected void dropFromShearingLootTable(ServerLevel serverLevel, ResourceKey<LootTable> resourceKey, ItemStack itemStack, BiConsumer<ServerLevel, ItemStack> biConsumer) {
super.dropFromShearingLootTable(serverLevel, resourceKey, itemStack, biConsumer);
}
net.minecraft.world.entity.LivingEntity#equipmentHasChanged(ItemStack,ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2600 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ equipmentHasChanged ตาม implementation ของ LivingEntity
ทำงานยังไง
เรียกต่อ: matches(). คืนค่า: !ItemStack.matches(itemStack2, itemStack).
Parameters
ItemStack itemStackItemStack itemStack2
ตัวอย่างใช้งาน
LivingEntity instance = ...;
ItemStack itemStack = ...;
ItemStack itemStack2 = ...;
boolean result = instance.equipmentHasChanged(itemStack, itemStack2);
net.minecraft.world.entity.LivingEntity#forceAddEffect(MobEffectInstance,Entity)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:965 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ forceAddEffect ตาม implementation ของ LivingEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: canBeAffected(), put(), getEffect(), onEffectAdded(), copyBlendState(), onEffectUpdated().
Parameters
MobEffectInstance mobEffectInstanceEntity entity
ตัวอย่างใช้งาน
LivingEntity instance = ...;
MobEffectInstance mobEffectInstance = ...;
Entity entity = ...;
instance.forceAddEffect(mobEffectInstance, entity);
net.minecraft.world.entity.LivingEntity#getAbsorptionAmount()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3057 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Absorption Amount
ทำงานยังไง
คืนค่า: this.absorptionAmount.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getActiveEffects()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:911 - Modifiers:
public - Return:
Collection<MobEffectInstance>
คืออะไร
อ่านค่า Active Effects
ทำงานยังไง
เรียกต่อ: values(). คืนค่า: this.activeEffects.values().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getActiveEffectsMap()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:915 - Modifiers:
public - Return:
Map<Holder<MobEffect>, MobEffectInstance>
คืออะไร
อ่านค่า Active Effects Map
ทำงานยังไง
คืนค่า: this.activeEffects.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LivingEntity instance = ...;
Map<Holder<MobEffect>, MobEffectInstance> result = instance.getActiveEffectsMap();
net.minecraft.world.entity.LivingEntity#getAgeScale()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:537 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Age Scale
ทำงานยังไง
เรียกต่อ: isBaby(). คืนค่า: this.isBaby() ? 0.5F : 1.0F.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getAllSlots()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2038 - Modifiers:
public - Return:
Iterable<ItemStack>
คืออะไร
อ่านค่า All Slots
ทำงานยังไง
เรียกต่อ: concat(), getHandSlots(), getArmorAndBodyArmorSlots(). คืนค่า: Iterables.concat(this.getHandSlots(), this.getArmorAndBodyArmorSlots()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getArmorAndBodyArmorSlots()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2034 - Modifiers:
public - Return:
Iterable<ItemStack>
คืออะไร
อ่านค่า Armor And Body Armor Slots
ทำงานยังไง
เรียกต่อ: getArmorSlots(). คืนค่า: this.getArmorSlots().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getArmorCoverPercentage()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2046 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Armor Cover Percentage
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getArmorSlots(), isEmpty(). คืนค่า: i > 0 ? (float)j / i : 0.0F.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getArmorSlots()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2024 - Modifiers:
public abstract - Return:
Iterable<ItemStack>
คืออะไร
อ่านค่า Armor Slots
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getArmorValue()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1665 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Armor Value
ทำงานยังไง
เรียกต่อ: floor(), getAttributeValue(). คืนค่า: Mth.floor(this.getAttributeValue(Attributes.ARMOR)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getArrowCount()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1786 - Modifiers:
public final - Return:
int
คืออะไร
อ่านค่า Arrow Count
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_ARROW_COUNT_ID).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getAttackAnim(float)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3014 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Attack Anim
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. คืนค่า: this.oAttackAnim + g * f.
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getAttribute(Holder<Attribute>)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1951 - Modifiers:
public - Return:
AttributeInstance
คืออะไร
อ่านค่า Attribute
ทำงานยังไง
เรียกต่อ: getAttributes(), getInstance(). คืนค่า: this.getAttributes().getInstance(holder).
Parameters
Holder<Attribute> holder
ตัวอย่างใช้งาน
LivingEntity instance = ...;
Holder<Attribute> holder = ...;
AttributeInstance result = instance.getAttribute(holder);
net.minecraft.world.entity.LivingEntity#getAttributeBaseValue(Holder<Attribute>)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1960 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Attribute Base Value
ทำงานยังไง
เรียกต่อ: getAttributes(), getBaseValue(). คืนค่า: this.getAttributes().getBaseValue(holder).
Parameters
Holder<Attribute> holder
ตัวอย่างใช้งาน
LivingEntity instance = ...;
Holder<Attribute> holder = ...;
double result = instance.getAttributeBaseValue(holder);
net.minecraft.world.entity.LivingEntity#getAttributes()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1964 - Modifiers:
public - Return:
AttributeMap
คืออะไร
อ่านค่า Attributes
ทำงานยังไง
คืนค่า: this.attributes.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getAttributeValue(Holder<Attribute>)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1956 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Attribute Value
ทำงานยังไง
เรียกต่อ: getAttributes(), getValue(). คืนค่า: this.getAttributes().getValue(holder).
Parameters
Holder<Attribute> holder
ตัวอย่างใช้งาน
LivingEntity instance = ...;
Holder<Attribute> holder = ...;
double result = instance.getAttributeValue(holder);
net.minecraft.world.entity.LivingEntity#getBaseExperienceReward(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:590 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Base Experience Reward
ทำงานยังไง
คืนค่า: 0.
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
@Override
protected int getBaseExperienceReward(ServerLevel serverLevel) {
return super.getBaseExperienceReward(serverLevel);
}
net.minecraft.world.entity.LivingEntity#getBedOrientation()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3439 - Modifiers:
public - Return:
Direction
คืออะไร
อ่านค่า Bed Orientation
ทำงานยังไง
เรียกต่อ: getSleepingPos(), orElse(), level(). คืนค่า: blockPos != null ? BedBlock.getBedOrientation(this.level(), blockPos) : null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getBlockSpeedFactor()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:500 - Modifiers:
protected - Return:
float
คืออะไร
อ่านค่า Block Speed Factor
ทำงานยังไง
เรียกต่อ: lerp(), getAttributeValue(). คืนค่า: Mth.lerp((float)this.getAttributeValue(Attributes.MOVEMENT_EFFICIENCY), super.getBlockSpeedFactor(), 1.0F).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getBrain()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:284 - Modifiers:
public - Return:
Brain<?>
คืออะไร
อ่านค่า Brain
ทำงานยังไง
คืนค่า: this.brain.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getCombatTracker()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1765 - Modifiers:
public - Return:
CombatTracker
คืออะไร
อ่านค่า Combat Tracker
ทำงานยังไง
คืนค่า: this.combatTracker.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getComfortableFallDistance(float)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1618 - Modifiers:
protected final - Return:
int
คืออะไร
อ่านค่า Comfortable Fall Distance
ทำงานยังไง
เรียกต่อ: floor(). คืนค่า: Mth.floor(f + 3.0F).
Parameters
float f
ตัวอย่างใช้งาน
@Override
protected int getComfortableFallDistance(float f) {
return super.getComfortableFallDistance(f);
}
net.minecraft.world.entity.LivingEntity#getDamageAfterArmorAbsorb(DamageSource,float)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1692 - Modifiers:
protected - Return:
float
คืออะไร
อ่านค่า Damage After Armor Absorb
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: is(), hurtArmor(), getDamageAfterAbsorb(), getArmorValue(), getAttributeValue(). คืนค่า: f.
Parameters
DamageSource damageSourcefloat f
ตัวอย่างใช้งาน
DamageSource damageSource = ...;
@Override
protected float getDamageAfterArmorAbsorb(DamageSource damageSource, float f) {
return super.getDamageAfterArmorAbsorb(damageSource, f);
}
net.minecraft.world.entity.LivingEntity#getDamageAfterMagicAbsorb(DamageSource,float)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1701 - Modifiers:
protected - Return:
float
คืออะไร
อ่านค่า Damage After Magic Absorb
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: is(), hasEffect(), getEffect(), getAmplifier(), max(), awardStat(), round(), getEntity(). มีจุด return อย่างน้อย 4 จุด.
Parameters
DamageSource damageSourcefloat f
ตัวอย่างใช้งาน
DamageSource damageSource = ...;
@Override
protected float getDamageAfterMagicAbsorb(DamageSource damageSource, float f) {
return super.getDamageAfterMagicAbsorb(damageSource, f);
}
net.minecraft.world.entity.LivingEntity#getDeathSound()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1516 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Death Sound
ทำงานยังไง
คืนค่า: SoundEvents.GENERIC_DEATH.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getDefaultDimensions(Pose)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3345 - Modifiers:
protected - Return:
EntityDimensions
คืออะไร
อ่านค่า Default Dimensions
ทำงานยังไง
เรียกต่อ: getType(), getDimensions(), scale(), getAgeScale(). คืนค่า: this.getType().getDimensions().scale(this.getAgeScale()).
Parameters
Pose pose
ตัวอย่างใช้งาน
Pose pose = ...;
@Override
protected EntityDimensions getDefaultDimensions(Pose pose) {
return super.getDefaultDimensions(pose);
}
net.minecraft.world.entity.LivingEntity#getDefaultGravity()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2163 - Modifiers:
protected - Return:
double
คืออะไร
อ่านค่า Default Gravity
ทำงานยังไง
เรียกต่อ: getAttributeValue(). คืนค่า: this.getAttributeValue(Attributes.GRAVITY).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getDimensions(Pose)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3340 - Modifiers:
public final - Return:
EntityDimensions
คืออะไร
อ่านค่า Dimensions
ทำงานยังไง
เรียกต่อ: getDefaultDimensions(), scale(), getScale(). คืนค่า: pose == Pose.SLEEPING ? SLEEPING_DIMENSIONS : this.getDefaultDimensions(pose).scale(this.getScale()).
Parameters
Pose pose
ตัวอย่างใช้งาน
LivingEntity instance = ...;
Pose pose = ...;
EntityDimensions result = instance.getDimensions(pose);
net.minecraft.world.entity.LivingEntity#getDismountPoses()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3349 - Modifiers:
public - Return:
ImmutableList<Pose>
คืออะไร
อ่านค่า Dismount Poses
ทำงานยังไง
เรียกต่อ: of(). คืนค่า: ImmutableList.of(Pose.STANDING).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getEffect(Holder<MobEffect>)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:923 - Modifiers:
public - Return:
MobEffectInstance
คืออะไร
อ่านค่า Effect
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.activeEffects.get(holder).
Parameters
Holder<MobEffect> holder
ตัวอย่างใช้งาน
LivingEntity instance = ...;
Holder<MobEffect> holder = ...;
MobEffectInstance result = instance.getEffect(holder);
net.minecraft.world.entity.LivingEntity#getEffectiveGravity()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2168 - Modifiers:
protected - Return:
double
คืออะไร
อ่านค่า Effective Gravity
ทำงานยังไง
เรียกต่อ: getDeltaMovement(), hasEffect(), min(), getGravity(). คืนค่า: bl && this.hasEffect(MobEffects.SLOW_FALLING) ? Math.min(this.getGravity(), 0.01) : this.getGravity().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getEquipmentSlotForItem(ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3505 - Modifiers:
public final - Return:
EquipmentSlot
คืออะไร
อ่านค่า Equipment Slot For Item
ทำงานยังไง
เรียกต่อ: get(), canUseSlot(), slot(). คืนค่า: equippable != null && this.canUseSlot(equippable.slot()) ? equippable.slot() : EquipmentSlot.MAINHAND.
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
LivingEntity instance = ...;
ItemStack itemStack = ...;
EquipmentSlot result = instance.getEquipmentSlotForItem(itemStack);
net.minecraft.world.entity.LivingEntity#getExperienceReward(ServerLevel,Entity)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:586 - Modifiers:
public final - Return:
int
คืออะไร
อ่านค่า Experience Reward
ทำงานยังไง
เรียกต่อ: processMobExperience(), getBaseExperienceReward(). คืนค่า: EnchantmentHelper.processMobExperience(serverLevel, entity, this, this.getBaseExperienceReward(serverLevel)).
Parameters
ServerLevel serverLevelEntity entity
ตัวอย่างใช้งาน
LivingEntity instance = ...;
ServerLevel serverLevel = ...;
Entity entity = ...;
int result = instance.getExperienceReward(serverLevel, entity);
net.minecraft.world.entity.LivingEntity#getFallFlyingTicks()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3275 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Fall Flying Ticks
ทำงานยังไง
คืนค่า: this.fallFlyTicks.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getFallSounds()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1556 - Modifiers:
public - Return:
LivingEntity.Fallsounds
คืออะไร
อ่านค่า Fall Sounds
ทำงานยังไง
เรียกต่อ: Fallsounds(). สร้างออบเจ็กต์: LivingEntity.Fallsounds. คืนค่า: new LivingEntity.Fallsounds(SoundEvents.GENERIC_SMALL_FALL, SoundEvents.GENERIC_BIG_FALL).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getFluidFallingAdjustedMovement(double,boolean,Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2359 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Fluid Falling Adjusted Movement
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isSprinting(), abs(). สร้างออบเจ็กต์: Vec3. มีจุด return อย่างน้อย 2 จุด.
Parameters
double dboolean blVec3 vec3
ตัวอย่างใช้งาน
LivingEntity instance = ...;
Vec3 vec3 = ...;
Vec3 result = instance.getFluidFallingAdjustedMovement(0.0D, true, vec3);
net.minecraft.world.entity.LivingEntity#getFlyingSpeed()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2395 - Modifiers:
protected - Return:
float
คืออะไร
อ่านค่า Flying Speed
ทำงานยังไง
เรียกต่อ: getControllingPassenger(), getSpeed(). คืนค่า: this.getControllingPassenger() instanceof Player ? this.getSpeed() * 0.1F : 0.02F.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getHandSlots()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2030 - Modifiers:
public - Return:
Iterable<ItemStack>
คืออะไร
อ่านค่า Hand Slots
ทำงานยังไง
เรียกต่อ: of(). คืนค่า: List.of().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getHealth()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1074 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Health
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_HEALTH_ID).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getHitbox()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1537 - Modifiers:
protected - Return:
AABB
คืออะไร
อ่านค่า Hitbox
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getBoundingBox(), getVehicle(), getPassengerRidingPosition(), setMinY(), max(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getHurtDir()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1533 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Hurt Dir
ทำงานยังไง
คืนค่า: 0.0F.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getHurtSound(DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1511 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Hurt Sound
ทำงานยังไง
คืนค่า: SoundEvents.GENERIC_HURT.
Parameters
DamageSource damageSource
ตัวอย่างใช้งาน
DamageSource damageSource = ...;
@Override
protected SoundEvent getHurtSound(DamageSource damageSource) {
return super.getHurtSound(damageSource);
}
net.minecraft.world.entity.LivingEntity#getItemBlockingWith()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3248 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Item Blocking With
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isUsingItem(), isEmpty(), getItem(), getUseAnimation(), getUseDuration(). มีจุด return อย่างน้อย 3 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getItemBySlot(EquipmentSlot)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2026 - Modifiers:
public abstract - Return:
ItemStack
คืออะไร
อ่านค่า Item By Slot
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
EquipmentSlot equipmentSlot
ตัวอย่างใช้งาน
LivingEntity instance = ...;
EquipmentSlot equipmentSlot = ...;
ItemStack result = instance.getItemBySlot(equipmentSlot);
net.minecraft.world.entity.LivingEntity#getItemHeldByArm(HumanoidArm)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1976 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Item Held By Arm
ทำงานยังไง
เรียกต่อ: getMainArm(), getMainHandItem(), getOffhandItem(). คืนค่า: this.getMainArm() == humanoidArm ? this.getMainHandItem() : this.getOffhandItem().
Parameters
HumanoidArm humanoidArm
ตัวอย่างใช้งาน
LivingEntity instance = ...;
HumanoidArm humanoidArm = ...;
ItemStack result = instance.getItemHeldByArm(humanoidArm);
net.minecraft.world.entity.LivingEntity#getItemInHand(InteractionHand)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1994 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Item In Hand
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getItemBySlot(). สร้างออบเจ็กต์: IllegalArgumentException. มีจุด return อย่างน้อย 2 จุด.
Parameters
InteractionHand interactionHand
ตัวอย่างใช้งาน
LivingEntity instance = ...;
InteractionHand interactionHand = ...;
ItemStack result = instance.getItemInHand(interactionHand);
net.minecraft.world.entity.LivingEntity#getJumpBoostPower()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2128 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Jump Boost Power
ทำงานยังไง
เรียกต่อ: hasEffect(), getEffect(), getAmplifier(). คืนค่า: this.hasEffect(MobEffects.JUMP) ? 0.1F * (this.getEffect(MobEffects.JUMP).getAmplifier() + 1.0F) : 0.0F.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getJumpPower()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2120 - Modifiers:
protected - Return:
float
คืออะไร
อ่านค่า Jump Power
ทำงานยังไง
คืนค่า: this.getJumpPower(1.0F).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getJumpPower(float)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2124 - Modifiers:
protected - Return:
float
คืออะไร
อ่านค่า Jump Power
ทำงานยังไง
เรียกต่อ: getAttributeValue(), getBlockJumpFactor(), getJumpBoostPower(). คืนค่า: (float)this.getAttributeValue(Attributes.JUMP_STRENGTH) * f * this.getBlockJumpFactor() + this.getJumpBoostPower().
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getKillCredit()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1769 - Modifiers:
public - Return:
LivingEntity
คืออะไร
อ่านค่า Kill Credit
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getKnockback(Entity,DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1429 - Modifiers:
protected - Return:
float
คืออะไร
อ่านค่า Knockback
ทำงานยังไง
เรียกต่อ: getAttributeValue(), level(), modifyKnockback(), getWeaponItem(). คืนค่า: this.level() instanceof ServerLevel serverLevel ? EnchantmentHelper.modifyKnockback(serverLevel, this.getWeaponItem(), entity, damageSource, f) : f.
Parameters
Entity entityDamageSource damageSource
ตัวอย่างใช้งาน
Entity entity = ...;
DamageSource damageSource = ...;
@Override
protected float getKnockback(Entity entity, DamageSource damageSource) {
return super.getKnockback(entity, damageSource);
}
net.minecraft.world.entity.LivingEntity#getLastAttacker()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:603 - Modifiers:
public - Return:
LivingEntity
คืออะไร
อ่านค่า Last Attacker
ทำงานยังไง
เรียกต่อ: getLastHurtByMob(). คืนค่า: this.getLastHurtByMob().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getLastClimbablePos()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1560 - Modifiers:
public - Return:
Optional<BlockPos>
คืออะไร
อ่านค่า Last Climbable Pos
ทำงานยังไง
คืนค่า: this.lastClimbablePos.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getLastDamageSource()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1292 - Modifiers:
public - Return:
DamageSource
คืออะไร
อ่านค่า Last Damage Source
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: lastDamageSource. เรียกต่อ: level(), getGameTime(). คืนค่า: this.lastDamageSource.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getLastHurtByMob()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:598 - Modifiers:
public - Return:
LivingEntity
คืออะไร
อ่านค่า Last Hurt By Mob
ทำงานยังไง
คืนค่า: this.lastHurtByMob.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getLastHurtByMobTimestamp()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:608 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Last Hurt By Mob Timestamp
ทำงานยังไง
คืนค่า: this.lastHurtByMobTimestamp.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getLastHurtByPlayerTime()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3633 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Last Hurt By Player Time
ทำงานยังไง
คืนค่า: this.lastHurtByPlayerTime.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getLastHurtMob()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:622 - Modifiers:
public - Return:
LivingEntity
คืออะไร
อ่านค่า Last Hurt Mob
ทำงานยังไง
คืนค่า: this.lastHurtMob.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getLastHurtMobTimestamp()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:627 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Last Hurt Mob Timestamp
ทำงานยังไง
คืนค่า: this.lastHurtMobTimestamp.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getLocalBoundsForPose(Pose)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3353 - Modifiers:
public - Return:
AABB
คืออะไร
อ่านค่า Local Bounds For Pose
ทำงานยังไง
เรียกต่อ: getDimensions(), width(), height(). สร้างออบเจ็กต์: AABB.
Parameters
Pose pose
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getLootTableSeed()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1425 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า Loot Table Seed
ทำงานยังไง
คืนค่า: 0L.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getMainArm()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3079 - Modifiers:
public abstract - Return:
HumanoidArm
คืออะไร
อ่านค่า Main Arm
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getMainHandItem()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1968 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Main Hand Item
ทำงานยังไง
เรียกต่อ: getItemBySlot(). คืนค่า: this.getItemBySlot(EquipmentSlot.MAINHAND).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getMaxAbsorption()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1782 - Modifiers:
public final - Return:
float
คืออะไร
อ่านค่า Max Absorption
ทำงานยังไง
เรียกต่อ: getAttributeValue(). คืนค่า: (float)this.getAttributeValue(Attributes.MAX_ABSORPTION).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getMaxFallDistance()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1613 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Max Fall Distance
ทำงานยังไง
เรียกต่อ: getComfortableFallDistance(). คืนค่า: this.getComfortableFallDistance(0.0F).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getMaxHeadRotationRelativeToBody()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2671 - Modifiers:
protected - Return:
float
คืออะไร
อ่านค่า Max Head Rotation Relative To Body
ทำงานยังไง
คืนค่า: 50.0F.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
@Override
protected float getMaxHeadRotationRelativeToBody() {
return super.getMaxHeadRotationRelativeToBody();
}
net.minecraft.world.entity.LivingEntity#getMaxHealth()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1778 - Modifiers:
public final - Return:
float
คืออะไร
อ่านค่า Max Health
ทำงานยังไง
เรียกต่อ: getAttributeValue(). คืนค่า: (float)this.getAttributeValue(Attributes.MAX_HEALTH).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getNoActionTime()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:641 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า No Action Time
ทำงานยังไง
คืนค่า: this.noActionTime.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getOffhandItem()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1972 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Offhand Item
ทำงานยังไง
เรียกต่อ: getItemBySlot(). คืนค่า: this.getItemBySlot(EquipmentSlot.OFFHAND).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getPassengerRidingPosition(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3602 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Passenger Riding Position
ทำงานยังไง
เรียกต่อ: position(), add(), getPassengerAttachmentPoint(), getDimensions(), getPose(), getScale(), getAgeScale(). คืนค่า: this.position().add(this.getPassengerAttachmentPoint(entity, this.getDimensions(this.getPose()), this.getScale() * this.getAgeScale())).
Parameters
Entity entity
ตัวอย่างใช้งาน
LivingEntity instance = ...;
Entity entity = ...;
Vec3 result = instance.getPassengerRidingPosition(entity);
net.minecraft.world.entity.LivingEntity#getPreciseBodyRotation(float)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3168 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Precise Body Rotation
ทำงานยังไง
เรียกต่อ: lerp(). คืนค่า: Mth.lerp(f, this.yBodyRotO, this.yBodyRot).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getProjectile(ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3450 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Projectile
ทำงานยังไง
คืนค่า: ItemStack.EMPTY.
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
LivingEntity instance = ...;
ItemStack itemStack = ...;
ItemStack result = instance.getProjectile(itemStack);
net.minecraft.world.entity.LivingEntity#getRelativePortalPosition(Direction.Axis,BlockUtil.FoundRectangle)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3048 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Relative Portal Position
ทำงานยังไง
เรียกต่อ: resetForwardDirectionOfRelativePortalPosition(). คืนค่า: resetForwardDirectionOfRelativePortalPosition(super.getRelativePortalPosition(axis, foundRectangle)).
Parameters
Direction.Axis axisBlockUtil.FoundRectangle foundRectangle
ตัวอย่างใช้งาน
LivingEntity instance = ...;
Direction.Axis axis = ...;
BlockUtil.FoundRectangle foundRectangle = ...;
Vec3 result = instance.getRelativePortalPosition(axis, foundRectangle);
net.minecraft.world.entity.LivingEntity#getRiddenInput(Player,Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2324 - Modifiers:
protected - Return:
Vec3
คืออะไร
อ่านค่า Ridden Input
ทำงานยังไง
คืนค่า: vec3.
Parameters
Player playerVec3 vec3
ตัวอย่างใช้งาน
Player player = ...;
Vec3 vec3 = ...;
@Override
protected Vec3 getRiddenInput(Player player, Vec3 vec3) {
return super.getRiddenInput(player, vec3);
}
net.minecraft.world.entity.LivingEntity#getRiddenSpeed(Player)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2328 - Modifiers:
protected - Return:
float
คืออะไร
อ่านค่า Ridden Speed
ทำงานยังไง
เรียกต่อ: getSpeed(). คืนค่า: this.getSpeed().
Parameters
Player player
ตัวอย่างใช้งาน
Player player = ...;
@Override
protected float getRiddenSpeed(Player player) {
return super.getRiddenSpeed(player);
}
net.minecraft.world.entity.LivingEntity#getScale()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:541 - Modifiers:
public final - Return:
float
คืออะไร
อ่านค่า Scale
ทำงานยังไง
เรียกต่อ: getAttributes(), sanitizeScale(), getValue(). คืนค่า: attributeMap == null ? 1.0F : this.sanitizeScale((float)attributeMap.getValue(Attributes.SCALE)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getSleepingPos()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3375 - Modifiers:
public - Return:
Optional<BlockPos>
คืออะไร
อ่านค่า Sleeping Pos
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(SLEEPING_POS_ID).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getSlot(int)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3544 - Modifiers:
public - Return:
SlotAccess
คืออะไร
อ่านค่า Slot
ทำงานยังไง
เรียกต่อ: getEquipmentSlot(), createEquipmentSlotAccess(). คืนค่า: equipmentSlot != null ? createEquipmentSlotAccess(this, equipmentSlot) : super.getSlot(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getSlotForHand(InteractionHand)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3481 - Modifiers:
public static - Return:
EquipmentSlot
คืออะไร
อ่านค่า Slot For Hand
ทำงานยังไง
คืนค่า: interactionHand == InteractionHand.MAIN_HAND ? EquipmentSlot.MAINHAND : EquipmentSlot.OFFHAND.
Parameters
InteractionHand interactionHand
ตัวอย่างใช้งาน
InteractionHand interactionHand = ...;
EquipmentSlot result = LivingEntity.getSlotForHand(interactionHand);
net.minecraft.world.entity.LivingEntity#getSoundVolume()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2072 - Modifiers:
protected - Return:
float
คืออะไร
อ่านค่า Sound Volume
ทำงานยังไง
คืนค่า: 1.0F.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getSpeed()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2399 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Speed
ทำงานยังไง
คืนค่า: this.speed.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getStingerCount()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1794 - Modifiers:
public final - Return:
int
คืออะไร
อ่านค่า Stinger Count
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entityData.get(DATA_STINGER_COUNT_ID).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getSwimAmount(float)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:377 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Swim Amount
ทำงานยังไง
เรียกต่อ: lerp(). คืนค่า: Mth.lerp(f, this.swimAmountO, this.swimAmount).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getTicksUsingItem()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3216 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Ticks Using Item
ทำงานยังไง
เรียกต่อ: isUsingItem(), getUseDuration(), getUseItemRemainingTicks(). คืนค่า: this.isUsingItem() ? this.useItem.getUseDuration(this) - this.getUseItemRemainingTicks() : 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getUsedItemHand()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3085 - Modifiers:
public - Return:
InteractionHand
คืออะไร
อ่านค่า Used Item Hand
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: (this.entityData.get(DATA_LIVING_ENTITY_FLAGS) & 2) > 0 ? InteractionHand.OFF_HAND : InteractionHand.MAIN_HAND.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getUseItem()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3208 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Use Item
ทำงานยังไง
คืนค่า: this.useItem.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getUseItemRemainingTicks()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3212 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Use Item Remaining Ticks
ทำงานยังไง
คืนค่า: this.useItemRemaining.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getViewYRot(float)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3009 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า View YRot
ทำงานยังไง
เรียกต่อ: rotLerp(). คืนค่า: f == 1.0F ? this.yHeadRot : Mth.rotLerp(f, this.yHeadRotO, this.yHeadRot).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getVisibilityPercent(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:840 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Visibility Percent
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isDiscrete(), isInvisible(), getArmorCoverPercentage(), getItemBySlot(), getType(), is(). คืนค่า: d.
Parameters
Entity entity
ตัวอย่างใช้งาน
LivingEntity instance = ...;
Entity entity = ...;
double result = instance.getVisibilityPercent(entity);
net.minecraft.world.entity.LivingEntity#getVisualRotationYInDegrees()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3569 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Visual Rotation YIn Degrees
ทำงานยังไง
คืนค่า: this.yBodyRot.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getVoicePitch()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2076 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Voice Pitch
ทำงานยังไง
เรียกต่อ: isBaby(), nextFloat(). คืนค่า: this.isBaby() ? (this.random.nextFloat() - this.random.nextFloat()) * 0.2F + 1.5F : (this.random.nextFloat() - this.random.nextFloat()) * 0.2F + 1.0F.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getWaterSlowDown()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2155 - Modifiers:
protected - Return:
float
คืออะไร
อ่านค่า Water Slow Down
ทำงานยังไง
คืนค่า: 0.8F.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getWeaponItem()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1980 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Weapon Item
ทำงานยังไง
เรียกต่อ: getMainHandItem(). คืนค่า: this.getMainHandItem().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#getYHeadRot()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3033 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า YHead Rot
ทำงานยังไง
คืนค่า: this.yHeadRot.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#goDownInWater()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2147 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ goDownInWater ตาม implementation ของ LivingEntity
ทำงานยังไง
เรียกต่อ: setDeltaMovement(), getDeltaMovement(), add().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#handleDamageEvent(DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1831 - Modifiers:
public - Return:
void
คืออะไร
จัดการ Damage Event
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: invulnerableTime, hurtDuration, hurtTime, lastDamageSource, lastDamageStamp. เรียกต่อ: setSpeed(), getHurtSound(), playSound(), getSoundVolume(), nextFloat(), level(), getGameTime().
Parameters
DamageSource damageSource
ตัวอย่างใช้งาน
LivingEntity instance = ...;
DamageSource damageSource = ...;
instance.handleDamageEvent(damageSource);
net.minecraft.world.entity.LivingEntity#handleEntityEvent(byte)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1846 - Modifiers:
public - Return:
void
คืออะไร
จัดการ Entity Event
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; แยกกรณีด้วย switch ; มีการวนลูป. เรียกต่อ: getDeathSound(), playSound(), getSoundVolume(), nextFloat(), setHealth(), die(), damageSources(), generic().
Parameters
byte b
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#handleExtraItemsCreatedOnUse(ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3205 - Modifiers:
public - Return:
void
คืออะไร
จัดการ Extra Items Created On Use
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
LivingEntity instance = ...;
ItemStack itemStack = ...;
instance.handleExtraItemsCreatedOnUse(itemStack);
net.minecraft.world.entity.LivingEntity#hasEffect(Holder<MobEffect>)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:919 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Effect
ทำงานยังไง
เรียกต่อ: containsKey(). คืนค่า: this.activeEffects.containsKey(holder).
Parameters
Holder<MobEffect> holder
ตัวอย่างใช้งาน
LivingEntity instance = ...;
Holder<MobEffect> holder = ...;
boolean result = instance.hasEffect(holder);
net.minecraft.world.entity.LivingEntity#hasInfiniteMaterials()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3616 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Infinite Materials
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#hasItemInSlot(EquipmentSlot)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2016 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Item In Slot
ทำงานยังไง
เรียกต่อ: getItemBySlot(), isEmpty(). คืนค่า: !this.getItemBySlot(equipmentSlot).isEmpty().
Parameters
EquipmentSlot equipmentSlot
ตัวอย่างใช้งาน
LivingEntity instance = ...;
EquipmentSlot equipmentSlot = ...;
boolean result = instance.hasItemInSlot(equipmentSlot);
net.minecraft.world.entity.LivingEntity#hasLandedInLiquid()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:381 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Landed In Liquid
ทำงานยังไง
เรียกต่อ: getDeltaMovement(), y(), isInLiquid(). คืนค่า: this.getDeltaMovement().y() < 1.0E-5F && this.isInLiquid().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#hasLineOfSight(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2995 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Line Of Sight
ทำงานยังไง
เรียกต่อ: getEyeY(). คืนค่า: this.hasLineOfSight(entity, ClipContext.Block.COLLIDER, ClipContext.Fluid.NONE, entity.getEyeY()).
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#hasLineOfSight(Entity,ClipContext.Block,ClipContext.Fluid,double)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2999 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Line Of Sight
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), getX(), getEyeY(), getZ(), distanceTo(), clip(), getType(). สร้างออบเจ็กต์: Vec3, ClipContext. มีจุด return อย่างน้อย 2 จุด.
Parameters
Entity entityClipContext.Block blockClipContext.Fluid fluiddouble d
ตัวอย่างใช้งาน
LivingEntity instance = ...;
Entity entity = ...;
ClipContext.Block block = ...;
ClipContext.Fluid fluid = ...;
boolean result = instance.hasLineOfSight(entity, block, fluid, 0.0D);
net.minecraft.world.entity.LivingEntity#heal(float)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1067 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ heal ตาม implementation ของ LivingEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getHealth(), setHealth().
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#hurtArmor(DamageSource,float)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1669 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผลความเสียหาย Armor
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
DamageSource damageSourcefloat f
ตัวอย่างใช้งาน
LivingEntity instance = ...;
DamageSource damageSource = ...;
instance.hurtArmor(damageSource, 0.0F);
net.minecraft.world.entity.LivingEntity#hurtCurrentlyUsedShield(float)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1675 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผลความเสียหาย Currently Used Shield
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#hurtHelmet(DamageSource,float)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1672 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผลความเสียหาย Helmet
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
DamageSource damageSourcefloat f
ตัวอย่างใช้งาน
LivingEntity instance = ...;
DamageSource damageSource = ...;
instance.hurtHelmet(damageSource, 0.0F);
net.minecraft.world.entity.LivingEntity#hurtServer(ServerLevel,DamageSource,float)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1086 - Modifiers:
public - Return:
boolean
คืออะไร
ประมวลผลความเสียหาย Server
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: noActionTime, lastHurt, invulnerableTime, hurtDuration, hurtTime, lastDamageSource. เรียกต่อ: isInvulnerableTo(), isDeadOrDying(), is(), hasEffect(), isSleeping(), stopSleeping(), isDamageSourceBlocked(), hurtCurrentlyUsedShield(). มีจุด return อย่างน้อย 5 จุด.
Parameters
ServerLevel serverLevelDamageSource damageSourcefloat f
ตัวอย่างใช้งาน
LivingEntity instance = ...;
ServerLevel serverLevel = ...;
DamageSource damageSource = ...;
boolean result = instance.hurtServer(serverLevel, damageSource, 0.0F);
net.minecraft.world.entity.LivingEntity#igniteForTicks(int)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3611 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ igniteForTicks ตาม implementation ของ LivingEntity
ทำงานยังไง
เรียกต่อ: ceil(), getAttributeValue().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#increaseAirSupply(int)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:582 - Modifiers:
protected - Return:
int
คืออะไร
ดำเนินการ increaseAirSupply ตาม implementation ของ LivingEntity
ทำงานยังไง
เรียกต่อ: min(), getMaxAirSupply(). คืนค่า: Math.min(i + 4, this.getMaxAirSupply()).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#indicateDamage(double,double)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1508 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ indicateDamage ตาม implementation ของ LivingEntity
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
double ddouble e
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#internalSetAbsorptionAmount(float)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3065 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ internalSetAbsorptionAmount ตาม implementation ของ LivingEntity
ทำงานยังไง
แก้ state: absorptionAmount.
Parameters
float f
ตัวอย่างใช้งาน
@Override
protected void internalSetAbsorptionAmount(float f) {
super.internalSetAbsorptionAmount(f);
}
net.minecraft.world.entity.LivingEntity#isAffectedByFluids()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:550 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Affected By Fluids
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#isAffectedByPotions()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3325 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Affected By Potions
ทำงานยังไง
เรียกต่อ: isDeadOrDying(). คืนค่า: !this.isDeadOrDying().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#isAlive()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1591 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Alive
ทำงานยังไง
เรียกต่อ: isRemoved(), getHealth(). คืนค่า: !this.isRemoved() && this.getHealth() > 0.0F.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#isAlwaysExperienceDropper()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:594 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Always Experience Dropper
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
@Override
protected boolean isAlwaysExperienceDropper() {
return super.isAlwaysExperienceDropper();
}
net.minecraft.world.entity.LivingEntity#isAutoSpinAttack()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2909 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Auto Spin Attack
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: (this.entityData.get(DATA_LIVING_ENTITY_FLAGS) & 4) != 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#isBaby()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:533 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Baby
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#isBlocking()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3244 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Blocking
ทำงานยังไง
เรียกต่อ: getItemBlockingWith(). คืนค่า: this.getItemBlockingWith() != null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#isCurrentlyGlowing()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3564 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Currently Glowing
ทำงานยังไง
เรียกต่อ: level(), isClientSide(), hasEffect(). คืนค่า: !this.level().isClientSide() && this.hasEffect(MobEffects.GLOWING) || super.isCurrentlyGlowing().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#isDamageSourceBlocked(DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1311 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Damage Source Blocked
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getDirectEntity(), getPierceLevel(), getItemBlockingWith(), is(), getItem(), getSourcePosition(), calculateViewVector(), getYHeadRot(). สร้างออบเจ็กต์: Vec3. มีจุด return อย่างน้อย 2 จุด.
Parameters
DamageSource damageSource
ตัวอย่างใช้งาน
LivingEntity instance = ...;
DamageSource damageSource = ...;
boolean result = instance.isDamageSourceBlocked(damageSource);
net.minecraft.world.entity.LivingEntity#isDeadOrDying()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1082 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Dead Or Dying
ทำงานยังไง
เรียกต่อ: getHealth(). คืนค่า: this.getHealth() <= 0.0F.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#isEquippableInSlot(ItemStack,EquipmentSlot)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3510 - Modifiers:
public final - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Equippable In Slot
ทำงานยังไง
เรียกต่อ: get(), canUseSlot(), slot(), canBeEquippedBy(), getType().
Parameters
ItemStack itemStackEquipmentSlot equipmentSlot
ตัวอย่างใช้งาน
LivingEntity instance = ...;
ItemStack itemStack = ...;
EquipmentSlot equipmentSlot = ...;
boolean result = instance.isEquippableInSlot(itemStack, equipmentSlot);
net.minecraft.world.entity.LivingEntity#isFallFlying()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3266 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Fall Flying
ทำงานยังไง
เรียกต่อ: getSharedFlag(). คืนค่า: this.getSharedFlag(7).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#isHolding(Item)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1986 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Holding
ทำงานยังไง
เรียกต่อ: is(). คืนค่า: this.isHolding(itemStack -> itemStack.is(item)).
Parameters
Item item
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#isHolding(Predicate<ItemStack>)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1990 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Holding
ทำงานยังไง
เรียกต่อ: test(), getMainHandItem(), getOffhandItem(). คืนค่า: predicate.test(this.getMainHandItem()) || predicate.test(this.getOffhandItem()).
Parameters
Predicate<ItemStack> predicate
ตัวอย่างใช้งาน
LivingEntity instance = ...;
Predicate<ItemStack> predicate = ...;
boolean result = instance.isHolding(predicate);
net.minecraft.world.entity.LivingEntity#isImmobile()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2080 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Immobile
ทำงานยังไง
เรียกต่อ: isDeadOrDying(). คืนค่า: this.isDeadOrDying().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#isInvertedHealAndHarm()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:977 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Inverted Heal And Harm
ทำงานยังไง
เรียกต่อ: getType(), is(). คืนค่า: this.getType().is(EntityTypeTags.INVERTED_HEALING_AND_HARM).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#isInvulnerableTo(ServerLevel,DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3620 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Invulnerable To
ทำงานยังไง
เรียกต่อ: isInvulnerableToBase(), isImmuneToDamage(). คืนค่า: this.isInvulnerableToBase(damageSource) || EnchantmentHelper.isImmuneToDamage(serverLevel, this, damageSource).
Parameters
ServerLevel serverLevelDamageSource damageSource
ตัวอย่างใช้งาน
LivingEntity instance = ...;
ServerLevel serverLevel = ...;
DamageSource damageSource = ...;
boolean result = instance.isInvulnerableTo(serverLevel, damageSource);
net.minecraft.world.entity.LivingEntity#isInWall()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3445 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ In Wall
ทำงานยังไง
เรียกต่อ: isSleeping(). คืนค่า: !this.isSleeping() && super.isInWall().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#isLookingAtMe(LivingEntity,double,boolean,boolean,double[])
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1596 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Looking At Me
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getViewVector(), normalize(), getX(), getEyeY(), getZ(), length(), dot(), hasLineOfSight(). สร้างออบเจ็กต์: Vec3. มีจุด return อย่างน้อย 2 จุด.
Parameters
LivingEntity livingEntitydouble dboolean blboolean bl2double[] ds
ตัวอย่างใช้งาน
LivingEntity instance = ...;
LivingEntity livingEntity = ...;
double[] ds = ...;
boolean result = instance.isLookingAtMe(livingEntity, 0.0D, true, true, ds);
net.minecraft.world.entity.LivingEntity#isPickable()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3023 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Pickable
ทำงานยังไง
เรียกต่อ: isRemoved(). คืนค่า: !this.isRemoved().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#isPushable()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3028 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Pushable
ทำงานยังไง
เรียกต่อ: isAlive(), isSpectator(), onClimbable(). คืนค่า: this.isAlive() && !this.isSpectator() && !this.onClimbable().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#isSensitiveToWater()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2805 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Sensitive To Water
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#isSleeping()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3387 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Sleeping
ทำงานยังไง
เรียกต่อ: getSleepingPos(), isPresent(). คืนค่า: this.getSleepingPos().isPresent().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#isSuppressingSlidingDownLadder()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3262 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Suppressing Sliding Down Ladder
ทำงานยังไง
เรียกต่อ: isShiftKeyDown(). คืนค่า: this.isShiftKeyDown().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#isUsingItem()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3081 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Using Item
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: (this.entityData.get(DATA_LIVING_ENTITY_FLAGS) & 1) > 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#isVisuallySwimming()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3270 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Visually Swimming
ทำงานยังไง
เรียกต่อ: isFallFlying(), hasPose(). คืนค่า: super.isVisuallySwimming() || !this.isFallFlying() && this.hasPose(Pose.FALL_FLYING).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#jumpFromGround()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2132 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ jumpFromGround ตาม implementation ของ LivingEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: hasImpulse. เรียกต่อ: getJumpPower(), getDeltaMovement(), setDeltaMovement(), max(), isSprinting(), getYRot(), addDeltaMovement(), sin(). สร้างออบเจ็กต์: Vec3.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#jumpInLiquid(TagKey<Fluid>)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2151 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ jumpInLiquid ตาม implementation ของ LivingEntity
ทำงานยังไง
เรียกต่อ: setDeltaMovement(), getDeltaMovement(), add().
Parameters
TagKey<Fluid> tagKey
ตัวอย่างใช้งาน
TagKey<Fluid> tagKey = ...;
@Override
protected void jumpInLiquid(TagKey<Fluid> tagKey) {
super.jumpInLiquid(tagKey);
}
net.minecraft.world.entity.LivingEntity#kill(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:296 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ kill ตาม implementation ของ LivingEntity
ทำงานยังไง
เรียกต่อ: hurtServer(), damageSources(), genericKill().
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#knockback(double,double,double)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1492 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ knockback ตาม implementation ของ LivingEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: hasImpulse. เรียกต่อ: getAttributeValue(), getDeltaMovement(), random(), normalize(), scale(), setDeltaMovement(), onGround(), min(). สร้างออบเจ็กต์: Vec3.
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#lerpHeadRotationStep(int,double)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3607 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ lerpHeadRotationStep ตาม implementation ของ LivingEntity
ทำงานยังไง
แก้ state: yHeadRot. เรียกต่อ: rotLerp().
Parameters
int idouble d
ตัวอย่างใช้งาน
@Override
protected void lerpHeadRotationStep(int i, double d) {
super.lerpHeadRotationStep(i, d);
}
net.minecraft.world.entity.LivingEntity#lerpHeadTo(float,int)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2970 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ lerpHeadTo ตาม implementation ของ LivingEntity
ทำงานยังไง
แก้ state: lerpYHeadRot, lerpHeadSteps.
Parameters
float fint i
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#lerpTargetX()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2945 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ lerpTargetX ตาม implementation ของ LivingEntity
ทำงานยังไง
เรียกต่อ: getX(). คืนค่า: this.lerpSteps > 0 ? this.lerpX : this.getX().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#lerpTargetXRot()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2960 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ lerpTargetXRot ตาม implementation ของ LivingEntity
ทำงานยังไง
เรียกต่อ: getXRot(). คืนค่า: this.lerpSteps > 0 ? (float)this.lerpXRot : this.getXRot().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#lerpTargetY()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2950 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ lerpTargetY ตาม implementation ของ LivingEntity
ทำงานยังไง
เรียกต่อ: getY(). คืนค่า: this.lerpSteps > 0 ? this.lerpY : this.getY().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#lerpTargetYRot()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2965 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ lerpTargetYRot ตาม implementation ของ LivingEntity
ทำงานยังไง
เรียกต่อ: getYRot(). คืนค่า: this.lerpSteps > 0 ? (float)this.lerpYRot : this.getYRot().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#lerpTargetZ()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2955 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ lerpTargetZ ตาม implementation ของ LivingEntity
ทำงานยังไง
เรียกต่อ: getZ(). คืนค่า: this.lerpSteps > 0 ? this.lerpZ : this.getZ().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#lerpTo(double,double,double,float,float,int)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2935 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ lerpTo ตาม implementation ของ LivingEntity
ทำงานยังไง
แก้ state: lerpX, lerpY, lerpZ, lerpYRot, lerpXRot, lerpSteps.
Parameters
double ddouble edouble ffloat gfloat hint i
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#LivingEntity(EntityType<? extends LivingEntity>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:270 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LivingEntity ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: attributes, blocksBuilding, rotA, timeOffs, yHeadRot, brain. เรียกต่อ: getSupplier(), setHealth(), getMaxHealth(), random(), reapplyPosition(), setYRot(), getYRot(), makeBrain(). สร้างออบเจ็กต์: AttributeMap, Dynamic<>.
Parameters
EntityType<? extends LivingEntity> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<? extends LivingEntity> entityType = ...;
Level level = ...;
LivingEntity instance = new LivingEntity(entityType, level);
net.minecraft.world.entity.LivingEntity#lookAt(EntityAnchorArgument.Anchor,Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3160 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ lookAt ตาม implementation ของ LivingEntity
ทำงานยังไง
แก้ state: yHeadRotO, yBodyRot, yBodyRotO.
Parameters
EntityAnchorArgument.Anchor anchorVec3 vec3
ตัวอย่างใช้งาน
LivingEntity instance = ...;
EntityAnchorArgument.Anchor anchor = ...;
Vec3 vec3 = ...;
instance.lookAt(anchor, vec3);
net.minecraft.world.entity.LivingEntity#makeBrain(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:292 - Modifiers:
protected - Return:
Brain<?>
คืออะไร
สร้าง Brain
ทำงานยังไง
เรียกต่อ: brainProvider(). คืนค่า: this.brainProvider().makeBrain(dynamic).
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
Dynamic<?> dynamic = ...;
@Override
protected Brain<?> makeBrain(Dynamic<?> dynamic) {
return super.makeBrain(dynamic);
}
net.minecraft.world.entity.LivingEntity#makePoofParticles()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1915 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Poof Particles
ทำงานยังไง
มีการวนลูป. เรียกต่อ: nextGaussian(), level(), addParticle(), getRandomX(), getRandomY(), getRandomZ().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#makeSound(SoundEvent)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1305 - Modifiers:
public - Return:
void
คืออะไร
สร้าง Sound
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: playSound(), getSoundVolume(), getVoicePitch().
Parameters
SoundEvent soundEvent
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#maxUpStep()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3596 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ maxUpStep ตาม implementation ของ LivingEntity
ทำงานยังไง
เรียกต่อ: getAttributeValue(), getControllingPassenger(), max(). คืนค่า: this.getControllingPassenger() instanceof Player ? Math.max(f, 1.0F) : f.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#onAttributeUpdated(Holder<Attribute>)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1053 - Modifiers:
protected - Return:
void
คืออะไร
จัดการเหตุการณ์ Attribute Updated
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: is(), getMaxHealth(), getHealth(), setHealth(), getMaxAbsorption(), getAbsorptionAmount(), setAbsorptionAmount().
Parameters
Holder<Attribute> holder
ตัวอย่างใช้งาน
Holder<Attribute> holder = ...;
@Override
protected void onAttributeUpdated(Holder<Attribute> holder) {
super.onAttributeUpdated(holder);
}
net.minecraft.world.entity.LivingEntity#onBelowWorld()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1931 - Modifiers:
protected - Return:
void
คืออะไร
จัดการเหตุการณ์ Below World
ทำงานยังไง
เรียกต่อ: hurt(), damageSources(), fellOutOfWorld().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#onChangedBlock(ServerLevel,BlockPos)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:529 - Modifiers:
protected - Return:
void
คืออะไร
จัดการเหตุการณ์ Changed Block
ทำงานยังไง
เรียกต่อ: runLocationChangedEffects().
Parameters
ServerLevel serverLevelBlockPos blockPos
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
BlockPos blockPos = ...;
@Override
protected void onChangedBlock(ServerLevel serverLevel, BlockPos blockPos) {
super.onChangedBlock(serverLevel, blockPos);
}
net.minecraft.world.entity.LivingEntity#onClimbable()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1564 - Modifiers:
public - Return:
boolean
คืออะไร
จัดการเหตุการณ์ Climbable
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: lastClimbablePos. เรียกต่อ: isSpectator(), blockPosition(), getInBlockState(), is(), of(), getBlock(), trapdoorUsableAsLadder(). มีจุด return อย่างน้อย 4 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#onEffectAdded(MobEffectInstance,Entity)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:996 - Modifiers:
protected - Return:
void
คืออะไร
จัดการเหตุการณ์ Effect Added
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: effectsDirty. เรียกต่อ: level(), getEffect(), value(), addAttributeModifiers(), getAttributes(), getAmplifier(), sendEffectToPassengers().
Parameters
MobEffectInstance mobEffectInstanceEntity entity
ตัวอย่างใช้งาน
MobEffectInstance mobEffectInstance = ...;
Entity entity = ...;
@Override
protected void onEffectAdded(MobEffectInstance mobEffectInstance, Entity entity) {
super.onEffectAdded(mobEffectInstance, entity);
}
net.minecraft.world.entity.LivingEntity#onEffectsRemoved(Collection<MobEffectInstance>)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1026 - Modifiers:
protected - Return:
void
คืออะไร
จัดการเหตุการณ์ Effects Removed
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: effectsDirty. เรียกต่อ: level(), getEffect(), value(), removeAttributeModifiers(), getAttributes(), getPassengers(), send(), getId(). สร้างออบเจ็กต์: ClientboundRemoveMobEffectPacket.
Parameters
Collection<MobEffectInstance> collection
ตัวอย่างใช้งาน
Collection<MobEffectInstance> collection = ...;
@Override
protected void onEffectsRemoved(Collection<MobEffectInstance> collection) {
super.onEffectsRemoved(collection);
}
net.minecraft.world.entity.LivingEntity#onEffectUpdated(MobEffectInstance,boolean,Entity)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1012 - Modifiers:
protected - Return:
void
คืออะไร
จัดการเหตุการณ์ Effect Updated
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: effectsDirty. เรียกต่อ: level(), getEffect(), value(), removeAttributeModifiers(), getAttributes(), addAttributeModifiers(), getAmplifier(), refreshDirtyAttributes().
Parameters
MobEffectInstance mobEffectInstanceboolean blEntity entity
ตัวอย่างใช้งาน
MobEffectInstance mobEffectInstance = ...;
Entity entity = ...;
@Override
protected void onEffectUpdated(MobEffectInstance mobEffectInstance, boolean bl, Entity entity) {
super.onEffectUpdated(mobEffectInstance, bl, entity);
}
net.minecraft.world.entity.LivingEntity#onEnterCombat()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3069 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Enter Combat
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#onEquipItem(EquipmentSlot,ItemStack,ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:661 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Equip Item
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), isClientSide(), isSpectator(), isEmpty(), isSameItemSameComponents(), get(), isSilent(), slot().
Parameters
EquipmentSlot equipmentSlotItemStack itemStackItemStack itemStack2
ตัวอย่างใช้งาน
LivingEntity instance = ...;
EquipmentSlot equipmentSlot = ...;
ItemStack itemStack = ...;
ItemStack itemStack2 = ...;
instance.onEquipItem(equipmentSlot, itemStack, itemStack2);
net.minecraft.world.entity.LivingEntity#onEquippedItemBroken(Item,EquipmentSlot)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3466 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Equipped Item Broken
ทำงานยังไง
เรียกต่อ: level(), broadcastEntityEvent(), entityEventForEquipmentBreak(), stopLocationBasedEffects(), getItemBySlot().
Parameters
Item itemEquipmentSlot equipmentSlot
ตัวอย่างใช้งาน
LivingEntity instance = ...;
Item item = ...;
EquipmentSlot equipmentSlot = ...;
instance.onEquippedItemBroken(item, equipmentSlot);
net.minecraft.world.entity.LivingEntity#onItemPickup(ItemEntity)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2980 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Item Pickup
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getOwner(), trigger(), getItem().
Parameters
ItemEntity itemEntity
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#onLeaveCombat()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3072 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Leave Combat
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#onSyncedDataUpdated(EntityDataAccessor<?>)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3140 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Synced Data Updated
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: useItem, useItemRemaining. เรียกต่อ: equals(), level(), getSleepingPos(), ifPresent(), isUsingItem(), isEmpty(), getItemInHand(), getUsedItemHand().
Parameters
EntityDataAccessor<?> entityDataAccessor
ตัวอย่างใช้งาน
LivingEntity instance = ...;
EntityDataAccessor<?> entityDataAccessor = ...;
instance.onSyncedDataUpdated(entityDataAccessor);
net.minecraft.world.entity.LivingEntity#playBlockFallSound()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1646 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ playBlockFallSound ตาม implementation ของ LivingEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isSilent(), floor(), getX(), getY(), getZ(), level(), getBlockState(), isAir(). สร้างออบเจ็กต์: BlockPos.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#playHurtSound(DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1301 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ playHurtSound ตาม implementation ของ LivingEntity
ทำงานยังไง
เรียกต่อ: makeSound(), getHurtSound().
Parameters
DamageSource damageSource
ตัวอย่างใช้งาน
DamageSource damageSource = ...;
@Override
protected void playHurtSound(DamageSource damageSource) {
super.playHurtSound(damageSource);
}
net.minecraft.world.entity.LivingEntity#push(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2084 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ push ตาม implementation ของ LivingEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isSleeping().
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#pushEntities()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2851 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ pushEntities ตาม implementation ของ LivingEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: level(), getEntities(), forClass(), getBoundingBox(), pushableBy(), forEach(), isEmpty(), getGameRules().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#randomTeleport(double,double,double,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3279 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ randomTeleport ตาม implementation ของ LivingEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getX(), getY(), getZ(), containing(), level(), hasChunkAt(), getMinY(), below(). มีจุด return อย่างน้อย 2 จุด.
Parameters
double ddouble edouble fboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:724 - Modifiers:
public - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: hurtTime, deathTime, lastHurtByMobTimestamp, brain. เรียกต่อ: internalSetAbsorptionAmount(), getFloat(), contains(), level(), getAttributes(), load(), getList(), size(). สร้างออบเจ็กต์: BlockPos, Dynamic<>.
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
LivingEntity instance = ...;
CompoundTag compoundTag = ...;
instance.readAdditionalSaveData(compoundTag);
net.minecraft.world.entity.LivingEntity#recreateFromPacket(ClientboundAddEntityPacket)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3574 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ recreateFromPacket ตาม implementation ของ LivingEntity
ทำงานยังไง
แก้ state: yBodyRot, yHeadRot, yBodyRotO, yHeadRotO. เรียกต่อ: getX(), getY(), getZ(), getYRot(), getXRot(), syncPacketPositionCodec(), getYHeadRot(), setId().
Parameters
ClientboundAddEntityPacket clientboundAddEntityPacket
ตัวอย่างใช้งาน
LivingEntity instance = ...;
ClientboundAddEntityPacket clientboundAddEntityPacket = ...;
instance.recreateFromPacket(clientboundAddEntityPacket);
net.minecraft.world.entity.LivingEntity#releaseUsingItem()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3220 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ releaseUsingItem ตาม implementation ของ LivingEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isEmpty(), releaseUsing(), level(), getUseItemRemainingTicks(), useOnRelease(), updatingUsingItem(), stopUsingItem().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#remove(Entity.RemovalReason)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:678 - Modifiers:
public - Return:
void
คืออะไร
ลบ remove
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), triggerOnDeathMobEffects(), clearMemories().
Parameters
Entity.RemovalReason removalReason
ตัวอย่างใช้งาน
LivingEntity instance = ...;
Entity.RemovalReason removalReason = ...;
instance.remove(removalReason);
net.minecraft.world.entity.LivingEntity#removeAllEffects()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:896 - Modifiers:
public - Return:
boolean
คืออะไร
ลบ All Effects
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), isEmpty(), newHashMap(), clear(), onEffectsRemoved(), values(). มีจุด return อย่างน้อย 3 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#removeEffect(Holder<MobEffect>)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:986 - Modifiers:
public - Return:
boolean
คืออะไร
ลบ Effect
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: removeEffectNoUpdate(), onEffectsRemoved(), of(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Holder<MobEffect> holder
ตัวอย่างใช้งาน
LivingEntity instance = ...;
Holder<MobEffect> holder = ...;
boolean result = instance.removeEffect(holder);
net.minecraft.world.entity.LivingEntity#removeEffectNoUpdate(Holder<MobEffect>)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:981 - Modifiers:
public - Return:
MobEffectInstance
คืออะไร
ลบ Effect No Update
ทำงานยังไง
เรียกต่อ: remove(). คืนค่า: this.activeEffects.remove(holder).
Parameters
Holder<MobEffect> holder
ตัวอย่างใช้งาน
LivingEntity instance = ...;
Holder<MobEffect> holder = ...;
MobEffectInstance result = instance.removeEffectNoUpdate(holder);
net.minecraft.world.entity.LivingEntity#removeEffectParticles()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:892 - Modifiers:
protected - Return:
void
คืออะไร
ลบ Effect Particles
ทำงานยังไง
เรียกต่อ: set(), of().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#removeFrost()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:505 - Modifiers:
protected - Return:
void
คืออะไร
ลบ Frost
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getAttribute(), getModifier(), removeModifier().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#resetForwardDirectionOfRelativePortalPosition(Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3053 - Modifiers:
public static - Return:
Vec3
คืออะไร
รีเซ็ต Forward Direction Of Relative Portal Position
ทำงานยังไง
สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(vec3.x, vec3.y, 0.0).
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#resolveMobResponsibleForDamage(DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1222 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ resolveMobResponsibleForDamage ตาม implementation ของ LivingEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getEntity(), is(), getType(), setLastHurtByMob().
Parameters
DamageSource damageSource
ตัวอย่างใช้งาน
DamageSource damageSource = ...;
@Override
protected void resolveMobResponsibleForDamage(DamageSource damageSource) {
super.resolveMobResponsibleForDamage(damageSource);
}
net.minecraft.world.entity.LivingEntity#resolvePlayerResponsibleForDamage(DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1230 - Modifiers:
protected - Return:
Player
คืออะไร
ดำเนินการ resolvePlayerResponsibleForDamage ตาม implementation ของ LivingEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: lastHurtByPlayerTime, lastHurtByPlayer. เรียกต่อ: getEntity(), isTame(), getOwner(). มีจุด return อย่างน้อย 3 จุด.
Parameters
DamageSource damageSource
ตัวอย่างใช้งาน
DamageSource damageSource = ...;
@Override
protected Player resolvePlayerResponsibleForDamage(DamageSource damageSource) {
return super.resolvePlayerResponsibleForDamage(damageSource);
}
net.minecraft.world.entity.LivingEntity#rideTick()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2922 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ rideTick ตาม implementation ของ LivingEntity
ทำงานยังไง
แก้ state: oRun, run. เรียกต่อ: resetFallDistance().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#sanitizeScale(float)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:546 - Modifiers:
protected - Return:
float
คืออะไร
ดำเนินการ sanitizeScale ตาม implementation ของ LivingEntity
ทำงานยังไง
คืนค่า: f.
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#sendEffectToPassengers(MobEffectInstance)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1004 - Modifiers:
public - Return:
void
คืออะไร
ส่ง Effect To Passengers
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getPassengers(), send(), getId(). สร้างออบเจ็กต์: ClientboundUpdateMobEffectPacket.
Parameters
MobEffectInstance mobEffectInstance
ตัวอย่างใช้งาน
LivingEntity instance = ...;
MobEffectInstance mobEffectInstance = ...;
instance.sendEffectToPassengers(mobEffectInstance);
net.minecraft.world.entity.LivingEntity#serverAiStep()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2848 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ serverAiStep ตาม implementation ของ LivingEntity
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#setAbsorptionAmount(float)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3061 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Absorption Amount
ทำงานยังไง
เรียกต่อ: internalSetAbsorptionAmount(), clamp(), getMaxAbsorption().
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#setArrowCount(int)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1790 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Arrow Count
ทำงานยังไง
เรียกต่อ: set().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#setDiscardFriction(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:653 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Discard Friction
ทำงานยังไง
แก้ state: discardFriction.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#setHealth(float)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1078 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Health
ทำงานยังไง
เรียกต่อ: set(), clamp(), getMaxHealth().
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#setItemInHand(InteractionHand,ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2004 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Item In Hand
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: setItemSlot(). สร้างออบเจ็กต์: IllegalArgumentException.
Parameters
InteractionHand interactionHandItemStack itemStack
ตัวอย่างใช้งาน
LivingEntity instance = ...;
InteractionHand interactionHand = ...;
ItemStack itemStack = ...;
instance.setItemInHand(interactionHand, itemStack);
net.minecraft.world.entity.LivingEntity#setItemSlot(EquipmentSlot,ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2028 - Modifiers:
public abstract - Return:
void
คืออะไร
กำหนดค่า Item Slot
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
EquipmentSlot equipmentSlotItemStack itemStack
ตัวอย่างใช้งาน
LivingEntity instance = ...;
EquipmentSlot equipmentSlot = ...;
ItemStack itemStack = ...;
instance.setItemSlot(equipmentSlot, itemStack);
net.minecraft.world.entity.LivingEntity#setJumping(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2976 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Jumping
ทำงานยังไง
แก้ state: jumping.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#setLastHurtByMob(LivingEntity)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:617 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Last Hurt By Mob
ทำงานยังไง
แก้ state: lastHurtByMob, lastHurtByMobTimestamp.
Parameters
LivingEntity livingEntity
ตัวอย่างใช้งาน
LivingEntity instance = ...;
LivingEntity livingEntity = ...;
instance.setLastHurtByMob(livingEntity);
net.minecraft.world.entity.LivingEntity#setLastHurtByPlayer(Player)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:612 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Last Hurt By Player
ทำงานยังไง
แก้ state: lastHurtByPlayer, lastHurtByPlayerTime.
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#setLastHurtMob(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:631 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Last Hurt Mob
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: lastHurtMob, lastHurtMobTimestamp.
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#setLivingEntityFlag(int,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3116 - Modifiers:
protected - Return:
void
คืออะไร
กำหนดค่า Living Entity Flag
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), set().
Parameters
int iboolean bl
ตัวอย่างใช้งาน
@Override
protected void setLivingEntityFlag(int i, boolean bl) {
super.setLivingEntityFlag(i, bl);
}
net.minecraft.world.entity.LivingEntity#setNoActionTime(int)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:645 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า No Action Time
ทำงานยังไง
แก้ state: noActionTime.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#setRecordPlayingNearby(BlockPos,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3333 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Record Playing Nearby
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
BlockPos blockPosboolean bl
ตัวอย่างใช้งาน
LivingEntity instance = ...;
BlockPos blockPos = ...;
instance.setRecordPlayingNearby(blockPos, true);
net.minecraft.world.entity.LivingEntity#setSleepingPos(BlockPos)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3379 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Sleeping Pos
ทำงานยังไง
เรียกต่อ: set(), of().
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#setSpeed(float)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2403 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Speed
ทำงานยังไง
แก้ state: speed.
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#setSprinting(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2062 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Sprinting
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getAttribute(), removeModifier(), id(), addTransientModifier().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#setStingerCount(int)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1798 - Modifiers:
public final - Return:
void
คืออะไร
กำหนดค่า Stinger Count
ทำงานยังไง
เรียกต่อ: set().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#setYBodyRot(float)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3043 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า YBody Rot
ทำงานยังไง
แก้ state: yBodyRot.
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#setYHeadRot(float)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3038 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า YHead Rot
ทำงานยังไง
แก้ state: yHeadRot.
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#shouldDiscardFriction()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:649 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Discard Friction
ทำงานยังไง
คืนค่า: this.discardFriction.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#shouldDropExperience()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:562 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Drop Experience
ทำงานยังไง
เรียกต่อ: isBaby(). คืนค่า: !this.isBaby().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#shouldDropLoot()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:566 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Drop Loot
ทำงานยังไง
เรียกต่อ: isBaby(). คืนค่า: !this.isBaby().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#shouldShowName()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2115 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Show Name
ทำงานยังไง
เรียกต่อ: isCustomNameVisible(). คืนค่า: this.isCustomNameVisible().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#skipDropExperience()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1525 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ skipDropExperience ตาม implementation ของ LivingEntity
ทำงานยังไง
แก้ state: skipDropExperience.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#spawnItemParticles(ItemStack,int)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3173 - Modifiers:
public - Return:
void
คืออะไร
สร้าง entity ในโลก Item Particles
ทำงานยังไง
มีการวนลูป. เรียกต่อ: nextFloat(), random(), xRot(), getXRot(), yRot(), getYRot(), add(), getX(). สร้างออบเจ็กต์: Vec3, ItemParticleOption.
Parameters
ItemStack itemStackint i
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#startSleeping(BlockPos)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3391 - Modifiers:
public - Return:
void
คืออะไร
เริ่ม Sleeping
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: hasImpulse. เรียกต่อ: isPassenger(), stopRiding(), level(), getBlockState(), getBlock(), setBlock(), setValue(), setPose().
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#startUsingItem(InteractionHand)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3127 - Modifiers:
public - Return:
void
คืออะไร
เริ่ม Using Item
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: useItem, useItemRemaining. เรียกต่อ: getItemInHand(), isEmpty(), isUsingItem(), getUseDuration(), level(), setLivingEntityFlag(), gameEvent().
Parameters
InteractionHand interactionHand
ตัวอย่างใช้งาน
LivingEntity instance = ...;
InteractionHand interactionHand = ...;
instance.startUsingItem(interactionHand);
net.minecraft.world.entity.LivingEntity#stopRiding()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2913 - Modifiers:
public - Return:
void
คืออะไร
หยุด Riding
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getVehicle(), level(), dismountVehicle().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#stopSleeping()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3416 - Modifiers:
public - Return:
void
คืออะไร
หยุด Sleeping
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getSleepingPos(), filter(), level(), ifPresent(), getBlockState(), getBlock(), getValue(), setBlock(). สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(blockPos2.getX() + 0.5, blockPos2.getY() + 0.1, blockPos2.getZ() + 0.5).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#stopUsingItem()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3231 - Modifiers:
public - Return:
void
คืออะไร
หยุด Using Item
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: useItem, useItemRemaining. เรียกต่อ: level(), isUsingItem(), setLivingEntityFlag(), gameEvent().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#swing(InteractionHand)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1810 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ swing ตาม implementation ของ LivingEntity
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
InteractionHand interactionHand
ตัวอย่างใช้งาน
LivingEntity instance = ...;
InteractionHand interactionHand = ...;
instance.swing(interactionHand);
net.minecraft.world.entity.LivingEntity#swing(InteractionHand,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1814 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ swing ตาม implementation ของ LivingEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: swingTime, swinging, swingingArm. เรียกต่อ: getCurrentSwingDuration(), level(), getChunkSource(), broadcastAndSend(), broadcast(). สร้างออบเจ็กต์: ClientboundAnimatePacket.
Parameters
InteractionHand interactionHandboolean bl
ตัวอย่างใช้งาน
LivingEntity instance = ...;
InteractionHand interactionHand = ...;
instance.swing(interactionHand, true);
net.minecraft.world.entity.LivingEntity#take(Entity,int)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2987 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ take ตาม implementation ของ LivingEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isRemoved(), level(), getChunkSource(), broadcast(), getId(). สร้างออบเจ็กต์: ClientboundTakeItemEntityPacket.
Parameters
Entity entityint i
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#tick()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2412 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: removeArrowTime, removeStingerTime, oRun, run, yRotO, yBodyRotO. เรียกต่อ: updatingUsingItem(), updateSwimAmount(), level(), getArrowCount(), setArrowCount(), getStingerCount(), setStingerCount(), detectEquipmentUpdates().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#tickDeath()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:554 - Modifiers:
protected - Return:
void
คืออะไร
ประมวลผล tick Death
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: deathTime. เรียกต่อ: level(), isClientSide(), isRemoved(), broadcastEntityEvent(), remove().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#tickEffects()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:778 - Modifiers:
protected - Return:
void
คืออะไร
ประมวลผล tick Effects
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. แก้ state: effectsDirty. เรียกต่อ: keySet(), iterator(), hasNext(), next(), get(), tick(), onEffectUpdated(), level().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#tickHeadTurn(float,float)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2654 - Modifiers:
protected - Return:
float
คืออะไร
ประมวลผล tick Head Turn
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: yBodyRot. เรียกต่อ: wrapDegrees(), getYRot(), getMaxHeadRotationRelativeToBody(), abs(), sign(). คืนค่า: g.
Parameters
float ffloat g
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#tickRidden(Player,Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2321 - Modifiers:
protected - Return:
void
คืออะไร
ประมวลผล tick Ridden
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Player playerVec3 vec3
ตัวอย่างใช้งาน
Player player = ...;
Vec3 vec3 = ...;
@Override
protected void tickRidden(Player player, Vec3 vec3) {
super.tickRidden(player, vec3);
}
net.minecraft.world.entity.LivingEntity#travel(Vec3)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2173 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ travel ตาม implementation ของ LivingEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isControlledByLocalInstance(), level(), getFluidState(), blockPosition(), isInWater(), isInLava(), isAffectedByFluids(), canStandOnFluid().
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#triggerOnDeathMobEffects(ServerLevel,Entity.RemovalReason)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:688 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ triggerOnDeathMobEffects ตาม implementation ของ LivingEntity
ทำงานยังไง
มีการวนลูป. เรียกต่อ: getActiveEffects(), onMobRemoved(), clear().
Parameters
ServerLevel serverLevelEntity.RemovalReason removalReason
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
Entity.RemovalReason removalReason = ...;
@Override
protected void triggerOnDeathMobEffects(ServerLevel serverLevel, Entity.RemovalReason removalReason) {
super.triggerOnDeathMobEffects(serverLevel, removalReason);
}
net.minecraft.world.entity.LivingEntity#tryAddFrost()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:514 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ tryAddFrost ตาม implementation ของ LivingEntity
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getBlockStateOnLegacy(), isAir(), getTicksFrozen(), getAttribute(), getPercentFrozen(), addTransientModifier(). สร้างออบเจ็กต์: AttributeModifier.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#updateEffectVisibility()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3075 - Modifiers:
protected - Return:
void
คืออะไร
อัปเดต Effect Visibility
ทำงานยังไง
แก้ state: effectsDirty.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#updateFallFlying()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2809 - Modifiers:
protected - Return:
void
คืออะไร
อัปเดต Fall Flying
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: checkSlowFallDistance(), level(), canGlide(), setSharedFlag(), stream(), filter(), canGlideUsing(), getItemBySlot().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#updateInvisibilityStatus()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:817 - Modifiers:
protected - Return:
void
คืออะไร
อัปเดต Invisibility Status
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isEmpty(), removeEffectParticles(), setInvisible(), hasEffect(), updateSynchronizedMobEffectParticles().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#updateSwingTime()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1936 - Modifiers:
protected - Return:
void
คืออะไร
อัปเดต Swing Time
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: swingTime, swinging, attackAnim. เรียกต่อ: getCurrentSwingDuration().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#updateUsingItem(ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3100 - Modifiers:
protected - Return:
void
คืออะไร
อัปเดต Using Item
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: useItemRemaining. เรียกต่อ: onUseTick(), level(), getUseItemRemainingTicks(), useOnRelease(), completeUsingItem().
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
ItemStack itemStack = ...;
@Override
protected void updateUsingItem(ItemStack itemStack) {
super.updateUsingItem(itemStack);
}
net.minecraft.world.entity.LivingEntity#updateWalkAnimation(float)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2341 - Modifiers:
protected - Return:
void
คืออะไร
อัปเดต Walk Animation
ทำงานยังไง
เรียกต่อ: min(), update(), isBaby().
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#verifyEquippedItem(ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:2042 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ verifyEquippedItem ตาม implementation ของ LivingEntity
ทำงานยังไง
เรียกต่อ: getItem(), verifyComponentsAfterLoad().
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
ItemStack itemStack = ...;
@Override
protected void verifyEquippedItem(ItemStack itemStack) {
super.verifyEquippedItem(itemStack);
}
net.minecraft.world.entity.LivingEntity#wasExperienceConsumed()
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:1529 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ wasExperienceConsumed ตาม implementation ของ LivingEntity
ทำงานยังไง
คืนค่า: this.skipDropExperience.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.LivingEntity#wouldNotSuffocateAtTargetPose(Pose)
- Origin:
common - Source:
net/minecraft/world/entity/LivingEntity.java:3365 - Modifiers:
protected - Return:
boolean
คืออะไร
ดำเนินการ wouldNotSuffocateAtTargetPose ตาม implementation ของ LivingEntity
ทำงานยังไง
เรียกต่อ: getDimensions(), makeBoundingBox(), position(), level(), noBlockCollision(). คืนค่า: this.level().noBlockCollision(this, aABB).
Parameters
Pose pose
ตัวอย่างใช้งาน
Pose pose = ...;
@Override
protected boolean wouldNotSuffocateAtTargetPose(Pose pose) {
return super.wouldNotSuffocateAtTargetPose(pose);
}
Marker
- Full name:
net.minecraft.world.entity.Marker - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/Marker.java - Type:
class - Modifiers:
public - Extends:
Entity
net.minecraft.world.entity.Marker#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/Marker.java:35 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
เรียกต่อ: put(), copy().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(CompoundTag compoundTag) {
super.addAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.Marker#addPassenger(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Marker.java:55 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Passenger
ทำงานยังไง
เรียกต่อ: couldAcceptPassenger(). สร้างออบเจ็กต์: IllegalStateException.
Parameters
Entity entity
ตัวอย่างใช้งาน
Entity entity = ...;
@Override
protected void addPassenger(Entity entity) {
super.addPassenger(entity);
}
net.minecraft.world.entity.Marker#canAddPassenger(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Marker.java:45 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Add Passenger
ทำงานยังไง
คืนค่า: false.
Parameters
Entity entity
ตัวอย่างใช้งาน
Entity entity = ...;
@Override
protected boolean canAddPassenger(Entity entity) {
return super.canAddPassenger(entity);
}
net.minecraft.world.entity.Marker#couldAcceptPassenger()
- Origin:
common - Source:
net/minecraft/world/entity/Marker.java:50 - Modifiers:
protected - Return:
boolean
คืออะไร
ดำเนินการ couldAcceptPassenger ตาม implementation ของ Marker
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Marker#defineSynchedData(SynchedEntityData.Builder)
- Origin:
common - Source:
net/minecraft/world/entity/Marker.java:26 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ defineSynchedData ตาม implementation ของ Marker
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
SynchedEntityData.Builder builder
ตัวอย่างใช้งาน
SynchedEntityData.Builder builder = ...;
@Override
protected void defineSynchedData(SynchedEntityData.Builder builder) {
super.defineSynchedData(builder);
}
net.minecraft.world.entity.Marker#getAddEntityPacket(ServerEntity)
- Origin:
common - Source:
net/minecraft/world/entity/Marker.java:40 - Modifiers:
public - Return:
Packet<ClientGamePacketListener>
คืออะไร
อ่านค่า Add Entity Packet
ทำงานยังไง
สร้างออบเจ็กต์: IllegalStateException.
Parameters
ServerEntity serverEntity
ตัวอย่างใช้งาน
Marker instance = ...;
ServerEntity serverEntity = ...;
Packet<ClientGamePacketListener> result = instance.getAddEntityPacket(serverEntity);
net.minecraft.world.entity.Marker#getPistonPushReaction()
- Origin:
common - Source:
net/minecraft/world/entity/Marker.java:60 - Modifiers:
public - Return:
PushReaction
คืออะไร
อ่านค่า Piston Push Reaction
ทำงานยังไง
คืนค่า: PushReaction.IGNORE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Marker#hurtServer(ServerLevel,DamageSource,float)
- Origin:
common - Source:
net/minecraft/world/entity/Marker.java:70 - Modifiers:
public final - Return:
boolean
คืออะไร
ประมวลผลความเสียหาย Server
ทำงานยังไง
คืนค่า: false.
Parameters
ServerLevel serverLevelDamageSource damageSourcefloat f
ตัวอย่างใช้งาน
Marker instance = ...;
ServerLevel serverLevel = ...;
DamageSource damageSource = ...;
boolean result = instance.hurtServer(serverLevel, damageSource, 0.0F);
net.minecraft.world.entity.Marker#isIgnoringBlockTriggers()
- Origin:
common - Source:
net/minecraft/world/entity/Marker.java:65 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Ignoring Block Triggers
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Marker#Marker(EntityType<?>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/Marker.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Marker ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: noPhysics.
Parameters
EntityType<?> entityTypeLevel level
ตัวอย่างใช้งาน
net.minecraft.world.entity.Marker#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/Marker.java:30 - Modifiers:
protected - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
แก้ state: data. เรียกต่อ: getCompound().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void readAdditionalSaveData(CompoundTag compoundTag) {
super.readAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.Marker#tick()
- Origin:
common - Source:
net/minecraft/world/entity/Marker.java:22 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Mob
- Full name:
net.minecraft.world.entity.Mob - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/Mob.java - Type:
class - Modifiers:
public abstract - Extends:
LivingEntity - Implements:
EquipmentUser,Leashable,Targeting
net.minecraft.world.entity.Mob#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:355 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: putBoolean(), canPickUpLoot(), isEmpty(), add(), save(), registryAccess(), put(), valueOf(). สร้างออบเจ็กต์: ListTag, CompoundTag.
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#aiStep()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:523 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ aiStep ตาม implementation ของ Mob
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: get(), push(), level(), canPickUpLoot(), isAlive(), getGameRules(), getBoolean(), getPickupReach().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#ate()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:243 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ ate ตาม implementation ของ Mob
ทำงานยังไง
เรียกต่อ: gameEvent().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#baseTick()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:261 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ baseTick ตาม implementation ของ Mob
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: ambientSoundTime. เรียกต่อ: get(), push(), isAlive(), nextInt(), resetAmbientSoundTime(), playAmbientSound(), pop().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#canAttackType(EntityType<?>)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:234 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Attack Type
ทำงานยังไง
คืนค่า: entityType != EntityType.GHAST.
Parameters
EntityType<?> entityType
ตัวอย่างใช้งาน
Mob instance = ...;
EntityType<?> entityType = ...;
boolean result = instance.canAttackType(entityType);
net.minecraft.world.entity.Mob#canBeLeashed()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1311 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Be Leashed
ทำงานยังไง
คืนค่า: !(this instanceof Enemy).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#canDispenserEquipIntoSlot(EquipmentSlot)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1158 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Dispenser Equip Into Slot
ทำงานยังไง
เรียกต่อ: canPickUpLoot(). คืนค่า: this.canPickUpLoot().
Parameters
EquipmentSlot equipmentSlot
ตัวอย่างใช้งาน
EquipmentSlot equipmentSlot = ...;
@Override
protected boolean canDispenserEquipIntoSlot(EquipmentSlot equipmentSlot) {
return super.canDispenserEquipIntoSlot(equipmentSlot);
}
net.minecraft.world.entity.Mob#canFireProjectileWeapon(ProjectileWeaponItem)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:239 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Fire Projectile Weapon
ทำงานยังไง
คืนค่า: false.
Parameters
ProjectileWeaponItem projectileWeaponItem
ตัวอย่างใช้งาน
Mob instance = ...;
ProjectileWeaponItem projectileWeaponItem = ...;
boolean result = instance.canFireProjectileWeapon(projectileWeaponItem);
net.minecraft.world.entity.Mob#canHoldItem(ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:666 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Hold Item
ทำงานยังไง
คืนค่า: true.
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#canPickUpLoot()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1149 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Pick Up Loot
ทำงานยังไง
คืนค่า: this.canPickUpLoot.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#canReplaceCurrentItem(ItemStack,ItemStack,EquipmentSlot)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:605 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Replace Current Item
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isEmpty(), isArmor(), compareArmor(), compareWeapons(). มีจุด return อย่างน้อย 3 จุด.
Parameters
ItemStack itemStackItemStack itemStack2EquipmentSlot equipmentSlot
ตัวอย่างใช้งาน
ItemStack itemStack = ...;
ItemStack itemStack2 = ...;
EquipmentSlot equipmentSlot = ...;
@Override
protected boolean canReplaceCurrentItem(ItemStack itemStack, ItemStack itemStack2, EquipmentSlot equipmentSlot) {
return super.canReplaceCurrentItem(itemStack, itemStack2, equipmentSlot);
}
net.minecraft.world.entity.Mob#canReplaceEqualItem(ItemStack,ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:654 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Replace Equal Item
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getOrDefault(), entrySet(), size(), getDamageValue(), has(). มีจุด return อย่างน้อย 2 จุด.
Parameters
ItemStack itemStackItemStack itemStack2
ตัวอย่างใช้งาน
Mob instance = ...;
ItemStack itemStack = ...;
ItemStack itemStack2 = ...;
boolean result = instance.canReplaceEqualItem(itemStack, itemStack2);
net.minecraft.world.entity.Mob#canUseSlot(EquipmentSlot)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:870 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Use Slot
ทำงานยังไง
คืนค่า: equipmentSlot != EquipmentSlot.BODY.
Parameters
EquipmentSlot equipmentSlot
ตัวอย่างใช้งาน
Mob instance = ...;
EquipmentSlot equipmentSlot = ...;
boolean result = instance.canUseSlot(equipmentSlot);
net.minecraft.world.entity.Mob#checkDespawn()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:691 - Modifiers:
public - Return:
void
คืออะไร
ตรวจสอบ Despawn
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: noActionTime. เรียกต่อ: level(), getDifficulty(), shouldDespawnInPeaceful(), discard(), isPersistenceRequired(), requiresCustomPersistence(), getNearestPlayer(), distanceToSqr().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#checkMobSpawnRules(EntityType<? extends Mob>,LevelAccessor,EntitySpawnReason,BlockPos,RandomSource)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:818 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบ Mob Spawn Rules
ทำงานยังไง
เรียกต่อ: below(), isSpawner(), getBlockState(), isValidSpawn(). คืนค่า: EntitySpawnReason.isSpawner(entitySpawnReason) || levelAccessor.getBlockState(blockPos2).isValidSpawn(levelAccessor, blockPos2, entityType).
Parameters
EntityType<? extends Mob> entityTypeLevelAccessor levelAccessorEntitySpawnReason entitySpawnReasonBlockPos blockPosRandomSource randomSource
ตัวอย่างใช้งาน
EntityType<? extends Mob> entityType = ...;
LevelAccessor levelAccessor = ...;
EntitySpawnReason entitySpawnReason = ...;
BlockPos blockPos = ...;
RandomSource randomSource = ...;
boolean result = Mob.checkMobSpawnRules(entityType, levelAccessor, entitySpawnReason, blockPos, randomSource);
net.minecraft.world.entity.Mob#checkSpawnObstruction(LevelReader)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:829 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบ Spawn Obstruction
ทำงานยังไง
เรียกต่อ: containsAnyLiquid(), getBoundingBox(), isUnobstructed(). คืนค่า: !levelReader.containsAnyLiquid(this.getBoundingBox()) && levelReader.isUnobstructed(this).
Parameters
LevelReader levelReader
ตัวอย่างใช้งาน
Mob instance = ...;
LevelReader levelReader = ...;
boolean result = instance.checkSpawnObstruction(levelReader);
net.minecraft.world.entity.Mob#checkSpawnRules(LevelAccessor,EntitySpawnReason)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:825 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบ Spawn Rules
ทำงานยังไง
คืนค่า: true.
Parameters
LevelAccessor levelAccessorEntitySpawnReason entitySpawnReason
ตัวอย่างใช้งาน
Mob instance = ...;
LevelAccessor levelAccessor = ...;
EntitySpawnReason entitySpawnReason = ...;
boolean result = instance.checkSpawnRules(levelAccessor, entitySpawnReason);
net.minecraft.world.entity.Mob#clampHeadRotationToBody()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:775 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ clampHeadRotationToBody ตาม implementation ของ Mob
ทำงานยังไง
เรียกต่อ: getMaxHeadYRot(), getYHeadRot(), wrapDegrees(), clamp(), setYHeadRot().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#clearRestriction()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1248 - Modifiers:
public - Return:
void
คืออะไร
ล้าง Restriction
ทำงานยังไง
แก้ state: restrictRadius.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#convertTo(EntityType<T>,ConversionParams,ConversionParams.AfterConversion<T>)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1282 - Modifiers:
public - Return:
T
คืออะไร
แปลง To
ทำงานยังไง
คืนค่า: this.convertTo(entityType, conversionParams, EntitySpawnReason.CONVERSION, afterConversion).
Parameters
EntityType<T> entityTypeConversionParams conversionParamsConversionParams.AfterConversion<T> afterConversion
ตัวอย่างใช้งาน
Mob instance = ...;
EntityType<T> entityType = ...;
ConversionParams conversionParams = ...;
ConversionParams.AfterConversion<T> afterConversion = ...;
T result = instance.convertTo(entityType, conversionParams, afterConversion);
net.minecraft.world.entity.Mob#convertTo(EntityType<T>,ConversionParams,EntitySpawnReason,ConversionParams.AfterConversion<T>)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1256 - Modifiers:
public - Return:
T
คืออะไร
แปลง To
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isRemoved(), create(), level(), type(), convert(), finalizeConversion(), addFreshEntity(), shouldDiscardAfterConversion(). มีจุด return อย่างน้อย 3 จุด.
Parameters
EntityType<T> entityTypeConversionParams conversionParamsEntitySpawnReason entitySpawnReasonConversionParams.AfterConversion<T> afterConversion
ตัวอย่างใช้งาน
Mob instance = ...;
EntityType<T> entityType = ...;
ConversionParams conversionParams = ...;
EntitySpawnReason entitySpawnReason = ...;
ConversionParams.AfterConversion<T> afterConversion = ...;
T result = instance.convertTo(entityType, conversionParams, entitySpawnReason, afterConversion);
net.minecraft.world.entity.Mob#createBodyControl()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:188 - Modifiers:
protected - Return:
BodyRotationControl
คืออะไร
สร้าง Body Control
ทำงานยังไง
สร้างออบเจ็กต์: BodyRotationControl. คืนค่า: new BodyRotationControl(this).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#createMobAttributes()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:154 - Modifiers:
public static - Return:
AttributeSupplier.Builder
คืออะไร
สร้าง Mob Attributes
ทำงานยังไง
เรียกต่อ: createLivingAttributes(), add(). คืนค่า: LivingEntity.createLivingAttributes().add(Attributes.FOLLOW_RANGE, 16.0).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#createNavigation(Level)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:158 - Modifiers:
protected - Return:
PathNavigation
คืออะไร
สร้าง Navigation
ทำงานยังไง
สร้างออบเจ็กต์: GroundPathNavigation. คืนค่า: new GroundPathNavigation(this, level).
Parameters
Level level
ตัวอย่างใช้งาน
Level level = ...;
@Override
protected PathNavigation createNavigation(Level level) {
return super.createNavigation(level);
}
net.minecraft.world.entity.Mob#customServerAiStep(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:764 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ customServerAiStep ตาม implementation ของ Mob
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
@Override
protected void customServerAiStep(ServerLevel serverLevel) {
super.customServerAiStep(serverLevel);
}
net.minecraft.world.entity.Mob#defineSynchedData(SynchedEntityData.Builder)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:247 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ defineSynchedData ตาม implementation ของ Mob
ทำงานยังไง
เรียกต่อ: define().
Parameters
SynchedEntityData.Builder builder
ตัวอย่างใช้งาน
SynchedEntityData.Builder builder = ...;
@Override
protected void defineSynchedData(SynchedEntityData.Builder builder) {
super.defineSynchedData(builder);
}
net.minecraft.world.entity.Mob#doHurtTarget(ServerLevel,Entity)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1386 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ doHurtTarget ตาม implementation ของ Mob
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getAttributeValue(), getWeaponItem(), ofNullable(), getItem(), getDamageSource(), orElse(), damageSources(), mobAttack(). คืนค่า: bl.
Parameters
ServerLevel serverLevelEntity entity
ตัวอย่างใช้งาน
Mob instance = ...;
ServerLevel serverLevel = ...;
Entity entity = ...;
boolean result = instance.doHurtTarget(serverLevel, entity);
net.minecraft.world.entity.Mob#dropCustomDeathLoot(ServerLevel,DamageSource,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:914 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ dropCustomDeathLoot ตาม implementation ของ Mob
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getItemBySlot(), getEquipmentDropChance(), getEntity(), level(), processEquipmentDropChance(), isEmpty(), has(), nextFloat().
Parameters
ServerLevel serverLevelDamageSource damageSourceboolean bl
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
DamageSource damageSource = ...;
@Override
protected void dropCustomDeathLoot(ServerLevel serverLevel, DamageSource damageSource, boolean bl) {
super.dropCustomDeathLoot(serverLevel, damageSource, bl);
}
net.minecraft.world.entity.Mob#dropFromLootTable(ServerLevel,DamageSource,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:482 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ dropFromLootTable ตาม implementation ของ Mob
ทำงานยังไง
แก้ state: lootTable. เรียกต่อ: empty().
Parameters
ServerLevel serverLevelDamageSource damageSourceboolean bl
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
DamageSource damageSource = ...;
@Override
protected void dropFromLootTable(ServerLevel serverLevel, DamageSource damageSource, boolean bl) {
super.dropFromLootTable(serverLevel, damageSource, bl);
}
net.minecraft.world.entity.Mob#dropPreservedEquipment(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:950 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ dropPreservedEquipment ตาม implementation ของ Mob
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#dropPreservedEquipment(ServerLevel,Predicate<ItemStack>)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:954 - Modifiers:
public - Return:
Set<EquipmentSlot>
คืออะไร
ดำเนินการ dropPreservedEquipment ตาม implementation ของ Mob
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getItemBySlot(), isEmpty(), test(), add(), getEquipmentDropChance(), setItemSlot(), spawnAtLocation(). สร้างออบเจ็กต์: HashSet<>. คืนค่า: set.
Parameters
ServerLevel serverLevelPredicate<ItemStack> predicate
ตัวอย่างใช้งาน
Mob instance = ...;
ServerLevel serverLevel = ...;
Predicate<ItemStack> predicate = ...;
Set<EquipmentSlot> result = instance.dropPreservedEquipment(serverLevel, predicate);
net.minecraft.world.entity.Mob#enchantSpawnedArmor(ServerLevelAccessor,RandomSource,EquipmentSlot,DifficultyInstance)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1097 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ enchantSpawnedArmor ตาม implementation ของ Mob
ทำงานยังไง
เรียกต่อ: enchantSpawnedEquipment().
Parameters
ServerLevelAccessor serverLevelAccessorRandomSource randomSourceEquipmentSlot equipmentSlotDifficultyInstance difficultyInstance
ตัวอย่างใช้งาน
ServerLevelAccessor serverLevelAccessor = ...;
RandomSource randomSource = ...;
EquipmentSlot equipmentSlot = ...;
DifficultyInstance difficultyInstance = ...;
@Override
protected void enchantSpawnedArmor(ServerLevelAccessor serverLevelAccessor, RandomSource randomSource, EquipmentSlot equipmentSlot, DifficultyInstance difficultyInstance) {
super.enchantSpawnedArmor(serverLevelAccessor, randomSource, equipmentSlot, difficultyInstance);
}
net.minecraft.world.entity.Mob#enchantSpawnedWeapon(ServerLevelAccessor,RandomSource,DifficultyInstance)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1093 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ enchantSpawnedWeapon ตาม implementation ของ Mob
ทำงานยังไง
เรียกต่อ: enchantSpawnedEquipment().
Parameters
ServerLevelAccessor serverLevelAccessorRandomSource randomSourceDifficultyInstance difficultyInstance
ตัวอย่างใช้งาน
ServerLevelAccessor serverLevelAccessor = ...;
RandomSource randomSource = ...;
DifficultyInstance difficultyInstance = ...;
@Override
protected void enchantSpawnedWeapon(ServerLevelAccessor serverLevelAccessor, RandomSource randomSource, DifficultyInstance difficultyInstance) {
super.enchantSpawnedWeapon(serverLevelAccessor, randomSource, difficultyInstance);
}
net.minecraft.world.entity.Mob#equip(EquipmentTable)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:982 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ equip ตาม implementation ของ Mob
ทำงานยังไง
เรียกต่อ: lootTable(), slotDropChances().
Parameters
EquipmentTable equipmentTable
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#equip(ResourceKey<LootTable>,Map<EquipmentSlot, Float>)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:986 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ equip ตาม implementation ของ Mob
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), createEquipmentParams().
Parameters
ResourceKey<LootTable> resourceKeyMap<EquipmentSlot, Float> map
ตัวอย่างใช้งาน
Mob instance = ...;
ResourceKey<LootTable> resourceKey = ...;
Map<EquipmentSlot, Float> map = ...;
instance.equip(resourceKey, map);
net.minecraft.world.entity.Mob#equipItemIfPossible(ServerLevel,ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:562 - Modifiers:
public - Return:
ItemStack
คืออะไร
ดำเนินการ equipItemIfPossible ตาม implementation ของ Mob
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getEquipmentSlotForItem(), getItemBySlot(), canReplaceCurrentItem(), isArmor(), isEmpty(), canHoldItem(), getEquipmentDropChance(), max(). มีจุด return อย่างน้อย 2 จุด.
Parameters
ServerLevel serverLevelItemStack itemStack
ตัวอย่างใช้งาน
Mob instance = ...;
ServerLevel serverLevel = ...;
ItemStack itemStack = ...;
ItemStack result = instance.equipItemIfPossible(serverLevel, itemStack);
net.minecraft.world.entity.Mob#finalizeSpawn(ServerLevelAccessor,DifficultyInstance,EntitySpawnReason,SpawnGroupData)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1115 - Modifiers:
public - Return:
SpawnGroupData
คืออะไร
ดำเนินการ finalizeSpawn ตาม implementation ของ Mob
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getRandom(), requireNonNull(), getAttribute(), hasModifier(), addPermanentModifier(), triangle(), setLeftHanded(), nextFloat(). สร้างออบเจ็กต์: AttributeModifier. คืนค่า: spawnGroupData.
Parameters
ServerLevelAccessor serverLevelAccessorDifficultyInstance difficultyInstanceEntitySpawnReason entitySpawnReasonSpawnGroupData spawnGroupData
ตัวอย่างใช้งาน
Mob instance = ...;
ServerLevelAccessor serverLevelAccessor = ...;
DifficultyInstance difficultyInstance = ...;
EntitySpawnReason entitySpawnReason = ...;
SpawnGroupData spawnGroupData = ...;
SpawnGroupData result = instance.finalizeSpawn(serverLevelAccessor, difficultyInstance, entitySpawnReason, spawnGroupData);
net.minecraft.world.entity.Mob#getAmbientSound()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:350 - Modifiers:
protected - Return:
SoundEvent
คืออะไร
อ่านค่า Ambient Sound
ทำงานยังไง
คืนค่า: null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getAmbientSoundInterval()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:253 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Ambient Sound Interval
ทำงานยังไง
คืนค่า: 80.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getArmorAndBodyArmorSlots()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:883 - Modifiers:
public - Return:
Iterable<ItemStack>
คืออะไร
อ่านค่า Armor And Body Armor Slots
ทำงานยังไง
เรียกต่อ: isEmpty(), concat(), of(). คืนค่า: this.bodyArmorItem.isEmpty() ? this.armorItems : Iterables.concat(this.armorItems, List.of(this.bodyArmorItem)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getArmorDropChances()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1478 - Modifiers:
public - Return:
float[]
คืออะไร
อ่านค่า Armor Drop Chances
ทำงานยังไง
คืนค่า: this.armorDropChances.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getArmorSlots()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:861 - Modifiers:
public - Return:
Iterable<ItemStack>
คืออะไร
อ่านค่า Armor Slots
ทำงานยังไง
คืนค่า: this.armorItems.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getAttackBoundingBox()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1370 - Modifiers:
protected - Return:
AABB
คืออะไร
อ่านค่า Attack Bounding Box
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getVehicle(), getBoundingBox(), min(), max(), inflate(). สร้างออบเจ็กต์: AABB. คืนค่า: aABB3.inflate(DEFAULT_ATTACK_REACH, 0.0, DEFAULT_ATTACK_REACH).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getBaseExperienceReward(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:284 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Base Experience Reward
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: size(), get(), isEmpty(), nextInt(). มีจุด return อย่างน้อย 2 จุด.
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
@Override
protected int getBaseExperienceReward(ServerLevel serverLevel) {
return super.getBaseExperienceReward(serverLevel);
}
net.minecraft.world.entity.Mob#getBodyArmorItem()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:866 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Body Armor Item
ทำงานยังไง
คืนค่า: this.bodyArmorItem.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getControllingPassenger()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:208 - Modifiers:
public - Return:
LivingEntity
คืออะไร
อ่านค่า Controlling Passenger
ทำงานยังไง
เรียกต่อ: getFirstPassenger(), isNoAi(), canControlVehicle(). คืนค่า: !this.isNoAi() && entity instanceof Mob mob && entity.canControlVehicle() ? mob : null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getEquipmentDropChance(EquipmentSlot)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:942 - Modifiers:
protected - Return:
float
คืออะไร
อ่านค่า Equipment Drop Chance
ทำงานยังไง
แยกกรณีด้วย switch. เรียกต่อ: getType(), getIndex(). คืนค่า: switch (equipmentSlot.getType()) { case HAND -> this.handDropChances[equipmentSlot.getIndex()].
Parameters
EquipmentSlot equipmentSlot
ตัวอย่างใช้งาน
EquipmentSlot equipmentSlot = ...;
@Override
protected float getEquipmentDropChance(EquipmentSlot equipmentSlot) {
return super.getEquipmentDropChance(equipmentSlot);
}
net.minecraft.world.entity.Mob#getEquipmentForSlot(EquipmentSlot,int)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1027 - Modifiers:
public static - Return:
Item
คืออะไร
อ่านค่า Equipment For Slot
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; แยกกรณีด้วย switch. มีจุด return อย่างน้อย 21 จุด.
Parameters
EquipmentSlot equipmentSlotint i
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getHandDropChances()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1473 - Modifiers:
public - Return:
float[]
คืออะไร
อ่านค่า Hand Drop Chances
ทำงานยังไง
คืนค่า: this.handDropChances.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getHandSlots()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:856 - Modifiers:
public - Return:
Iterable<ItemStack>
คืออะไร
อ่านค่า Hand Slots
ทำงานยังไง
คืนค่า: this.handItems.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getHeadRotSpeed()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:784 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Head Rot Speed
ทำงานยังไง
คืนค่า: 10.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getItemBySlot(EquipmentSlot)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:888 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Item By Slot
ทำงานยังไง
แยกกรณีด้วย switch. เรียกต่อ: getType(), get(), getIndex(). คืนค่า: switch (equipmentSlot.getType()) { case HAND -> (ItemStack)this.handItems.get(equipmentSlot.getIndex()).
Parameters
EquipmentSlot equipmentSlot
ตัวอย่างใช้งาน
Mob instance = ...;
EquipmentSlot equipmentSlot = ...;
ItemStack result = instance.getItemBySlot(equipmentSlot);
net.minecraft.world.entity.Mob#getJumpControl()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:200 - Modifiers:
public - Return:
JumpControl
คืออะไร
อ่านค่า Jump Control
ทำงานยังไง
คืนค่า: this.jumpControl.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getLeashData()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1287 - Modifiers:
public - Return:
Leashable.LeashData
คืออะไร
อ่านค่า Leash Data
ทำงานยังไง
คืนค่า: this.leashData.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getLookControl()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:192 - Modifiers:
public - Return:
LookControl
คืออะไร
อ่านค่า Look Control
ทำงานยังไง
คืนค่า: this.lookControl.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getLootTable()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:488 - Modifiers:
public final - Return:
Optional<ResourceKey<LootTable>>
คืออะไร
อ่านค่า Loot Table
ทำงานยังไง
เรียกต่อ: isPresent(). คืนค่า: this.lootTable.isPresent() ? this.lootTable : super.getLootTable().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getLootTableSeed()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:493 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า Loot Table Seed
ทำงานยังไง
คืนค่า: this.lootTableSeed.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getMainArm()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1361 - Modifiers:
public - Return:
HumanoidArm
คืออะไร
อ่านค่า Main Arm
ทำงานยังไง
เรียกต่อ: isLeftHanded(). คืนค่า: this.isLeftHanded() ? HumanoidArm.LEFT : HumanoidArm.RIGHT.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getMaxFallDistance()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:841 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Max Fall Distance
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getTarget(), getComfortableFallDistance(), getHealth(), getMaxHealth(), level(), getDifficulty(), getId(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getMaxHeadXRot()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:767 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Max Head XRot
ทำงานยังไง
คืนค่า: 40.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getMaxHeadYRot()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:771 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Max Head YRot
ทำงานยังไง
คืนค่า: 75.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getMaxSpawnClusterSize()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:833 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Max Spawn Cluster Size
ทำงานยังไง
คืนค่า: 4.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getMoveControl()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:196 - Modifiers:
public - Return:
MoveControl
คืออะไร
อ่านค่า Move Control
ทำงานยังไง
เรียกต่อ: getControlledVehicle(). คืนค่า: this.getControlledVehicle() instanceof Mob mob ? mob.getMoveControl() : this.moveControl.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getNavigation()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:204 - Modifiers:
public - Return:
PathNavigation
คืออะไร
อ่านค่า Navigation
ทำงานยังไง
เรียกต่อ: getControlledVehicle(). คืนค่า: this.getControlledVehicle() instanceof Mob mob ? mob.getNavigation() : this.navigation.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getPathfindingMalus(PathType)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:166 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Pathfinding Malus
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getControlledVehicle(), shouldPassengersInheritMalus(), get(), getMalus(). คืนค่า: float_ == null ? pathType.getMalus() : float_.
Parameters
PathType pathType
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getPickResult()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1458 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Pick Result
ทำงานยังไง
เรียกต่อ: byId(), getType(). สร้างออบเจ็กต์: ItemStack. คืนค่า: spawnEggItem == null ? null : new ItemStack(spawnEggItem).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getPickupReach()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:545 - Modifiers:
protected - Return:
Vec3i
คืออะไร
อ่านค่า Pickup Reach
ทำงานยังไง
คืนค่า: ITEM_PICKUP_REACH.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getPreferredWeaponType()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:674 - Modifiers:
public - Return:
TagKey<Item>
คืออะไร
อ่านค่า Preferred Weapon Type
ทำงานยังไง
คืนค่า: null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getRestrictCenter()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1240 - Modifiers:
public - Return:
BlockPos
คืออะไร
อ่านค่า Restrict Center
ทำงานยังไง
คืนค่า: this.restrictCenter.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getRestrictRadius()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1244 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Restrict Radius
ทำงานยังไง
คืนค่า: this.restrictRadius.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getSensing()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:215 - Modifiers:
public - Return:
Sensing
คืออะไร
อ่านค่า Sensing
ทำงานยังไง
คืนค่า: this.sensing.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getTarget()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:219 - Modifiers:
public - Return:
LivingEntity
คืออะไร
อ่านค่า Target
ทำงานยังไง
คืนค่า: this.target.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#getTargetFromBrain()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:225 - Modifiers:
protected final - Return:
LivingEntity
คืออะไร
อ่านค่า Target From Brain
ทำงานยังไง
เรียกต่อ: getBrain(), getMemory(), orElse(). คืนค่า: this.getBrain().getMemory(MemoryModuleType.ATTACK_TARGET).orElse(null).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#handleEntityEvent(byte)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:319 - Modifiers:
public - Return:
void
คืออะไร
จัดการ Entity Event
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: spawnAnim().
Parameters
byte b
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#hasRestriction()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1252 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Restriction
ทำงานยังไง
คืนค่า: this.restrictRadius != -1.0F.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#interact(Player,InteractionHand)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1167 - Modifiers:
public final - Return:
InteractionResult
คืออะไร
จัดการ interaction interact
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isAlive(), checkAndHandleImportantInteractions(), consumesAction(), gameEvent(), mobInteract(). มีจุด return อย่างน้อย 5 จุด.
Parameters
Player playerInteractionHand interactionHand
ตัวอย่างใช้งาน
Mob instance = ...;
Player player = ...;
InteractionHand interactionHand = ...;
InteractionResult result = instance.interact(player, interactionHand);
net.minecraft.world.entity.Mob#isAggressive()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1354 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Aggressive
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: (this.entityData.get(DATA_MOB_FLAGS_ID) & 4) != 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#isEffectiveAi()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1326 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Effective Ai
ทำงานยังไง
เรียกต่อ: isNoAi(). คืนค่า: super.isEffectiveAi() && !this.isNoAi().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#isLeftHanded()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1350 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Left Handed
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: (this.entityData.get(DATA_MOB_FLAGS_ID) & 2) != 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#isMaxGroupSizeReached(int)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:837 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Max Group Size Reached
ทำงานยังไง
คืนค่า: false.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#isNoAi()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1346 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ No Ai
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: (this.entityData.get(DATA_MOB_FLAGS_ID) & 1) != 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#isPersistenceRequired()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1163 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Persistence Required
ทำงานยังไง
คืนค่า: this.persistenceRequired.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#isSunBurnTick()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1416 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Sun Burn Tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), isDay(), getLightLevelDependentMagicValue(), containing(), getX(), getEyeY(), getZ(), isInWaterRainOrBubble(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#isWearingBodyArmor()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:875 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Wearing Body Armor
ทำงานยังไง
เรียกต่อ: getItemBySlot(), isEmpty(). คืนค่า: !this.getItemBySlot(EquipmentSlot.BODY).isEmpty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#isWithinMeleeAttackRange(LivingEntity)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1366 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Within Melee Attack Range
ทำงานยังไง
เรียกต่อ: getAttackBoundingBox(), intersects(), getHitbox(). คืนค่า: this.getAttackBoundingBox().intersects(livingEntity.getHitbox()).
Parameters
LivingEntity livingEntity
ตัวอย่างใช้งาน
Mob instance = ...;
LivingEntity livingEntity = ...;
boolean result = instance.isWithinMeleeAttackRange(livingEntity);
net.minecraft.world.entity.Mob#isWithinRestriction()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1227 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Within Restriction
ทำงานยังไง
เรียกต่อ: blockPosition(). คืนค่า: this.isWithinRestriction(this.blockPosition()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#isWithinRestriction(BlockPos)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1231 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Within Restriction
ทำงานยังไง
แก้ state: restrictRadius. เรียกต่อ: distSqr(). คืนค่า: this.restrictRadius == -1.0F ? true : this.restrictCenter.distSqr(blockPos) < this.restrictRadius * this.restrictRadius.
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
Mob instance = ...;
BlockPos blockPos = ...;
boolean result = instance.isWithinRestriction(blockPos);
net.minecraft.world.entity.Mob#jumpInLiquid(TagKey<Fluid>)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1429 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ jumpInLiquid ตาม implementation ของ Mob
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getNavigation(), canFloat(), setDeltaMovement(), getDeltaMovement(), add().
Parameters
TagKey<Fluid> tagKey
ตัวอย่างใช้งาน
TagKey<Fluid> tagKey = ...;
@Override
protected void jumpInLiquid(TagKey<Fluid> tagKey) {
super.jumpInLiquid(tagKey);
}
net.minecraft.world.entity.Mob#leashTooFarBehaviour()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1305 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ leashTooFarBehaviour ตาม implementation ของ Mob
ทำงานยังไง
เรียกต่อ: disableControlFlag().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#lookAt(Entity,float,float)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:788 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ lookAt ตาม implementation ของ Mob
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getX(), getZ(), getEyeY(), getBoundingBox(), sqrt(), atan2(), setXRot(), rotlerp().
Parameters
Entity entityfloat ffloat g
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#Mob(EntityType<? extends Mob>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:133 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Mob ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: goalSelector, targetSelector, lookControl, moveControl, jumpControl, bodyRotationControl. เรียกต่อ: createBodyControl(), createNavigation(), fill(), registerGoals(). สร้างออบเจ็กต์: GoalSelector, LookControl, MoveControl, JumpControl.
Parameters
EntityType<? extends Mob> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<? extends Mob> entityType = ...;
Level level = ...;
Mob instance = new Mob(entityType, level);
net.minecraft.world.entity.Mob#mobInteract(Player,InteractionHand)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1223 - Modifiers:
protected - Return:
InteractionResult
คืออะไร
ดำเนินการ mobInteract ตาม implementation ของ Mob
ทำงานยังไง
คืนค่า: InteractionResult.PASS.
Parameters
Player playerInteractionHand interactionHand
ตัวอย่างใช้งาน
Player player = ...;
InteractionHand interactionHand = ...;
@Override
protected InteractionResult mobInteract(Player player, InteractionHand interactionHand) {
return super.mobInteract(player, interactionHand);
}
net.minecraft.world.entity.Mob#onAttributeUpdated(Holder<Attribute>)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1465 - Modifiers:
protected - Return:
void
คืออะไร
จัดการเหตุการณ์ Attribute Updated
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: is(), getNavigation(), updatePathfinderMaxVisitedNodes().
Parameters
Holder<Attribute> holder
ตัวอย่างใช้งาน
Holder<Attribute> holder = ...;
@Override
protected void onAttributeUpdated(Holder<Attribute> holder) {
super.onAttributeUpdated(holder);
}
net.minecraft.world.entity.Mob#onLeashRemoved()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1298 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Leash Removed
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getLeashData(), clearRestriction().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#onOffspringSpawnedFromEgg(Player,Mob)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1220 - Modifiers:
protected - Return:
void
คืออะไร
จัดการเหตุการณ์ Offspring Spawned From Egg
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Player playerMob mob
ตัวอย่างใช้งาน
Player player = ...;
Mob mob = ...;
@Override
protected void onOffspringSpawnedFromEgg(Player player, Mob mob) {
super.onOffspringSpawnedFromEgg(player, mob);
}
net.minecraft.world.entity.Mob#onPathfindingDone()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:185 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Pathfinding Done
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#onPathfindingStart()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:182 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Pathfinding Start
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#pickUpItem(ServerLevel,ItemEntity)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:549 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ pickUpItem ตาม implementation ของ Mob
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getItem(), equipItemIfPossible(), copy(), isEmpty(), onItemPickup(), take(), getCount(), shrink().
Parameters
ServerLevel serverLevelItemEntity itemEntity
ตัวอย่างใช้งาน
ServerLevel serverLevel = ...;
ItemEntity itemEntity = ...;
@Override
protected void pickUpItem(ServerLevel serverLevel, ItemEntity itemEntity) {
super.pickUpItem(serverLevel, itemEntity);
}
net.minecraft.world.entity.Mob#playAmbientSound()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:257 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ playAmbientSound ตาม implementation ของ Mob
ทำงานยังไง
เรียกต่อ: makeSound(), getAmbientSound().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#playAttackSound()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1413 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ playAttackSound ตาม implementation ของ Mob
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#playHurtSound(DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:274 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ playHurtSound ตาม implementation ของ Mob
ทำงานยังไง
เรียกต่อ: resetAmbientSoundTime().
Parameters
DamageSource damageSource
ตัวอย่างใช้งาน
DamageSource damageSource = ...;
@Override
protected void playHurtSound(DamageSource damageSource) {
super.playHurtSound(damageSource);
}
net.minecraft.world.entity.Mob#populateDefaultEquipmentEnchantments(ServerLevelAccessor,RandomSource,DifficultyInstance)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1083 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ populateDefaultEquipmentEnchantments ตาม implementation ของ Mob
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: enchantSpawnedWeapon(), getType(), enchantSpawnedArmor().
Parameters
ServerLevelAccessor serverLevelAccessorRandomSource randomSourceDifficultyInstance difficultyInstance
ตัวอย่างใช้งาน
ServerLevelAccessor serverLevelAccessor = ...;
RandomSource randomSource = ...;
DifficultyInstance difficultyInstance = ...;
@Override
protected void populateDefaultEquipmentEnchantments(ServerLevelAccessor serverLevelAccessor, RandomSource randomSource, DifficultyInstance difficultyInstance) {
super.populateDefaultEquipmentEnchantments(serverLevelAccessor, randomSource, difficultyInstance);
}
net.minecraft.world.entity.Mob#populateDefaultEquipmentSlots(RandomSource,DifficultyInstance)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:992 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ populateDefaultEquipmentSlots ตาม implementation ของ Mob
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: nextFloat(), getSpecialMultiplier(), nextInt(), level(), getDifficulty(), getItemBySlot(), isEmpty(), getEquipmentForSlot(). สร้างออบเจ็กต์: ItemStack.
Parameters
RandomSource randomSourceDifficultyInstance difficultyInstance
ตัวอย่างใช้งาน
RandomSource randomSource = ...;
DifficultyInstance difficultyInstance = ...;
@Override
protected void populateDefaultEquipmentSlots(RandomSource randomSource, DifficultyInstance difficultyInstance) {
super.populateDefaultEquipmentSlots(randomSource, difficultyInstance);
}
net.minecraft.world.entity.Mob#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:416 - Modifiers:
public - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: persistenceRequired, bodyArmorItem, bodyArmorDropChance, lootTable, lootTableSeed. เรียกต่อ: setCanPickUpLoot(), getBoolean(), contains(), getList(), size(), getCompound(), set(), parseOptional().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#registerGoals()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:151 - Modifiers:
protected - Return:
void
คืออะไร
ลงทะเบียน Goals
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#removeAfterChangingDimensions()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1448 - Modifiers:
protected - Return:
void
คืออะไร
ลบ After Changing Dimensions
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getAllSlots(), forEach(), isEmpty(), setCount().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#removeAllGoals(Predicate<Goal>)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1444 - Modifiers:
public - Return:
void
คืออะไร
ลบ All Goals
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Predicate<Goal> predicate
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#removeFreeWill()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1438 - Modifiers:
public - Return:
void
คืออะไร
ลบ Free Will
ทำงานยังไง
เรียกต่อ: removeAllGoals(), getBrain(), removeAllBehaviors().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#removeWhenFarAway(double)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:679 - Modifiers:
public - Return:
boolean
คืออะไร
ลบ When Far Away
ทำงานยังไง
คืนค่า: true.
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#requiresCustomPersistence()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:683 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ requiresCustomPersistence ตาม implementation ของ Mob
ทำงานยังไง
เรียกต่อ: isPassenger(). คืนค่า: this.isPassenger().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#restrictTo(BlockPos,int)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1235 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ restrictTo ตาม implementation ของ Mob
ทำงานยังไง
แก้ state: restrictCenter, restrictRadius.
Parameters
BlockPos blockPosint i
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#sendDebugPackets()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:760 - Modifiers:
protected - Return:
void
คืออะไร
ส่ง Debug Packets
ทำงานยังไง
เรียกต่อ: sendGoalSelector(), level().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#serverAiStep()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:718 - Modifiers:
protected final - Return:
void
คืออะไร
ดำเนินการ serverAiStep ตาม implementation ของ Mob
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: noActionTime. เรียกต่อ: get(), push(), tick(), pop(), getId(), tickRunningGoals(), customServerAiStep(), level().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#setAggressive(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1341 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Aggressive
ทำงานยังไง
เรียกต่อ: get(), set().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#setBaby(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1358 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Baby
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#setBodyArmorItem(ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:879 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Body Armor Item
ทำงานยังไง
เรียกต่อ: setItemSlotAndDropWhenKilled().
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#setCanPickUpLoot(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1154 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Can Pick Up Loot
ทำงานยังไง
แก้ state: canPickUpLoot.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#setDropChance(EquipmentSlot,float)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1135 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Drop Chance
ทำงานยังไง
แยกกรณีด้วย switch. แก้ state: bodyArmorDropChance. เรียกต่อ: getType(), getIndex().
Parameters
EquipmentSlot equipmentSlotfloat f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#setGuaranteedDrop(EquipmentSlot)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:592 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Guaranteed Drop
ทำงานยังไง
แยกกรณีด้วย switch. แก้ state: bodyArmorDropChance. เรียกต่อ: getType(), getIndex().
Parameters
EquipmentSlot equipmentSlot
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#setItemSlot(EquipmentSlot,ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:897 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Item Slot
ทำงานยังไง
แยกกรณีด้วย switch. แก้ state: bodyArmorItem. เรียกต่อ: verifyEquippedItem(), getType(), onEquipItem(), set(), getIndex().
Parameters
EquipmentSlot equipmentSlotItemStack itemStack
ตัวอย่างใช้งาน
Mob instance = ...;
EquipmentSlot equipmentSlot = ...;
ItemStack itemStack = ...;
instance.setItemSlot(equipmentSlot, itemStack);
net.minecraft.world.entity.Mob#setItemSlotAndDropWhenKilled(EquipmentSlot,ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:586 - Modifiers:
protected - Return:
void
คืออะไร
กำหนดค่า Item Slot And Drop When Killed
ทำงานยังไง
แก้ state: persistenceRequired. เรียกต่อ: setItemSlot(), setGuaranteedDrop().
Parameters
EquipmentSlot equipmentSlotItemStack itemStack
ตัวอย่างใช้งาน
EquipmentSlot equipmentSlot = ...;
ItemStack itemStack = ...;
@Override
protected void setItemSlotAndDropWhenKilled(EquipmentSlot equipmentSlot, ItemStack itemStack) {
super.setItemSlotAndDropWhenKilled(equipmentSlot, itemStack);
}
net.minecraft.world.entity.Mob#setLeashData(Leashable.LeashData)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1293 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Leash Data
ทำงานยังไง
แก้ state: leashData.
Parameters
Leashable.LeashData leashData
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#setLeftHanded(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1336 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Left Handed
ทำงานยังไง
เรียกต่อ: get(), set().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#setNoAi(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1331 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า No Ai
ทำงานยังไง
เรียกต่อ: get(), set().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#setPathfindingMalus(PathType,float)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:178 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Pathfinding Malus
ทำงานยังไง
เรียกต่อ: put().
Parameters
PathType pathTypefloat f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#setPersistenceRequired()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1131 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Persistence Required
ทำงานยังไง
แก้ state: persistenceRequired.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#setSpeed(float)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:510 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Speed
ทำงานยังไง
เรียกต่อ: setZza().
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#setTarget(LivingEntity)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:230 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Target
ทำงานยังไง
แก้ state: target.
Parameters
LivingEntity livingEntity
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#setXxa(float)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:506 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Xxa
ทำงานยังไง
แก้ state: xxa.
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#setYya(float)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:502 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Yya
ทำงานยังไง
แก้ state: yya.
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#setZza(float)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:498 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Zza
ทำงานยังไง
แก้ state: zza.
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#shouldDespawnInPeaceful()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:687 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Despawn In Peaceful
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#shouldPassengersInheritMalus()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:162 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Passengers Inherit Malus
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
@Override
protected boolean shouldPassengersInheritMalus() {
return super.shouldPassengersInheritMalus();
}
net.minecraft.world.entity.Mob#spawnAnim()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:311 - Modifiers:
public - Return:
void
คืออะไร
สร้าง entity ในโลก Anim
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), makePoofParticles(), broadcastEntityEvent().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#startRiding(Entity,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:1316 - Modifiers:
public - Return:
boolean
คืออะไร
เริ่ม Riding
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isLeashed(), dropLeash(). คืนค่า: bl2.
Parameters
Entity entityboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#stopInPlace()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:516 - Modifiers:
public - Return:
void
คืออะไร
หยุด In Place
ทำงานยังไง
เรียกต่อ: getNavigation(), stop(), setXxa(), setYya(), setSpeed().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#tick()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:328 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), updateControlFlags().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#tickHeadTurn(float,float)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:344 - Modifiers:
protected - Return:
float
คืออะไร
ประมวลผล tick Head Turn
ทำงานยังไง
เรียกต่อ: clientTick(). คืนค่า: g.
Parameters
float ffloat g
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#updateControlFlags()
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:336 - Modifiers:
protected - Return:
void
คืออะไร
อัปเดต Control Flags
ทำงานยังไง
เรียกต่อ: getControllingPassenger(), getVehicle(), setControlFlag().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Mob#wantsToPickUp(ServerLevel,ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/Mob.java:670 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ wantsToPickUp ตาม implementation ของ Mob
ทำงานยังไง
เรียกต่อ: canHoldItem(). คืนค่า: this.canHoldItem(itemStack).
Parameters
ServerLevel serverLevelItemStack itemStack
ตัวอย่างใช้งาน
Mob instance = ...;
ServerLevel serverLevel = ...;
ItemStack itemStack = ...;
boolean result = instance.wantsToPickUp(serverLevel, itemStack);
MobCategory
- Full name:
net.minecraft.world.entity.MobCategory - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/MobCategory.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.entity.MobCategory#getDespawnDistance()
- Origin:
common - Source:
net/minecraft/world/entity/MobCategory.java:53 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Despawn Distance
ทำงานยังไง
คืนค่า: this.despawnDistance.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.MobCategory#getMaxInstancesPerChunk()
- Origin:
common - Source:
net/minecraft/world/entity/MobCategory.java:41 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Max Instances Per Chunk
ทำงานยังไง
คืนค่า: this.max.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.MobCategory#getName()
- Origin:
common - Source:
net/minecraft/world/entity/MobCategory.java:32 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.MobCategory#getNoDespawnDistance()
- Origin:
common - Source:
net/minecraft/world/entity/MobCategory.java:57 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า No Despawn Distance
ทำงานยังไง
คืนค่า: 32.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.MobCategory#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/entity/MobCategory.java:36 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.MobCategory#isFriendly()
- Origin:
common - Source:
net/minecraft/world/entity/MobCategory.java:45 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Friendly
ทำงานยังไง
คืนค่า: this.isFriendly.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.MobCategory#isPersistent()
- Origin:
common - Source:
net/minecraft/world/entity/MobCategory.java:49 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Persistent
ทำงานยังไง
คืนค่า: this.isPersistent.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
NeutralMob
- Full name:
net.minecraft.world.entity.NeutralMob - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/NeutralMob.java - Type:
interface - Modifiers:
public
net.minecraft.world.entity.NeutralMob#addPersistentAngerSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/NeutralMob.java:27 - Modifiers:
default - Return:
void
คืออะไร
เพิ่ม Persistent Anger Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: putInt(), getRemainingPersistentAngerTime(), getPersistentAngerTarget(), putUUID().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
NeutralMob instance = ...;
CompoundTag compoundTag = ...;
instance.addPersistentAngerSaveData(compoundTag);
net.minecraft.world.entity.NeutralMob#canAttack(LivingEntity)
- Origin:
common - Source:
net/minecraft/world/entity/NeutralMob.java:125 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Attack
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
LivingEntity livingEntity
ตัวอย่างใช้งาน
NeutralMob instance = ...;
LivingEntity livingEntity = ...;
boolean result = instance.canAttack(livingEntity);
net.minecraft.world.entity.NeutralMob#forgetCurrentTargetAndRefreshUniversalAnger()
- Origin:
common - Source:
net/minecraft/world/entity/NeutralMob.java:104 - Modifiers:
default - Return:
void
คืออะไร
ดำเนินการ forgetCurrentTargetAndRefreshUniversalAnger ตาม implementation ของ NeutralMob
ทำงานยังไง
เรียกต่อ: stopBeingAngry(), startPersistentAngerTimer().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.NeutralMob#getLastHurtByMob()
- Origin:
common - Source:
net/minecraft/world/entity/NeutralMob.java:116 - Modifiers: ``
- Return:
LivingEntity
คืออะไร
อ่านค่า Last Hurt By Mob
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.NeutralMob#getPersistentAngerTarget()
- Origin:
common - Source:
net/minecraft/world/entity/NeutralMob.java:20 - Modifiers: ``
- Return:
UUID
คืออะไร
อ่านค่า Persistent Anger Target
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.NeutralMob#getRemainingPersistentAngerTime()
- Origin:
common - Source:
net/minecraft/world/entity/NeutralMob.java:16 - Modifiers: ``
- Return:
int
คืออะไร
อ่านค่า Remaining Persistent Anger Time
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.NeutralMob#getTarget()
- Origin:
common - Source:
net/minecraft/world/entity/NeutralMob.java:127 - Modifiers: ``
- Return:
LivingEntity
คืออะไร
อ่านค่า Target
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.NeutralMob#isAngry()
- Origin:
common - Source:
net/minecraft/world/entity/NeutralMob.java:92 - Modifiers:
default - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Angry
ทำงานยังไง
เรียกต่อ: getRemainingPersistentAngerTime(). คืนค่า: this.getRemainingPersistentAngerTime() > 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.NeutralMob#isAngryAt(LivingEntity,ServerLevel)
- Origin:
common - Source:
net/minecraft/world/entity/NeutralMob.java:78 - Modifiers:
default - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Angry At
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: canAttack(), getType(), isAngryAtAllPlayers(), getUUID(), equals(), getPersistentAngerTarget(). คืนค่า: false.
Parameters
LivingEntity livingEntityServerLevel serverLevel
ตัวอย่างใช้งาน
NeutralMob instance = ...;
LivingEntity livingEntity = ...;
ServerLevel serverLevel = ...;
boolean result = instance.isAngryAt(livingEntity, serverLevel);
net.minecraft.world.entity.NeutralMob#isAngryAtAllPlayers(ServerLevel)
- Origin:
common - Source:
net/minecraft/world/entity/NeutralMob.java:88 - Modifiers:
default - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Angry At All Players
ทำงานยังไง
เรียกต่อ: getGameRules(), getBoolean(), isAngry(), getPersistentAngerTarget(). คืนค่า: serverLevel.getGameRules().getBoolean(GameRules.RULE_UNIVERSAL_ANGER) && this.isAngry() && this.getPersistentAngerTarget() == null.
Parameters
ServerLevel serverLevel
ตัวอย่างใช้งาน
NeutralMob instance = ...;
ServerLevel serverLevel = ...;
boolean result = instance.isAngryAtAllPlayers(serverLevel);
net.minecraft.world.entity.NeutralMob#playerDied(ServerLevel,Player)
- Origin:
common - Source:
net/minecraft/world/entity/NeutralMob.java:96 - Modifiers:
default - Return:
void
คืออะไร
ดำเนินการ playerDied ตาม implementation ของ NeutralMob
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getGameRules(), getBoolean(), getUUID(), equals(), getPersistentAngerTarget(), stopBeingAngry().
Parameters
ServerLevel serverLevelPlayer player
ตัวอย่างใช้งาน
NeutralMob instance = ...;
ServerLevel serverLevel = ...;
Player player = ...;
instance.playerDied(serverLevel, player);
net.minecraft.world.entity.NeutralMob#readPersistentAngerSaveData(Level,CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/NeutralMob.java:34 - Modifiers:
default - Return:
void
คืออะไร
อ่าน Persistent Anger Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: setRemainingPersistentAngerTime(), getInt(), hasUUID(), setPersistentAngerTarget(), getUUID(), getEntity(), setTarget(), setLastHurtByMob().
Parameters
Level levelCompoundTag compoundTag
ตัวอย่างใช้งาน
NeutralMob instance = ...;
Level level = ...;
CompoundTag compoundTag = ...;
instance.readPersistentAngerSaveData(level, compoundTag);
net.minecraft.world.entity.NeutralMob#setLastHurtByMob(LivingEntity)
- Origin:
common - Source:
net/minecraft/world/entity/NeutralMob.java:119 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Last Hurt By Mob
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
LivingEntity livingEntity
ตัวอย่างใช้งาน
NeutralMob instance = ...;
LivingEntity livingEntity = ...;
instance.setLastHurtByMob(livingEntity);
net.minecraft.world.entity.NeutralMob#setLastHurtByPlayer(Player)
- Origin:
common - Source:
net/minecraft/world/entity/NeutralMob.java:121 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Last Hurt By Player
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.entity.NeutralMob#setPersistentAngerTarget(UUID)
- Origin:
common - Source:
net/minecraft/world/entity/NeutralMob.java:23 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Persistent Anger Target
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
UUID uUID
ตัวอย่างใช้งาน
net.minecraft.world.entity.NeutralMob#setRemainingPersistentAngerTime(int)
- Origin:
common - Source:
net/minecraft/world/entity/NeutralMob.java:18 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Remaining Persistent Anger Time
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.NeutralMob#setTarget(LivingEntity)
- Origin:
common - Source:
net/minecraft/world/entity/NeutralMob.java:123 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Target
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
LivingEntity livingEntity
ตัวอย่างใช้งาน
net.minecraft.world.entity.NeutralMob#startPersistentAngerTimer()
- Origin:
common - Source:
net/minecraft/world/entity/NeutralMob.java:25 - Modifiers: ``
- Return:
void
คืออะไร
เริ่ม Persistent Anger Timer
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.NeutralMob#stopBeingAngry()
- Origin:
common - Source:
net/minecraft/world/entity/NeutralMob.java:109 - Modifiers:
default - Return:
void
คืออะไร
หยุด Being Angry
ทำงานยังไง
เรียกต่อ: setLastHurtByMob(), setPersistentAngerTarget(), setTarget(), setRemainingPersistentAngerTime().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.NeutralMob#updatePersistentAnger(ServerLevel,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/NeutralMob.java:58 - Modifiers:
default - Return:
void
คืออะไร
อัปเดต Persistent Anger
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getTarget(), getPersistentAngerTarget(), isDeadOrDying(), getEntity(), stopBeingAngry(), equals(), getUUID(), setPersistentAngerTarget().
Parameters
ServerLevel serverLevelboolean bl
ตัวอย่างใช้งาน
NeutralMob instance = ...;
ServerLevel serverLevel = ...;
instance.updatePersistentAnger(serverLevel, true);
OminousItemSpawner
- Full name:
net.minecraft.world.entity.OminousItemSpawner - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/OminousItemSpawner.java - Type:
class - Modifiers:
public - Extends:
Entity
net.minecraft.world.entity.OminousItemSpawner#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/OminousItemSpawner.java:121 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getItem(), isEmpty(), put(), save(), registryAccess(), copy(), putLong().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void addAdditionalSaveData(CompoundTag compoundTag) {
super.addAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.OminousItemSpawner#addParticles()
- Origin:
common - Source:
net/minecraft/world/entity/OminousItemSpawner.java:155 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Particles
ทำงานยังไง
มีการวนลูป. เรียกต่อ: position(), nextIntBetweenInclusive(), getX(), nextGaussian(), getY(), getZ(), vectorTo(), level(). สร้างออบเจ็กต์: Vec3.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.OminousItemSpawner#addPassenger(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/OminousItemSpawner.java:140 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Passenger
ทำงานยังไง
เรียกต่อ: couldAcceptPassenger(). สร้างออบเจ็กต์: IllegalStateException.
Parameters
Entity entity
ตัวอย่างใช้งาน
Entity entity = ...;
@Override
protected void addPassenger(Entity entity) {
super.addPassenger(entity);
}
net.minecraft.world.entity.OminousItemSpawner#canAddPassenger(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/OminousItemSpawner.java:130 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Add Passenger
ทำงานยังไง
คืนค่า: false.
Parameters
Entity entity
ตัวอย่างใช้งาน
Entity entity = ...;
@Override
protected boolean canAddPassenger(Entity entity) {
return super.canAddPassenger(entity);
}
net.minecraft.world.entity.OminousItemSpawner#couldAcceptPassenger()
- Origin:
common - Source:
net/minecraft/world/entity/OminousItemSpawner.java:135 - Modifiers:
protected - Return:
boolean
คืออะไร
ดำเนินการ couldAcceptPassenger ตาม implementation ของ OminousItemSpawner
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.OminousItemSpawner#create(Level,ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/OminousItemSpawner.java:36 - Modifiers:
public static - Return:
OminousItemSpawner
คืออะไร
สร้าง create
ทำงานยังไง
เรียกต่อ: nextIntBetweenInclusive(), setItem(). สร้างออบเจ็กต์: OminousItemSpawner. คืนค่า: ominousItemSpawner.
Parameters
Level levelItemStack itemStack
ตัวอย่างใช้งาน
Level level = ...;
ItemStack itemStack = ...;
OminousItemSpawner result = OminousItemSpawner.create(level, itemStack);
net.minecraft.world.entity.OminousItemSpawner#defineSynchedData(SynchedEntityData.Builder)
- Origin:
common - Source:
net/minecraft/world/entity/OminousItemSpawner.java:107 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ defineSynchedData ตาม implementation ของ OminousItemSpawner
ทำงานยังไง
เรียกต่อ: define().
Parameters
SynchedEntityData.Builder builder
ตัวอย่างใช้งาน
SynchedEntityData.Builder builder = ...;
@Override
protected void defineSynchedData(SynchedEntityData.Builder builder) {
super.defineSynchedData(builder);
}
net.minecraft.world.entity.OminousItemSpawner#getItem()
- Origin:
common - Source:
net/minecraft/world/entity/OminousItemSpawner.java:171 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Item
ทำงานยังไง
เรียกต่อ: getEntityData(), get(). คืนค่า: this.getEntityData().get(DATA_ITEM).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.OminousItemSpawner#getPistonPushReaction()
- Origin:
common - Source:
net/minecraft/world/entity/OminousItemSpawner.java:145 - Modifiers:
public - Return:
PushReaction
คืออะไร
อ่านค่า Piston Push Reaction
ทำงานยังไง
คืนค่า: PushReaction.IGNORE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.OminousItemSpawner#hurtServer(ServerLevel,DamageSource,float)
- Origin:
common - Source:
net/minecraft/world/entity/OminousItemSpawner.java:179 - Modifiers:
public final - Return:
boolean
คืออะไร
ประมวลผลความเสียหาย Server
ทำงานยังไง
คืนค่า: false.
Parameters
ServerLevel serverLevelDamageSource damageSourcefloat f
ตัวอย่างใช้งาน
OminousItemSpawner instance = ...;
ServerLevel serverLevel = ...;
DamageSource damageSource = ...;
boolean result = instance.hurtServer(serverLevel, damageSource, 0.0F);
net.minecraft.world.entity.OminousItemSpawner#isIgnoringBlockTriggers()
- Origin:
common - Source:
net/minecraft/world/entity/OminousItemSpawner.java:150 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Ignoring Block Triggers
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.OminousItemSpawner#OminousItemSpawner(EntityType<? extends OminousItemSpawner>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/OminousItemSpawner.java:31 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ OminousItemSpawner ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: noPhysics.
Parameters
EntityType<? extends OminousItemSpawner> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<? extends OminousItemSpawner> entityType = ...;
Level level = ...;
OminousItemSpawner instance = new OminousItemSpawner(entityType, level);
net.minecraft.world.entity.OminousItemSpawner#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/OminousItemSpawner.java:112 - Modifiers:
protected - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
แก้ state: spawnItemAfterTicks. เรียกต่อ: contains(), parse(), registryAccess(), getCompound(), orElse(), setItem(), getLong().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
@Override
protected void readAdditionalSaveData(CompoundTag compoundTag) {
super.readAdditionalSaveData(compoundTag);
}
net.minecraft.world.entity.OminousItemSpawner#tick()
- Origin:
common - Source:
net/minecraft/world/entity/OminousItemSpawner.java:43 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), tickServer(), tickClient().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
OwnableEntity
- Full name:
net.minecraft.world.entity.OwnableEntity - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/OwnableEntity.java - Type:
interface - Modifiers:
public
net.minecraft.world.entity.OwnableEntity#getOwner()
- Origin:
common - Source:
net/minecraft/world/entity/OwnableEntity.java:13 - Modifiers:
default - Return:
LivingEntity
คืออะไร
อ่านค่า Owner
ทำงานยังไง
เรียกต่อ: getOwnerUUID(), level(), getPlayerByUUID(). คืนค่า: uUID == null ? null : this.level().getPlayerByUUID(uUID).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.OwnableEntity#getOwnerUUID()
- Origin:
common - Source:
net/minecraft/world/entity/OwnableEntity.java:8 - Modifiers: ``
- Return:
UUID
คืออะไร
อ่านค่า Owner UUID
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.OwnableEntity#level()
- Origin:
common - Source:
net/minecraft/world/entity/OwnableEntity.java:11 - Modifiers: ``
- Return:
EntityGetter
คืออะไร
ดำเนินการ level ตาม implementation ของ OwnableEntity
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
PathfinderMob
- Full name:
net.minecraft.world.entity.PathfinderMob - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/PathfinderMob.java - Type:
class - Modifiers:
public abstract - Extends:
Mob
net.minecraft.world.entity.PathfinderMob#checkSpawnRules(LevelAccessor,EntitySpawnReason)
- Origin:
common - Source:
net/minecraft/world/entity/PathfinderMob.java:28 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบ Spawn Rules
ทำงานยังไง
เรียกต่อ: getWalkTargetValue(), blockPosition(). คืนค่า: this.getWalkTargetValue(this.blockPosition(), levelAccessor) >= 0.0F.
Parameters
LevelAccessor levelAccessorEntitySpawnReason entitySpawnReason
ตัวอย่างใช้งาน
PathfinderMob instance = ...;
LevelAccessor levelAccessor = ...;
EntitySpawnReason entitySpawnReason = ...;
boolean result = instance.checkSpawnRules(levelAccessor, entitySpawnReason);
net.minecraft.world.entity.PathfinderMob#closeRangeLeashBehaviour(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/PathfinderMob.java:55 - Modifiers:
public - Return:
void
คืออะไร
ปิด Range Leash Behaviour
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: shouldStayCloseToLeashHolder(), isPanicking(), enableControlFlag(), distanceTo(), getX(), getY(), getZ(), normalize(). สร้างออบเจ็กต์: Vec3.
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.PathfinderMob#followLeashSpeed()
- Origin:
common - Source:
net/minecraft/world/entity/PathfinderMob.java:73 - Modifiers:
protected - Return:
double
คืออะไร
ดำเนินการ followLeashSpeed ตาม implementation ของ PathfinderMob
ทำงานยังไง
คืนค่า: 1.0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.PathfinderMob#getWalkTargetValue(BlockPos)
- Origin:
common - Source:
net/minecraft/world/entity/PathfinderMob.java:20 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Walk Target Value
ทำงานยังไง
เรียกต่อ: level(). คืนค่า: this.getWalkTargetValue(blockPos, this.level()).
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
PathfinderMob instance = ...;
BlockPos blockPos = ...;
float result = instance.getWalkTargetValue(blockPos);
net.minecraft.world.entity.PathfinderMob#getWalkTargetValue(BlockPos,LevelReader)
- Origin:
common - Source:
net/minecraft/world/entity/PathfinderMob.java:24 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Walk Target Value
ทำงานยังไง
คืนค่า: 0.0F.
Parameters
BlockPos blockPosLevelReader levelReader
ตัวอย่างใช้งาน
PathfinderMob instance = ...;
BlockPos blockPos = ...;
LevelReader levelReader = ...;
float result = instance.getWalkTargetValue(blockPos, levelReader);
net.minecraft.world.entity.PathfinderMob#handleLeashAtDistance(Entity,float)
- Origin:
common - Source:
net/minecraft/world/entity/PathfinderMob.java:67 - Modifiers:
public - Return:
boolean
คืออะไร
จัดการ Leash At Distance
ทำงานยังไง
เรียกต่อ: restrictTo(), blockPosition(). คืนค่า: true.
Parameters
Entity entityfloat f
ตัวอย่างใช้งาน
PathfinderMob instance = ...;
Entity entity = ...;
boolean result = instance.handleLeashAtDistance(entity, 0.0F);
net.minecraft.world.entity.PathfinderMob#isPanicking()
- Origin:
common - Source:
net/minecraft/world/entity/PathfinderMob.java:37 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Panicking
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: hasMemoryValue(), getMemory(), isPresent(), getAvailableGoals(), isRunning(), getGoal(). มีจุด return อย่างน้อย 3 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.PathfinderMob#isPathFinding()
- Origin:
common - Source:
net/minecraft/world/entity/PathfinderMob.java:33 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Path Finding
ทำงานยังไง
เรียกต่อ: getNavigation(), isDone(). คืนค่า: !this.getNavigation().isDone().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.PathfinderMob#PathfinderMob(EntityType<? extends PathfinderMob>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/PathfinderMob.java:16 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ PathfinderMob ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EntityType<? extends PathfinderMob> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<? extends PathfinderMob> entityType = ...;
Level level = ...;
PathfinderMob instance = new PathfinderMob(entityType, level);
net.minecraft.world.entity.PathfinderMob#shouldStayCloseToLeashHolder()
- Origin:
common - Source:
net/minecraft/world/entity/PathfinderMob.java:51 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Stay Close To Leash Holder
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
@Override
protected boolean shouldStayCloseToLeashHolder() {
return super.shouldStayCloseToLeashHolder();
}
PlayerRideableJumping
- Full name:
net.minecraft.world.entity.PlayerRideableJumping - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/PlayerRideableJumping.java - Type:
interface - Modifiers:
public - Implements:
PlayerRideable
net.minecraft.world.entity.PlayerRideableJumping#canJump()
- Origin:
common - Source:
net/minecraft/world/entity/PlayerRideableJumping.java:6 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Jump
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.PlayerRideableJumping#getJumpCooldown()
- Origin:
common - Source:
net/minecraft/world/entity/PlayerRideableJumping.java:12 - Modifiers:
default - Return:
int
คืออะไร
อ่านค่า Jump Cooldown
ทำงานยังไง
คืนค่า: 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.PlayerRideableJumping#handleStartJump(int)
- Origin:
common - Source:
net/minecraft/world/entity/PlayerRideableJumping.java:8 - Modifiers: ``
- Return:
void
คืออะไร
จัดการ Start Jump
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.entity.PlayerRideableJumping#handleStopJump()
- Origin:
common - Source:
net/minecraft/world/entity/PlayerRideableJumping.java:10 - Modifiers: ``
- Return:
void
คืออะไร
จัดการ Stop Jump
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.PlayerRideableJumping#onPlayerJump(int)
- Origin:
common - Source:
net/minecraft/world/entity/PlayerRideableJumping.java:4 - Modifiers: ``
- Return:
void
คืออะไร
จัดการเหตุการณ์ Player Jump
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int i
ตัวอย่างใช้งาน
PortalProcessor
- Full name:
net.minecraft.world.entity.PortalProcessor - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/PortalProcessor.java - Type:
class - Modifiers:
public
net.minecraft.world.entity.PortalProcessor#getEntryPosition()
- Origin:
common - Source:
net/minecraft/world/entity/PortalProcessor.java:48 - Modifiers:
public - Return:
BlockPos
คืออะไร
อ่านค่า Entry Position
ทำงานยังไง
คืนค่า: this.entryPosition.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.PortalProcessor#getPortalDestination(ServerLevel,Entity)
- Origin:
common - Source:
net/minecraft/world/entity/PortalProcessor.java:31 - Modifiers:
public - Return:
TeleportTransition
คืออะไร
อ่านค่า Portal Destination
ทำงานยังไง
คืนค่า: this.portal.getPortalDestination(serverLevel, entity, this.entryPosition).
Parameters
ServerLevel serverLevelEntity entity
ตัวอย่างใช้งาน
PortalProcessor instance = ...;
ServerLevel serverLevel = ...;
Entity entity = ...;
TeleportTransition result = instance.getPortalDestination(serverLevel, entity);
net.minecraft.world.entity.PortalProcessor#getPortalLocalTransition()
- Origin:
common - Source:
net/minecraft/world/entity/PortalProcessor.java:36 - Modifiers:
public - Return:
Portal.Transition
คืออะไร
อ่านค่า Portal Local Transition
ทำงานยังไง
เรียกต่อ: getLocalTransition(). คืนค่า: this.portal.getLocalTransition().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.PortalProcessor#getPortalTime()
- Origin:
common - Source:
net/minecraft/world/entity/PortalProcessor.java:56 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Portal Time
ทำงานยังไง
คืนค่า: this.portalTime.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.PortalProcessor#hasExpired()
- Origin:
common - Source:
net/minecraft/world/entity/PortalProcessor.java:44 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Expired
ทำงานยังไง
คืนค่า: this.portalTime <= 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.PortalProcessor#isInsidePortalThisTick()
- Origin:
common - Source:
net/minecraft/world/entity/PortalProcessor.java:60 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Inside Portal This Tick
ทำงานยังไง
คืนค่า: this.insidePortalThisTick.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.PortalProcessor#isSamePortal(Portal)
- Origin:
common - Source:
net/minecraft/world/entity/PortalProcessor.java:68 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Same Portal
ทำงานยังไง
แก้ state: portal. คืนค่า: this.portal == portal.
Parameters
Portal portal
ตัวอย่างใช้งาน
PortalProcessor instance = ...;
Portal portal = ...;
boolean result = instance.isSamePortal(portal);
net.minecraft.world.entity.PortalProcessor#PortalProcessor(Portal,BlockPos)
- Origin:
common - Source:
net/minecraft/world/entity/PortalProcessor.java:15 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ PortalProcessor ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: portal, entryPosition, insidePortalThisTick.
Parameters
Portal portalBlockPos blockPos
ตัวอย่างใช้งาน
Portal portal = ...;
BlockPos blockPos = ...;
PortalProcessor instance = new PortalProcessor(portal, blockPos);
net.minecraft.world.entity.PortalProcessor#processPortalTeleportation(ServerLevel,Entity,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/PortalProcessor.java:21 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ processPortalTeleportation ตาม implementation ของ PortalProcessor
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: insidePortalThisTick, portalTime. เรียกต่อ: decayTick(), getPortalTransitionTime(). มีจุด return อย่างน้อย 2 จุด.
Parameters
ServerLevel serverLevelEntity entityboolean bl
ตัวอย่างใช้งาน
PortalProcessor instance = ...;
ServerLevel serverLevel = ...;
Entity entity = ...;
boolean result = instance.processPortalTeleportation(serverLevel, entity, true);
net.minecraft.world.entity.PortalProcessor#setAsInsidePortalThisTick(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/PortalProcessor.java:64 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า As Inside Portal This Tick
ทำงานยังไง
แก้ state: insidePortalThisTick.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.PortalProcessor#updateEntryPosition(BlockPos)
- Origin:
common - Source:
net/minecraft/world/entity/PortalProcessor.java:52 - Modifiers:
public - Return:
void
คืออะไร
อัปเดต Entry Position
ทำงานยังไง
แก้ state: entryPosition.
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
Pose
- Full name:
net.minecraft.world.entity.Pose - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/Pose.java - Type:
enum - Modifiers:
public
net.minecraft.world.entity.Pose#id()
- Origin:
common - Source:
net/minecraft/world/entity/Pose.java:37 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ id ตาม implementation ของ Pose
ทำงานยังไง
คืนค่า: this.id.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
PositionMoveRotation
- Full name:
net.minecraft.world.entity.PositionMoveRotation - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/PositionMoveRotation.java - Type:
record - Modifiers:
public
net.minecraft.world.entity.PositionMoveRotation#calculateAbsolute(PositionMoveRotation,PositionMoveRotation,Set<Relative>)
- Origin:
common - Source:
net/minecraft/world/entity/PositionMoveRotation.java:37 - Modifiers:
public static - Return:
PositionMoveRotation
คืออะไร
คำนวณ Absolute
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: contains(), xRot(), toRadians(), yRot(), calculateDelta(). สร้างออบเจ็กต์: Vec3, PositionMoveRotation. คืนค่า: new PositionMoveRotation(vec3, vec33, i, j).
Parameters
PositionMoveRotation positionMoveRotationPositionMoveRotation positionMoveRotation2Set<Relative> set
ตัวอย่างใช้งาน
PositionMoveRotation positionMoveRotation = ...;
PositionMoveRotation positionMoveRotation2 = ...;
Set<Relative> set = ...;
PositionMoveRotation result = PositionMoveRotation.calculateAbsolute(positionMoveRotation, positionMoveRotation2, set);
net.minecraft.world.entity.PositionMoveRotation#of(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/PositionMoveRotation.java:23 - Modifiers:
public static - Return:
PositionMoveRotation
คืออะไร
ดำเนินการ of ตาม implementation ของ PositionMoveRotation
ทำงานยังไง
เรียกต่อ: position(), getKnownMovement(), getYRot(), getXRot(). สร้างออบเจ็กต์: PositionMoveRotation. คืนค่า: new PositionMoveRotation(entity.position(), entity.getKnownMovement(), entity.getYRot(), entity.getXRot()).
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.PositionMoveRotation#of(TeleportTransition)
- Origin:
common - Source:
net/minecraft/world/entity/PositionMoveRotation.java:33 - Modifiers:
public static - Return:
PositionMoveRotation
คืออะไร
ดำเนินการ of ตาม implementation ของ PositionMoveRotation
ทำงานยังไง
เรียกต่อ: position(), deltaMovement(), yRot(), xRot(). สร้างออบเจ็กต์: PositionMoveRotation. คืนค่า: new PositionMoveRotation(teleportTransition.position(), teleportTransition.deltaMovement(), teleportTransition.yRot(), teleportTransition.xRot()).
Parameters
TeleportTransition teleportTransition
ตัวอย่างใช้งาน
TeleportTransition teleportTransition = ...;
PositionMoveRotation result = PositionMoveRotation.of(teleportTransition);
net.minecraft.world.entity.PositionMoveRotation#ofEntityUsingLerpTarget(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/PositionMoveRotation.java:27 - Modifiers:
public static - Return:
PositionMoveRotation
คืออะไร
ดำเนินการ ofEntityUsingLerpTarget ตาม implementation ของ PositionMoveRotation
ทำงานยังไง
เรียกต่อ: lerpTargetX(), lerpTargetY(), lerpTargetZ(), getKnownMovement(), getYRot(), getXRot(). สร้างออบเจ็กต์: PositionMoveRotation, Vec3.
Parameters
Entity entity
ตัวอย่างใช้งาน
Entity entity = ...;
PositionMoveRotation result = PositionMoveRotation.ofEntityUsingLerpTarget(entity);
Relative
- Full name:
net.minecraft.world.entity.Relative - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/Relative.java - Type:
enum - Modifiers:
public
net.minecraft.world.entity.Relative#pack(Set<Relative>)
- Origin:
common - Source:
net/minecraft/world/entity/Relative.java:62 - Modifiers:
public static - Return:
int
คืออะไร
ดำเนินการ pack ตาม implementation ของ Relative
ทำงานยังไง
มีการวนลูป. เรียกต่อ: getMask(). คืนค่า: i.
Parameters
Set<Relative> set
ตัวอย่างใช้งาน
net.minecraft.world.entity.Relative#union(Set<Relative>[])
- Origin:
common - Source:
net/minecraft/world/entity/Relative.java:27 - Modifiers:
public static - Return:
Set<Relative>
คืออะไร
ดำเนินการ union ตาม implementation ของ Relative
ทำงานยังไง
มีการวนลูป. เรียกต่อ: addAll(). สร้างออบเจ็กต์: HashSet<>. คืนค่า: hashSet.
Parameters
Set<Relative>[] sets
ตัวอย่างใช้งาน
net.minecraft.world.entity.Relative#unpack(int)
- Origin:
common - Source:
net/minecraft/world/entity/Relative.java:50 - Modifiers:
public static - Return:
Set<Relative>
คืออะไร
ดำเนินการ unpack ตาม implementation ของ Relative
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: noneOf(), values(), isSet(), add(). คืนค่า: set.
Parameters
int i
ตัวอย่างใช้งาน
ReputationEventHandler
- Full name:
net.minecraft.world.entity.ReputationEventHandler - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/ReputationEventHandler.java - Type:
interface - Modifiers:
public
net.minecraft.world.entity.ReputationEventHandler#onReputationEventFrom(ReputationEventType,Entity)
- Origin:
common - Source:
net/minecraft/world/entity/ReputationEventHandler.java:6 - Modifiers: ``
- Return:
void
คืออะไร
จัดการเหตุการณ์ Reputation Event From
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
ReputationEventType reputationEventTypeEntity entity
ตัวอย่างใช้งาน
ReputationEventHandler instance = ...;
ReputationEventType reputationEventType = ...;
Entity entity = ...;
instance.onReputationEventFrom(reputationEventType, entity);
Saddleable
- Full name:
net.minecraft.world.entity.Saddleable - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/Saddleable.java - Type:
interface - Modifiers:
public
net.minecraft.world.entity.Saddleable#equipSaddle(ItemStack,SoundSource)
- Origin:
common - Source:
net/minecraft/world/entity/Saddleable.java:12 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ equipSaddle ตาม implementation ของ Saddleable
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
ItemStack itemStackSoundSource soundSource
ตัวอย่างใช้งาน
Saddleable instance = ...;
ItemStack itemStack = ...;
SoundSource soundSource = ...;
instance.equipSaddle(itemStack, soundSource);
net.minecraft.world.entity.Saddleable#getSaddleSoundEvent()
- Origin:
common - Source:
net/minecraft/world/entity/Saddleable.java:14 - Modifiers:
default - Return:
SoundEvent
คืออะไร
อ่านค่า Saddle Sound Event
ทำงานยังไง
คืนค่า: SoundEvents.HORSE_SADDLE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Saddleable#isSaddleable()
- Origin:
common - Source:
net/minecraft/world/entity/Saddleable.java:10 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ Saddleable
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Saddleable#isSaddled()
- Origin:
common - Source:
net/minecraft/world/entity/Saddleable.java:18 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ Saddled
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Shearable
- Full name:
net.minecraft.world.entity.Shearable - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/Shearable.java - Type:
interface - Modifiers:
public
net.minecraft.world.entity.Shearable#readyForShearing()
- Origin:
common - Source:
net/minecraft/world/entity/Shearable.java:10 - Modifiers: ``
- Return:
boolean
คืออะไร
ดำเนินการ readyForShearing ตาม implementation ของ Shearable
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.Shearable#shear(ServerLevel,SoundSource,ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/Shearable.java:8 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ shear ตาม implementation ของ Shearable
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
ServerLevel serverLevelSoundSource soundSourceItemStack itemStack
ตัวอย่างใช้งาน
Shearable instance = ...;
ServerLevel serverLevel = ...;
SoundSource soundSource = ...;
ItemStack itemStack = ...;
instance.shear(serverLevel, soundSource, itemStack);
SlotAccess
- Full name:
net.minecraft.world.entity.SlotAccess - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/SlotAccess.java - Type:
interface - Modifiers:
public
net.minecraft.world.entity.SlotAccess#forContainer(Container,int)
- Origin:
common - Source:
net/minecraft/world/entity/SlotAccess.java:56 - Modifiers:
static - Return:
SlotAccess
คืออะไร
ดำเนินการ forContainer ตาม implementation ของ SlotAccess
ทำงานยังไง
คืนค่า: forContainer(container, i, itemStack -> true).
Parameters
Container containerint i
ตัวอย่างใช้งาน
net.minecraft.world.entity.SlotAccess#forContainer(Container,int,Predicate<ItemStack>)
- Origin:
common - Source:
net/minecraft/world/entity/SlotAccess.java:37 - Modifiers:
static - Return:
SlotAccess
คืออะไร
ดำเนินการ forContainer ตาม implementation ของ SlotAccess
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), getItem(), set(), test(), setItem(). สร้างออบเจ็กต์: SlotAccess. มีจุด return อย่างน้อย 3 จุด.
Parameters
Container containerint iPredicate<ItemStack> predicate
ตัวอย่างใช้งาน
Container container = ...;
Predicate<ItemStack> predicate = ...;
SlotAccess result = SlotAccess.forContainer(container, 0, predicate);
net.minecraft.world.entity.SlotAccess#forEquipmentSlot(LivingEntity,EquipmentSlot)
- Origin:
common - Source:
net/minecraft/world/entity/SlotAccess.java:79 - Modifiers:
static - Return:
SlotAccess
คืออะไร
ดำเนินการ forEquipmentSlot ตาม implementation ของ SlotAccess
ทำงานยังไง
คืนค่า: forEquipmentSlot(livingEntity, equipmentSlot, itemStack -> true).
Parameters
LivingEntity livingEntityEquipmentSlot equipmentSlot
ตัวอย่างใช้งาน
LivingEntity livingEntity = ...;
EquipmentSlot equipmentSlot = ...;
SlotAccess result = SlotAccess.forEquipmentSlot(livingEntity, equipmentSlot);
net.minecraft.world.entity.SlotAccess#forEquipmentSlot(LivingEntity,EquipmentSlot,Predicate<ItemStack>)
- Origin:
common - Source:
net/minecraft/world/entity/SlotAccess.java:60 - Modifiers:
static - Return:
SlotAccess
คืออะไร
ดำเนินการ forEquipmentSlot ตาม implementation ของ SlotAccess
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), getItemBySlot(), set(), test(), setItemSlot(). สร้างออบเจ็กต์: SlotAccess. มีจุด return อย่างน้อย 3 จุด.
Parameters
LivingEntity livingEntityEquipmentSlot equipmentSlotPredicate<ItemStack> predicate
ตัวอย่างใช้งาน
LivingEntity livingEntity = ...;
EquipmentSlot equipmentSlot = ...;
Predicate<ItemStack> predicate = ...;
SlotAccess result = SlotAccess.forEquipmentSlot(livingEntity, equipmentSlot, predicate);
net.minecraft.world.entity.SlotAccess#get()
- Origin:
common - Source:
net/minecraft/world/entity/SlotAccess.java:83 - Modifiers: ``
- Return:
ItemStack
คืออะไร
อ่านค่า get
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.SlotAccess#of(Supplier<ItemStack>,Consumer<ItemStack>)
- Origin:
common - Source:
net/minecraft/world/entity/SlotAccess.java:22 - Modifiers:
static - Return:
SlotAccess
คืออะไร
ดำเนินการ of ตาม implementation ของ SlotAccess
ทำงานยังไง
เรียกต่อ: get(), set(), accept(). สร้างออบเจ็กต์: SlotAccess. มีจุด return อย่างน้อย 2 จุด.
Parameters
Supplier<ItemStack> supplierConsumer<ItemStack> consumer
ตัวอย่างใช้งาน
Supplier<ItemStack> supplier = ...;
Consumer<ItemStack> consumer = ...;
SlotAccess result = SlotAccess.of(supplier, consumer);
net.minecraft.world.entity.SlotAccess#set(ItemStack)
- Origin:
common - Source:
net/minecraft/world/entity/SlotAccess.java:85 - Modifiers: ``
- Return:
boolean
คืออะไร
กำหนดค่า set
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
ItemStack itemStack
ตัวอย่างใช้งาน
SpawnPlacements
- Full name:
net.minecraft.world.entity.SpawnPlacements - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/SpawnPlacements.java - Type:
class - Modifiers:
public
net.minecraft.world.entity.SpawnPlacements#checkSpawnRules(EntityType<T>,ServerLevelAccessor,EntitySpawnReason,BlockPos,RandomSource)
- Origin:
common - Source:
net/minecraft/world/entity/SpawnPlacements.java:73 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบ Spawn Rules
ทำงานยังไง
เรียกต่อ: get(), test(). คืนค่า: data == null || data.predicate.test(entityType, serverLevelAccessor, entitySpawnReason, blockPos, randomSource).
Parameters
EntityType<T> entityTypeServerLevelAccessor serverLevelAccessorEntitySpawnReason entitySpawnReasonBlockPos blockPosRandomSource randomSource
ตัวอย่างใช้งาน
EntityType<T> entityType = ...;
ServerLevelAccessor serverLevelAccessor = ...;
EntitySpawnReason entitySpawnReason = ...;
BlockPos blockPos = ...;
RandomSource randomSource = ...;
boolean result = SpawnPlacements.checkSpawnRules(entityType, serverLevelAccessor, entitySpawnReason, blockPos, randomSource);
net.minecraft.world.entity.SpawnPlacements#getHeightmapType(EntityType<?>)
- Origin:
common - Source:
net/minecraft/world/entity/SpawnPlacements.java:68 - Modifiers:
public static - Return:
Heightmap.Types
คืออะไร
อ่านค่า Heightmap Type
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: data == null ? Heightmap.Types.MOTION_BLOCKING_NO_LEAVES : data.heightMap.
Parameters
EntityType<?> entityType
ตัวอย่างใช้งาน
EntityType<?> entityType = ...;
Heightmap.Types result = SpawnPlacements.getHeightmapType(entityType);
net.minecraft.world.entity.SpawnPlacements#getPlacementType(EntityType<?>)
- Origin:
common - Source:
net/minecraft/world/entity/SpawnPlacements.java:59 - Modifiers:
public static - Return:
SpawnPlacementType
คืออะไร
อ่านค่า Placement Type
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: data == null ? SpawnPlacementTypes.NO_RESTRICTIONS : data.placement.
Parameters
EntityType<?> entityType
ตัวอย่างใช้งาน
EntityType<?> entityType = ...;
SpawnPlacementType result = SpawnPlacements.getPlacementType(entityType);
net.minecraft.world.entity.SpawnPlacements#isSpawnPositionOk(EntityType<?>,LevelReader,BlockPos)
- Origin:
common - Source:
net/minecraft/world/entity/SpawnPlacements.java:64 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Spawn Position Ok
ทำงานยังไง
เรียกต่อ: getPlacementType(). คืนค่า: getPlacementType(entityType).isSpawnPositionOk(levelReader, blockPos, entityType).
Parameters
EntityType<?> entityTypeLevelReader levelReaderBlockPos blockPos
ตัวอย่างใช้งาน
EntityType<?> entityType = ...;
LevelReader levelReader = ...;
BlockPos blockPos = ...;
boolean result = SpawnPlacements.isSpawnPositionOk(entityType, levelReader, blockPos);
net.minecraft.world.entity.SpawnPlacements#register(EntityType<T>,SpawnPlacementType,Heightmap.Types,SpawnPlacements.SpawnPredicate<T>)
- Origin:
common - Source:
net/minecraft/world/entity/SpawnPlacements.java:50 - Modifiers:
public static - Return:
void
คืออะไร
ลงทะเบียน register
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: put(), Data(), getKey(). สร้างออบเจ็กต์: SpawnPlacements.Data, IllegalStateException.
Parameters
EntityType<T> entityTypeSpawnPlacementType spawnPlacementTypeHeightmap.Types typesSpawnPlacements.SpawnPredicate<T> spawnPredicate
ตัวอย่างใช้งาน
EntityType<T> entityType = ...;
SpawnPlacementType spawnPlacementType = ...;
Heightmap.Types types = ...;
SpawnPlacements.SpawnPredicate<T> spawnPredicate = ...;
SpawnPlacements.register(entityType, spawnPlacementType, types, spawnPredicate);
SpawnPlacements$SpawnPredicate
- Full name:
net.minecraft.world.entity.SpawnPlacements$SpawnPredicate - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/SpawnPlacements.java - Type:
interface - Modifiers:
public
net.minecraft.world.entity.SpawnPlacements$SpawnPredicate#test(EntityType<T>,ServerLevelAccessor,EntitySpawnReason,BlockPos,RandomSource)
- Origin:
common - Source:
net/minecraft/world/entity/SpawnPlacements.java:174 - Modifiers: ``
- Return:
boolean
คืออะไร
ทดสอบเงื่อนไข test
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
EntityType<T> entityTypeServerLevelAccessor serverLevelAccessorEntitySpawnReason entitySpawnReasonBlockPos blockPosRandomSource randomSource
ตัวอย่างใช้งาน
SpawnPlacements.SpawnPredicate instance = ...;
EntityType<T> entityType = ...;
ServerLevelAccessor serverLevelAccessor = ...;
EntitySpawnReason entitySpawnReason = ...;
BlockPos blockPos = ...;
RandomSource randomSource = ...;
boolean result = instance.test(entityType, serverLevelAccessor, entitySpawnReason, blockPos, randomSource);
SpawnPlacementType
- Full name:
net.minecraft.world.entity.SpawnPlacementType - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/SpawnPlacementType.java - Type:
interface - Modifiers:
public
net.minecraft.world.entity.SpawnPlacementType#adjustSpawnPosition(LevelReader,BlockPos)
- Origin:
common - Source:
net/minecraft/world/entity/SpawnPlacementType.java:10 - Modifiers:
default - Return:
BlockPos
คืออะไร
ดำเนินการ adjustSpawnPosition ตาม implementation ของ SpawnPlacementType
ทำงานยังไง
คืนค่า: blockPos.
Parameters
LevelReader levelReaderBlockPos blockPos
ตัวอย่างใช้งาน
SpawnPlacementType instance = ...;
LevelReader levelReader = ...;
BlockPos blockPos = ...;
BlockPos result = instance.adjustSpawnPosition(levelReader, blockPos);
net.minecraft.world.entity.SpawnPlacementType#isSpawnPositionOk(LevelReader,BlockPos,EntityType<?>)
- Origin:
common - Source:
net/minecraft/world/entity/SpawnPlacementType.java:8 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ Spawn Position Ok
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
LevelReader levelReaderBlockPos blockPosEntityType<?> entityType
ตัวอย่างใช้งาน
SpawnPlacementType instance = ...;
LevelReader levelReader = ...;
BlockPos blockPos = ...;
EntityType<?> entityType = ...;
boolean result = instance.isSpawnPositionOk(levelReader, blockPos, entityType);
TamableAnimal
- Full name:
net.minecraft.world.entity.TamableAnimal - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/TamableAnimal.java - Type:
class - Modifiers:
public abstract - Extends:
Animal - Implements:
OwnableEntity
net.minecraft.world.entity.TamableAnimal#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:53 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Additional Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getOwnerUUID(), putUUID(), putBoolean().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
TamableAnimal instance = ...;
CompoundTag compoundTag = ...;
instance.addAdditionalSaveData(compoundTag);
net.minecraft.world.entity.TamableAnimal#applyTamingSideEffects()
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:150 - Modifiers:
protected - Return:
void
คืออะไร
นำไปใช้ Taming Side Effects
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.TamableAnimal#canAttack(LivingEntity)
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:184 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Attack
ทำงานยังไง
เรียกต่อ: isOwnedBy(). คืนค่า: this.isOwnedBy(livingEntity) ? false : super.canAttack(livingEntity).
Parameters
LivingEntity livingEntity
ตัวอย่างใช้งาน
TamableAnimal instance = ...;
LivingEntity livingEntity = ...;
boolean result = instance.canAttack(livingEntity);
net.minecraft.world.entity.TamableAnimal#canBeLeashed()
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:90 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Be Leashed
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.TamableAnimal#canFlyToOwner()
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:298 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Fly To Owner
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.TamableAnimal#considersEntityAsAlly(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:209 - Modifiers:
protected - Return:
boolean
คืออะไร
ดำเนินการ considersEntityAsAlly ตาม implementation ของ TamableAnimal
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isTame(), getOwner(). มีจุด return อย่างน้อย 3 จุด.
Parameters
Entity entity
ตัวอย่างใช้งาน
Entity entity = ...;
@Override
protected boolean considersEntityAsAlly(Entity entity) {
return super.considersEntityAsAlly(entity);
}
net.minecraft.world.entity.TamableAnimal#defineSynchedData(SynchedEntityData.Builder)
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:46 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ defineSynchedData ตาม implementation ของ TamableAnimal
ทำงานยังไง
เรียกต่อ: define(), empty().
Parameters
SynchedEntityData.Builder builder
ตัวอย่างใช้งาน
SynchedEntityData.Builder builder = ...;
@Override
protected void defineSynchedData(SynchedEntityData.Builder builder) {
super.defineSynchedData(builder);
}
net.minecraft.world.entity.TamableAnimal#die(DamageSource)
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:225 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ die ตาม implementation ของ TamableAnimal
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), getGameRules(), getBoolean(), getOwner(), sendSystemMessage(), getCombatTracker(), getDeathMessage().
Parameters
DamageSource damageSource
ตัวอย่างใช้งาน
net.minecraft.world.entity.TamableAnimal#getOwnerUUID()
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:166 - Modifiers:
public - Return:
UUID
คืออะไร
อ่านค่า Owner UUID
ทำงานยังไง
เรียกต่อ: get(), orElse(). คืนค่า: this.entityData.get(DATA_OWNERUUID_ID).orElse(null).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.TamableAnimal#getTeam()
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:197 - Modifiers:
public - Return:
PlayerTeam
คืออะไร
อ่านค่า Team
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isTame(), getOwner(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.TamableAnimal#handleEntityEvent(byte)
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:122 - Modifiers:
public - Return:
void
คืออะไร
จัดการ Entity Event
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: spawnTamingParticles().
Parameters
byte b
ตัวอย่างใช้งาน
net.minecraft.world.entity.TamableAnimal#handleLeashAtDistance(Entity,float)
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:95 - Modifiers:
public - Return:
boolean
คืออะไร
จัดการ Leash At Distance
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isInSittingPose(), dropLeash(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Entity entityfloat f
ตัวอย่างใช้งาน
TamableAnimal instance = ...;
Entity entity = ...;
boolean result = instance.handleLeashAtDistance(entity, 0.0F);
net.minecraft.world.entity.TamableAnimal#isInSittingPose()
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:153 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ In Sitting Pose
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: (this.entityData.get(DATA_FLAGS_ID) & 1) != 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.TamableAnimal#isOrderedToSit()
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:236 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Ordered To Sit
ทำงานยังไง
คืนค่า: this.orderedToSit.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.TamableAnimal#isOwnedBy(LivingEntity)
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:189 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Owned By
ทำงานยังไง
เรียกต่อ: getOwner(). คืนค่า: livingEntity == this.getOwner().
Parameters
LivingEntity livingEntity
ตัวอย่างใช้งาน
TamableAnimal instance = ...;
LivingEntity livingEntity = ...;
boolean result = instance.isOwnedBy(livingEntity);
net.minecraft.world.entity.TamableAnimal#isTame()
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:133 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Tame
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: (this.entityData.get(DATA_FLAGS_ID) & 4) != 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.TamableAnimal#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:63 - Modifiers:
public - Return:
void
คืออะไร
อ่าน Additional Save Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. แก้ state: orderedToSit. เรียกต่อ: hasUUID(), getUUID(), getString(), convertMobOwnerIfNecessary(), getServer(), setOwnerUUID(), setTame(), getBoolean().
Parameters
CompoundTag compoundTag
ตัวอย่างใช้งาน
TamableAnimal instance = ...;
CompoundTag compoundTag = ...;
instance.readAdditionalSaveData(compoundTag);
net.minecraft.world.entity.TamableAnimal#setInSittingPose(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:157 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า In Sitting Pose
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), set().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.TamableAnimal#setOrderedToSit(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:240 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Ordered To Sit
ทำงานยังไง
แก้ state: orderedToSit.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.TamableAnimal#setOwnerUUID(UUID)
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:172 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Owner UUID
ทำงานยังไง
เรียกต่อ: set(), ofNullable().
Parameters
UUID uUID
ตัวอย่างใช้งาน
net.minecraft.world.entity.TamableAnimal#setTame(boolean,boolean)
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:137 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Tame
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), set(), applyTamingSideEffects().
Parameters
boolean blboolean bl2
ตัวอย่างใช้งาน
net.minecraft.world.entity.TamableAnimal#shouldTryTeleportToOwner()
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:251 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Try Teleport To Owner
ทำงานยังไง
เรียกต่อ: getOwner(), distanceToSqr(). คืนค่า: livingEntity != null && this.distanceToSqr(this.getOwner()) >= 144.0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.TamableAnimal#spawnTamingParticles(boolean)
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:108 - Modifiers:
protected - Return:
void
คืออะไร
สร้าง entity ในโลก Taming Particles
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: nextGaussian(), level(), addParticle(), getRandomX(), getRandomY(), getRandomZ().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.entity.TamableAnimal#TamableAnimal(EntityType<? extends TamableAnimal>,Level)
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:42 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TamableAnimal ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
EntityType<? extends TamableAnimal> entityTypeLevel level
ตัวอย่างใช้งาน
EntityType<? extends TamableAnimal> entityType = ...;
Level level = ...;
TamableAnimal instance = new TamableAnimal(entityType, level);
net.minecraft.world.entity.TamableAnimal#tame(Player)
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:176 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ tame ตาม implementation ของ TamableAnimal
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: setTame(), setOwnerUUID(), getUUID(), trigger().
Parameters
Player player
ตัวอย่างใช้งาน
net.minecraft.world.entity.TamableAnimal#tryToTeleportToOwner()
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:244 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ tryToTeleportToOwner ตาม implementation ของ TamableAnimal
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getOwner(), teleportToAroundBlockPos(), blockPosition().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.TamableAnimal#unableToMoveToOwner()
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:294 - Modifiers:
public final - Return:
boolean
คืออะไร
ดำเนินการ unableToMoveToOwner ตาม implementation ของ TamableAnimal
ทำงานยังไง
เรียกต่อ: isOrderedToSit(), isPassenger(), mayBeLeashed(), getOwner(), isSpectator(). คืนค่า: this.isOrderedToSit() || this.isPassenger() || this.mayBeLeashed() || this.getOwner() != null && this.getOwner().isSpectator().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.TamableAnimal#wantsToAttack(LivingEntity,LivingEntity)
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:193 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ wantsToAttack ตาม implementation ของ TamableAnimal
ทำงานยังไง
คืนค่า: true.
Parameters
LivingEntity livingEntityLivingEntity livingEntity2
ตัวอย่างใช้งาน
TamableAnimal instance = ...;
LivingEntity livingEntity = ...;
LivingEntity livingEntity2 = ...;
boolean result = instance.wantsToAttack(livingEntity, livingEntity2);
TamableAnimal$TamableAnimalPanicGoal
- Full name:
net.minecraft.world.entity.TamableAnimal$TamableAnimalPanicGoal - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/TamableAnimal.java - Type:
class - Modifiers:
public - Extends:
PanicGoal
net.minecraft.world.entity.TamableAnimal$TamableAnimalPanicGoal#TamableAnimalPanicGoal(double)
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:307 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TamableAnimal.TamableAnimalPanicGoal ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.world.entity.TamableAnimal$TamableAnimalPanicGoal#TamableAnimalPanicGoal(double,TagKey<DamageType>)
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:303 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TamableAnimal.TamableAnimalPanicGoal ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
double dTagKey<DamageType> tagKey
ตัวอย่างใช้งาน
TagKey<DamageType> tagKey = ...;
TamableAnimal.TamableAnimalPanicGoal instance = new TamableAnimal.TamableAnimalPanicGoal(0.0D, tagKey);
net.minecraft.world.entity.TamableAnimal$TamableAnimalPanicGoal#tick()
- Origin:
common - Source:
net/minecraft/world/entity/TamableAnimal.java:311 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: unableToMoveToOwner(), shouldTryTeleportToOwner(), tryToTeleportToOwner().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Targeting
- Full name:
net.minecraft.world.entity.Targeting - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/Targeting.java - Type:
interface - Modifiers:
public
net.minecraft.world.entity.Targeting#getTarget()
- Origin:
common - Source:
net/minecraft/world/entity/Targeting.java:6 - Modifiers: ``
- Return:
LivingEntity
คืออะไร
อ่านค่า Target
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
TraceableEntity
- Full name:
net.minecraft.world.entity.TraceableEntity - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/TraceableEntity.java - Type:
interface - Modifiers:
public
net.minecraft.world.entity.TraceableEntity#getOwner()
- Origin:
common - Source:
net/minecraft/world/entity/TraceableEntity.java:6 - Modifiers: ``
- Return:
Entity
คืออะไร
อ่านค่า Owner
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
VariantHolder
- Full name:
net.minecraft.world.entity.VariantHolder - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/VariantHolder.java - Type:
interface - Modifiers:
public
net.minecraft.world.entity.VariantHolder#getVariant()
- Origin:
common - Source:
net/minecraft/world/entity/VariantHolder.java:6 - Modifiers: ``
- Return:
T
คืออะไร
อ่านค่า Variant
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.VariantHolder#setVariant(T)
- Origin:
common - Source:
net/minecraft/world/entity/VariantHolder.java:4 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Variant
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
T object
ตัวอย่างใช้งาน
WalkAnimationState
- Full name:
net.minecraft.world.entity.WalkAnimationState - Package:
net.minecraft.world.entity - Source:
common—net/minecraft/world/entity/WalkAnimationState.java - Type:
class - Modifiers:
public
net.minecraft.world.entity.WalkAnimationState#isMoving()
- Origin:
common - Source:
net/minecraft/world/entity/WalkAnimationState.java:44 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Moving
ทำงานยังไง
คืนค่า: this.speed > 1.0E-5F.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.WalkAnimationState#position()
- Origin:
common - Source:
net/minecraft/world/entity/WalkAnimationState.java:36 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ position ตาม implementation ของ WalkAnimationState
ทำงานยังไง
คืนค่า: this.position * this.positionScale.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.WalkAnimationState#position(float)
- Origin:
common - Source:
net/minecraft/world/entity/WalkAnimationState.java:40 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ position ตาม implementation ของ WalkAnimationState
ทำงานยังไง
คืนค่า: (this.position - this.speed * (1.0F - f)) * this.positionScale.
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.WalkAnimationState#setSpeed(float)
- Origin:
common - Source:
net/minecraft/world/entity/WalkAnimationState.java:11 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Speed
ทำงานยังไง
แก้ state: speed.
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.WalkAnimationState#speed()
- Origin:
common - Source:
net/minecraft/world/entity/WalkAnimationState.java:28 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ speed ตาม implementation ของ WalkAnimationState
ทำงานยังไง
คืนค่า: this.speed.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.WalkAnimationState#speed(float)
- Origin:
common - Source:
net/minecraft/world/entity/WalkAnimationState.java:32 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ speed ตาม implementation ของ WalkAnimationState
ทำงานยังไง
เรียกต่อ: min(), lerp(). คืนค่า: Math.min(Mth.lerp(f, this.speedOld, this.speed), 1.0F).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.entity.WalkAnimationState#stop()
- Origin:
common - Source:
net/minecraft/world/entity/WalkAnimationState.java:22 - Modifiers:
public - Return:
void
คืออะไร
หยุด stop
ทำงานยังไง
แก้ state: speedOld, speed, position.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.WalkAnimationState#update(float,float,float)
- Origin:
common - Source:
net/minecraft/world/entity/WalkAnimationState.java:15 - Modifiers:
public - Return:
void
คืออะไร
อัปเดต update
ทำงานยังไง
แก้ state: speedOld, speed, position, positionScale.
Parameters
float ffloat gfloat h