Package net.minecraft.world.entity.boss
Part 1/1
EnderDragonPart
- Full name:
net.minecraft.world.entity.boss.EnderDragonPart - Package:
net.minecraft.world.entity.boss - Source:
common—net/minecraft/world/entity/boss/EnderDragonPart.java - Type:
class - Modifiers:
public - Extends:
Entity
net.minecraft.world.entity.boss.EnderDragonPart#addAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/boss/EnderDragonPart.java:38 - 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.boss.EnderDragonPart#defineSynchedData(SynchedEntityData.Builder)
- Origin:
common - Source:
net/minecraft/world/entity/boss/EnderDragonPart.java:30 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ defineSynchedData ตาม implementation ของ EnderDragonPart
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
SynchedEntityData.Builder builder
ตัวอย่างใช้งาน
SynchedEntityData.Builder builder = ...;
@Override
protected void defineSynchedData(SynchedEntityData.Builder builder) {
super.defineSynchedData(builder);
}
net.minecraft.world.entity.boss.EnderDragonPart#EnderDragonPart(EnderDragon,String,float,float)
- Origin:
common - Source:
net/minecraft/world/entity/boss/EnderDragonPart.java:22 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EnderDragonPart ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: size, parentMob, name. เรียกต่อ: getType(), level(), scalable(), refreshDimensions().
Parameters
EnderDragon enderDragonString stringfloat ffloat g
ตัวอย่างใช้งาน
EnderDragon enderDragon = ...;
EnderDragonPart instance = new EnderDragonPart(enderDragon, "value", 0.0F, 0.0F);
net.minecraft.world.entity.boss.EnderDragonPart#getAddEntityPacket(ServerEntity)
- Origin:
common - Source:
net/minecraft/world/entity/boss/EnderDragonPart.java:63 - Modifiers:
public - Return:
Packet<ClientGamePacketListener>
คืออะไร
อ่านค่า Add Entity Packet
ทำงานยังไง
สร้างออบเจ็กต์: UnsupportedOperationException.
Parameters
ServerEntity serverEntity
ตัวอย่างใช้งาน
EnderDragonPart instance = ...;
ServerEntity serverEntity = ...;
Packet<ClientGamePacketListener> result = instance.getAddEntityPacket(serverEntity);
net.minecraft.world.entity.boss.EnderDragonPart#getDimensions(Pose)
- Origin:
common - Source:
net/minecraft/world/entity/boss/EnderDragonPart.java:68 - Modifiers:
public - Return:
EntityDimensions
คืออะไร
อ่านค่า Dimensions
ทำงานยังไง
คืนค่า: this.size.
Parameters
Pose pose
ตัวอย่างใช้งาน
EnderDragonPart instance = ...;
Pose pose = ...;
EntityDimensions result = instance.getDimensions(pose);
net.minecraft.world.entity.boss.EnderDragonPart#getPickResult()
- Origin:
common - Source:
net/minecraft/world/entity/boss/EnderDragonPart.java:47 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Pick Result
ทำงานยังไง
คืนค่า: this.parentMob.getPickResult().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.boss.EnderDragonPart#hurtServer(ServerLevel,DamageSource,float)
- Origin:
common - Source:
net/minecraft/world/entity/boss/EnderDragonPart.java:53 - Modifiers:
public final - Return:
boolean
คืออะไร
ประมวลผลความเสียหาย Server
ทำงานยังไง
เรียกต่อ: isInvulnerableToBase(), hurt(). คืนค่า: this.isInvulnerableToBase(damageSource) ? false : this.parentMob.hurt(serverLevel, this, damageSource, f).
Parameters
ServerLevel serverLevelDamageSource damageSourcefloat f
ตัวอย่างใช้งาน
EnderDragonPart instance = ...;
ServerLevel serverLevel = ...;
DamageSource damageSource = ...;
boolean result = instance.hurtServer(serverLevel, damageSource, 0.0F);
net.minecraft.world.entity.boss.EnderDragonPart#is(Entity)
- Origin:
common - Source:
net/minecraft/world/entity/boss/EnderDragonPart.java:58 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ is
ทำงานยังไง
แก้ state: parentMob. คืนค่า: this == entity || this.parentMob == entity.
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.entity.boss.EnderDragonPart#isPickable()
- Origin:
common - Source:
net/minecraft/world/entity/boss/EnderDragonPart.java:42 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Pickable
ทำงานยังไง
คืนค่า: true.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.entity.boss.EnderDragonPart#readAdditionalSaveData(CompoundTag)
- Origin:
common - Source:
net/minecraft/world/entity/boss/EnderDragonPart.java:34 - 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.boss.EnderDragonPart#shouldBeSaved()
- Origin:
common - Source:
net/minecraft/world/entity/boss/EnderDragonPart.java:73 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Be Saved
ทำงานยังไง
คืนค่า: false.
Parameters
- ไม่มี