Package net.minecraft.world.damagesource
Part 1/1
CombatRules
- Full name:
net.minecraft.world.damagesource.CombatRules - Package:
net.minecraft.world.damagesource - Source:
common—net/minecraft/world/damagesource/CombatRules.java - Type:
class - Modifiers:
public
net.minecraft.world.damagesource.CombatRules#getDamageAfterAbsorb(LivingEntity,float,DamageSource,float,float)
- Origin:
common - Source:
net/minecraft/world/damagesource/CombatRules.java:16 - Modifiers:
public static - Return:
float
คืออะไร
อ่านค่า Damage After Absorb
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: clamp(), getWeaponItem(), level(), modifyArmorEffectiveness(). คืนค่า: f * m.
Parameters
LivingEntity livingEntityfloat fDamageSource damageSourcefloat gfloat h
ตัวอย่างใช้งาน
LivingEntity livingEntity = ...;
DamageSource damageSource = ...;
float result = CombatRules.getDamageAfterAbsorb(livingEntity, 0.0F, damageSource, 0.0F, 0.0F);
net.minecraft.world.damagesource.CombatRules#getDamageAfterMagicAbsorb(float,float)
- Origin:
common - Source:
net/minecraft/world/damagesource/CombatRules.java:32 - Modifiers:
public static - Return:
float
คืออะไร
อ่านค่า Damage After Magic Absorb
ทำงานยังไง
เรียกต่อ: clamp(). คืนค่า: f * (1.0F - h / 25.0F).
Parameters
float ffloat g
ตัวอย่างใช้งาน
CombatTracker
- Full name:
net.minecraft.world.damagesource.CombatTracker - Package:
net.minecraft.world.damagesource - Source:
common—net/minecraft/world/damagesource/CombatTracker.java - Type:
class - Modifiers:
public
net.minecraft.world.damagesource.CombatTracker#CombatTracker(LivingEntity)
- Origin:
common - Source:
net/minecraft/world/damagesource/CombatTracker.java:32 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CombatTracker ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: mob.
Parameters
LivingEntity livingEntity
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.CombatTracker#getCombatDuration()
- Origin:
common - Source:
net/minecraft/world/damagesource/CombatTracker.java:142 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Combat Duration
ทำงานยังไง
คืนค่า: this.inCombat ? this.mob.tickCount - this.combatStartTime : this.combatEndTime - this.combatStartTime.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.CombatTracker#getDeathMessage()
- Origin:
common - Source:
net/minecraft/world/damagesource/CombatTracker.java:86 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Death Message
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isEmpty(), translatable(), getDisplayName(), get(), size(), source(), getMostSignificantFall(), type(). มีจุด return อย่างน้อย 4 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.CombatTracker#recheckStatus()
- Origin:
common - Source:
net/minecraft/world/damagesource/CombatTracker.java:146 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ recheckStatus ตาม implementation ของ CombatTracker
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: takingDamage, inCombat, combatEndTime. เรียกต่อ: isAlive(), onLeaveCombat(), clear().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.CombatTracker#recordDamage(DamageSource,float)
- Origin:
common - Source:
net/minecraft/world/damagesource/CombatTracker.java:36 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ recordDamage ตาม implementation ของ CombatTracker
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: lastDamageTime, takingDamage, inCombat, combatStartTime, combatEndTime. เรียกต่อ: recheckStatus(), getCurrentFallLocation(), add(), isAlive(), shouldEnterCombat(), onEnterCombat(). สร้างออบเจ็กต์: CombatEntry.
Parameters
DamageSource damageSourcefloat f
ตัวอย่างใช้งาน
CombatTracker instance = ...;
DamageSource damageSource = ...;
instance.recordDamage(damageSource, 0.0F);
DamageEffects
- Full name:
net.minecraft.world.damagesource.DamageEffects - Package:
net.minecraft.world.damagesource - Source:
common—net/minecraft/world/damagesource/DamageEffects.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.damagesource.DamageEffects#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageEffects.java:25 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.id.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageEffects#sound()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageEffects.java:30 - Modifiers:
public - Return:
SoundEvent
คืออะไร
ดำเนินการ sound ตาม implementation ของ DamageEffects
ทำงานยังไง
คืนค่า: this.sound.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DamageScaling
- Full name:
net.minecraft.world.damagesource.DamageScaling - Package:
net.minecraft.world.damagesource - Source:
common—net/minecraft/world/damagesource/DamageScaling.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.damagesource.DamageScaling#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageScaling.java:18 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.id.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DamageSource
- Full name:
net.minecraft.world.damagesource.DamageSource - Package:
net.minecraft.world.damagesource - Source:
common—net/minecraft/world/damagesource/DamageSource.java - Type:
class - Modifiers:
public
net.minecraft.world.damagesource.DamageSource#DamageSource(Holder<DamageType>)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSource.java:56 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DamageSource ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Holder<DamageType> holder
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSource#DamageSource(Holder<DamageType>,Entity)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSource.java:52 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DamageSource ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Holder<DamageType> holderEntity entity
ตัวอย่างใช้งาน
Holder<DamageType> holder = ...;
Entity entity = ...;
DamageSource instance = new DamageSource(holder, entity);
net.minecraft.world.damagesource.DamageSource#DamageSource(Holder<DamageType>,Entity,Entity)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSource.java:44 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DamageSource ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Holder<DamageType> holderEntity entityEntity entity2
ตัวอย่างใช้งาน
Holder<DamageType> holder = ...;
Entity entity = ...;
Entity entity2 = ...;
DamageSource instance = new DamageSource(holder, entity, entity2);
net.minecraft.world.damagesource.DamageSource#DamageSource(Holder<DamageType>,Vec3)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSource.java:48 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DamageSource ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Holder<DamageType> holderVec3 vec3
ตัวอย่างใช้งาน
Holder<DamageType> holder = ...;
Vec3 vec3 = ...;
DamageSource instance = new DamageSource(holder, vec3);
net.minecraft.world.damagesource.DamageSource#getDirectEntity()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSource.java:60 - Modifiers:
public - Return:
Entity
คืออะไร
อ่านค่า Direct Entity
ทำงานยังไง
คืนค่า: this.directEntity.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSource#getEntity()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSource.java:65 - Modifiers:
public - Return:
Entity
คืออะไร
อ่านค่า Entity
ทำงานยังไง
คืนค่า: this.causingEntity.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSource#getFoodExhaustion()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSource.java:29 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า Food Exhaustion
ทำงานยังไง
เรียกต่อ: type(), exhaustion(). คืนค่า: this.type().exhaustion().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSource#getLocalizedDeathMessage(LivingEntity)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSource.java:75 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Localized Death Message
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: causingEntity, directEntity. เรียกต่อ: type(), msgId(), getKillCredit(), translatable(), getDisplayName(), getMainHandItem(), isEmpty(), has().
Parameters
LivingEntity livingEntity
ตัวอย่างใช้งาน
DamageSource instance = ...;
LivingEntity livingEntity = ...;
Component result = instance.getLocalizedDeathMessage(livingEntity);
net.minecraft.world.damagesource.DamageSource#getMsgId()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSource.java:92 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Msg Id
ทำงานยังไง
เรียกต่อ: type(), msgId(). คืนค่า: this.type().msgId().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSource#getSourcePosition()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSource.java:108 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Source Position
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: position(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSource#getWeaponItem()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSource.java:70 - Modifiers:
public - Return:
ItemStack
คืออะไร
อ่านค่า Weapon Item
ทำงานยังไง
คืนค่า: this.directEntity != null ? this.directEntity.getWeaponItem() : null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSource#is(ResourceKey<DamageType>)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSource.java:126 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ is
ทำงานยังไง
คืนค่า: this.type.is(resourceKey).
Parameters
ResourceKey<DamageType> resourceKey
ตัวอย่างใช้งาน
DamageSource instance = ...;
ResourceKey<DamageType> resourceKey = ...;
boolean result = instance.is(resourceKey);
net.minecraft.world.damagesource.DamageSource#is(TagKey<DamageType>)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSource.java:122 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ is
ทำงานยังไง
คืนค่า: this.type.is(tagKey).
Parameters
TagKey<DamageType> tagKey
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSource#isCreativePlayer()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSource.java:104 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Creative Player
ทำงานยังไง
เรียกต่อ: getEntity(), getAbilities(). คืนค่า: this.getEntity() instanceof Player player && player.getAbilities().instabuild.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSource#isDirect()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSource.java:33 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Direct
ทำงานยังไง
แก้ state: causingEntity. คืนค่า: this.causingEntity == this.directEntity.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSource#scalesWithDifficulty()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSource.java:96 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ scalesWithDifficulty ตาม implementation ของ DamageSource
ทำงานยังไง
แยกกรณีด้วย switch. เรียกต่อ: type(), scaling(). คืนค่า: switch (this.type().scaling()) { case NEVER -> false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSource#sourcePositionRaw()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSource.java:117 - Modifiers:
public - Return:
Vec3
คืออะไร
ดำเนินการ sourcePositionRaw ตาม implementation ของ DamageSource
ทำงานยังไง
คืนค่า: this.damageSourcePosition.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSource#toString()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSource.java:24 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ DamageSource
ทำงานยังไง
เรียกต่อ: DamageSource(), type(), msgId(). คืนค่า: "DamageSource (" + this.type().msgId() + ")".
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSource#type()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSource.java:130 - Modifiers:
public - Return:
DamageType
คืออะไร
ดำเนินการ type ตาม implementation ของ DamageSource
ทำงานยังไง
เรียกต่อ: value(). คืนค่า: this.type.value().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSource#typeHolder()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSource.java:134 - Modifiers:
public - Return:
Holder<DamageType>
คืออะไร
ดำเนินการ typeHolder ตาม implementation ของ DamageSource
ทำงานยังไง
คืนค่า: this.type.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DamageSources
- Full name:
net.minecraft.world.damagesource.DamageSources - Package:
net.minecraft.world.damagesource - Source:
common—net/minecraft/world/damagesource/DamageSources.java - Type:
class - Modifiers:
public
net.minecraft.world.damagesource.DamageSources#anvil(Entity)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:183 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ anvil ตาม implementation ของ DamageSources
ทำงานยังไง
เรียกต่อ: source(). คืนค่า: this.source(DamageTypes.FALLING_ANVIL, entity).
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#arrow(AbstractArrow,Entity)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:207 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ arrow ตาม implementation ของ DamageSources
ทำงานยังไง
เรียกต่อ: source(). คืนค่า: this.source(DamageTypes.ARROW, abstractArrow, entity).
Parameters
AbstractArrow abstractArrowEntity entity
ตัวอย่างใช้งาน
DamageSources instance = ...;
AbstractArrow abstractArrow = ...;
Entity entity = ...;
DamageSource result = instance.arrow(abstractArrow, entity);
net.minecraft.world.damagesource.DamageSources#badRespawnPointExplosion(Vec3)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:263 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ badRespawnPointExplosion ตาม implementation ของ DamageSources
ทำงานยังไง
เรียกต่อ: getOrThrow(). สร้างออบเจ็กต์: DamageSource. คืนค่า: new DamageSource(this.damageTypes.getOrThrow(DamageTypes.BAD_RESPAWN_POINT), vec3).
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
DamageSources instance = ...;
Vec3 vec3 = ...;
DamageSource result = instance.badRespawnPointExplosion(vec3);
net.minecraft.world.damagesource.DamageSources#cactus()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:127 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ cactus ตาม implementation ของ DamageSources
ทำงานยังไง
คืนค่า: this.cactus.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#campfire()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:91 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ campfire ตาม implementation ของ DamageSources
ทำงานยังไง
คืนค่า: this.campfire.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#cramming()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:115 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ cramming ตาม implementation ของ DamageSources
ทำงานยังไง
คืนค่า: this.cramming.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#DamageSources(RegistryAccess)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:46 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DamageSources ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: damageTypes, inFire, campfire, lightningBolt, onFire, lava. เรียกต่อ: lookupOrThrow(), source().
Parameters
RegistryAccess registryAccess
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#dragonBreath()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:159 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ dragonBreath ตาม implementation ของ DamageSources
ทำงานยังไง
คืนค่า: this.dragonBreath.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#drown()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:119 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ drown ตาม implementation ของ DamageSources
ทำงานยังไง
คืนค่า: this.drown.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#dryOut()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:163 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ dryOut ตาม implementation ของ DamageSources
ทำงานยังไง
คืนค่า: this.dryOut.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#enderPearl()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:135 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ enderPearl ตาม implementation ของ DamageSources
ทำงานยังไง
คืนค่า: this.enderPearl.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#explosion(Entity,Entity)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:255 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ explosion ตาม implementation ของ DamageSources
ทำงานยังไง
เรียกต่อ: source(). คืนค่า: this.source(entity2 != null && entity != null ? DamageTypes.PLAYER_EXPLOSION : DamageTypes.EXPLOSION, entity, entity2).
Parameters
Entity entityEntity entity2
ตัวอย่างใช้งาน
DamageSources instance = ...;
Entity entity = ...;
Entity entity2 = ...;
DamageSource result = instance.explosion(entity, entity2);
net.minecraft.world.damagesource.DamageSources#explosion(Explosion)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:251 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ explosion ตาม implementation ของ DamageSources
ทำงานยังไง
เรียกต่อ: getDirectSourceEntity(), getIndirectSourceEntity(). คืนค่า: explosion != null ? this.explosion(explosion.getDirectSourceEntity(), explosion.getIndirectSourceEntity()) : this.explosion(null, null).
Parameters
Explosion explosion
ตัวอย่างใช้งาน
DamageSources instance = ...;
Explosion explosion = ...;
DamageSource result = instance.explosion(explosion);
net.minecraft.world.damagesource.DamageSources#fall()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:131 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ fall ตาม implementation ของ DamageSources
ทำงานยังไง
คืนค่า: this.fall.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#fallingBlock(Entity)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:179 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ fallingBlock ตาม implementation ของ DamageSources
ทำงานยังไง
เรียกต่อ: source(). คืนค่า: this.source(DamageTypes.FALLING_BLOCK, entity).
Parameters
Entity entity
ตัวอย่างใช้งาน
DamageSources instance = ...;
Entity entity = ...;
DamageSource result = instance.fallingBlock(entity);
net.minecraft.world.damagesource.DamageSources#fallingStalactite(Entity)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:187 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ fallingStalactite ตาม implementation ของ DamageSources
ทำงานยังไง
เรียกต่อ: source(). คืนค่า: this.source(DamageTypes.FALLING_STALACTITE, entity).
Parameters
Entity entity
ตัวอย่างใช้งาน
DamageSources instance = ...;
Entity entity = ...;
DamageSource result = instance.fallingStalactite(entity);
net.minecraft.world.damagesource.DamageSources#fellOutOfWorld()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:143 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ fellOutOfWorld ตาม implementation ของ DamageSources
ทำงานยังไง
คืนค่า: this.fellOutOfWorld.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#fireball(Fireball,Entity)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:231 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ fireball ตาม implementation ของ DamageSources
ทำงานยังไง
เรียกต่อ: source(). คืนค่า: entity == null ? this.source(DamageTypes.UNATTRIBUTED_FIREBALL, fireball) : this.source(DamageTypes.FIREBALL, fireball, entity).
Parameters
Fireball fireballEntity entity
ตัวอย่างใช้งาน
DamageSources instance = ...;
Fireball fireball = ...;
Entity entity = ...;
DamageSource result = instance.fireball(fireball, entity);
net.minecraft.world.damagesource.DamageSources#fireworks(FireworkRocketEntity,Entity)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:227 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ fireworks ตาม implementation ของ DamageSources
ทำงานยังไง
เรียกต่อ: source(). คืนค่า: this.source(DamageTypes.FIREWORKS, fireworkRocketEntity, entity).
Parameters
FireworkRocketEntity fireworkRocketEntityEntity entity
ตัวอย่างใช้งาน
DamageSources instance = ...;
FireworkRocketEntity fireworkRocketEntity = ...;
Entity entity = ...;
DamageSource result = instance.fireworks(fireworkRocketEntity, entity);
net.minecraft.world.damagesource.DamageSources#flyIntoWall()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:139 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ flyIntoWall ตาม implementation ของ DamageSources
ทำงานยังไง
คืนค่า: this.flyIntoWall.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#freeze()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:171 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ freeze ตาม implementation ของ DamageSources
ทำงานยังไง
คืนค่า: this.freeze.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#generic()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:147 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ generic ตาม implementation ของ DamageSources
ทำงานยังไง
คืนค่า: this.generic.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#genericKill()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:271 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ genericKill ตาม implementation ของ DamageSources
ทำงานยังไง
คืนค่า: this.genericKill.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#hotFloor()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:107 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ hotFloor ตาม implementation ของ DamageSources
ทำงานยังไง
คืนค่า: this.hotFloor.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#indirectMagic(Entity,Entity)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:243 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ indirectMagic ตาม implementation ของ DamageSources
ทำงานยังไง
เรียกต่อ: source(). คืนค่า: this.source(DamageTypes.INDIRECT_MAGIC, entity, entity2).
Parameters
Entity entityEntity entity2
ตัวอย่างใช้งาน
DamageSources instance = ...;
Entity entity = ...;
Entity entity2 = ...;
DamageSource result = instance.indirectMagic(entity, entity2);
net.minecraft.world.damagesource.DamageSources#inFire()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:87 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ inFire ตาม implementation ของ DamageSources
ทำงานยังไง
คืนค่า: this.inFire.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#inWall()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:111 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ inWall ตาม implementation ของ DamageSources
ทำงานยังไง
คืนค่า: this.inWall.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#lava()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:103 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ lava ตาม implementation ของ DamageSources
ทำงานยังไง
คืนค่า: this.lava.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#lightningBolt()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:95 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ lightningBolt ตาม implementation ของ DamageSources
ทำงานยังไง
คืนค่า: this.lightningBolt.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#mace(Entity)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:275 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ mace ตาม implementation ของ DamageSources
ทำงานยังไง
เรียกต่อ: source(). คืนค่า: this.source(DamageTypes.MACE_SMASH, entity).
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#magic()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:151 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ magic ตาม implementation ของ DamageSources
ทำงานยังไง
คืนค่า: this.magic.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#mobAttack(LivingEntity)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:195 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ mobAttack ตาม implementation ของ DamageSources
ทำงานยังไง
เรียกต่อ: source(). คืนค่า: this.source(DamageTypes.MOB_ATTACK, livingEntity).
Parameters
LivingEntity livingEntity
ตัวอย่างใช้งาน
DamageSources instance = ...;
LivingEntity livingEntity = ...;
DamageSource result = instance.mobAttack(livingEntity);
net.minecraft.world.damagesource.DamageSources#mobProjectile(Entity,LivingEntity)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:215 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ mobProjectile ตาม implementation ของ DamageSources
ทำงานยังไง
เรียกต่อ: source(). คืนค่า: this.source(DamageTypes.MOB_PROJECTILE, entity, livingEntity).
Parameters
Entity entityLivingEntity livingEntity
ตัวอย่างใช้งาน
DamageSources instance = ...;
Entity entity = ...;
LivingEntity livingEntity = ...;
DamageSource result = instance.mobProjectile(entity, livingEntity);
net.minecraft.world.damagesource.DamageSources#noAggroMobAttack(LivingEntity)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:199 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ noAggroMobAttack ตาม implementation ของ DamageSources
ทำงานยังไง
เรียกต่อ: source(). คืนค่า: this.source(DamageTypes.MOB_ATTACK_NO_AGGRO, livingEntity).
Parameters
LivingEntity livingEntity
ตัวอย่างใช้งาน
DamageSources instance = ...;
LivingEntity livingEntity = ...;
DamageSource result = instance.noAggroMobAttack(livingEntity);
net.minecraft.world.damagesource.DamageSources#onFire()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:99 - Modifiers:
public - Return:
DamageSource
คืออะไร
จัดการเหตุการณ์ Fire
ทำงานยังไง
คืนค่า: this.onFire.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#outOfBorder()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:267 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ outOfBorder ตาม implementation ของ DamageSources
ทำงานยังไง
คืนค่า: this.outsideBorder.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#playerAttack(Player)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:203 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ playerAttack ตาม implementation ของ DamageSources
ทำงานยังไง
เรียกต่อ: source(). คืนค่า: this.source(DamageTypes.PLAYER_ATTACK, player).
Parameters
Player player
ตัวอย่างใช้งาน
DamageSources instance = ...;
Player player = ...;
DamageSource result = instance.playerAttack(player);
net.minecraft.world.damagesource.DamageSources#sonicBoom(Entity)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:259 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ sonicBoom ตาม implementation ของ DamageSources
ทำงานยังไง
เรียกต่อ: source(). คืนค่า: this.source(DamageTypes.SONIC_BOOM, entity).
Parameters
Entity entity
ตัวอย่างใช้งาน
DamageSources instance = ...;
Entity entity = ...;
DamageSource result = instance.sonicBoom(entity);
net.minecraft.world.damagesource.DamageSources#source(ResourceKey<DamageType>)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:75 - Modifiers:
public final - Return:
DamageSource
คืออะไร
ดำเนินการ source ตาม implementation ของ DamageSources
ทำงานยังไง
เรียกต่อ: getOrThrow(). สร้างออบเจ็กต์: DamageSource. คืนค่า: new DamageSource(this.damageTypes.getOrThrow(resourceKey)).
Parameters
ResourceKey<DamageType> resourceKey
ตัวอย่างใช้งาน
DamageSources instance = ...;
ResourceKey<DamageType> resourceKey = ...;
DamageSource result = instance.source(resourceKey);
net.minecraft.world.damagesource.DamageSources#source(ResourceKey<DamageType>,Entity)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:79 - Modifiers:
public final - Return:
DamageSource
คืออะไร
ดำเนินการ source ตาม implementation ของ DamageSources
ทำงานยังไง
เรียกต่อ: getOrThrow(). สร้างออบเจ็กต์: DamageSource. คืนค่า: new DamageSource(this.damageTypes.getOrThrow(resourceKey), entity).
Parameters
ResourceKey<DamageType> resourceKeyEntity entity
ตัวอย่างใช้งาน
DamageSources instance = ...;
ResourceKey<DamageType> resourceKey = ...;
Entity entity = ...;
DamageSource result = instance.source(resourceKey, entity);
net.minecraft.world.damagesource.DamageSources#source(ResourceKey<DamageType>,Entity,Entity)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:83 - Modifiers:
public final - Return:
DamageSource
คืออะไร
ดำเนินการ source ตาม implementation ของ DamageSources
ทำงานยังไง
เรียกต่อ: getOrThrow(). สร้างออบเจ็กต์: DamageSource. คืนค่า: new DamageSource(this.damageTypes.getOrThrow(resourceKey), entity, entity2).
Parameters
ResourceKey<DamageType> resourceKeyEntity entityEntity entity2
ตัวอย่างใช้งาน
DamageSources instance = ...;
ResourceKey<DamageType> resourceKey = ...;
Entity entity = ...;
Entity entity2 = ...;
DamageSource result = instance.source(resourceKey, entity, entity2);
net.minecraft.world.damagesource.DamageSources#spit(Entity,LivingEntity)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:219 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ spit ตาม implementation ของ DamageSources
ทำงานยังไง
เรียกต่อ: source(). คืนค่า: this.source(DamageTypes.SPIT, entity, livingEntity).
Parameters
Entity entityLivingEntity livingEntity
ตัวอย่างใช้งาน
DamageSources instance = ...;
Entity entity = ...;
LivingEntity livingEntity = ...;
DamageSource result = instance.spit(entity, livingEntity);
net.minecraft.world.damagesource.DamageSources#stalagmite()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:175 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ stalagmite ตาม implementation ของ DamageSources
ทำงานยังไง
คืนค่า: this.stalagmite.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#starve()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:123 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ starve ตาม implementation ของ DamageSources
ทำงานยังไง
คืนค่า: this.starve.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#sting(LivingEntity)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:191 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ sting ตาม implementation ของ DamageSources
ทำงานยังไง
เรียกต่อ: source(). คืนค่า: this.source(DamageTypes.STING, livingEntity).
Parameters
LivingEntity livingEntity
ตัวอย่างใช้งาน
DamageSources instance = ...;
LivingEntity livingEntity = ...;
DamageSource result = instance.sting(livingEntity);
net.minecraft.world.damagesource.DamageSources#sweetBerryBush()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:167 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ sweetBerryBush ตาม implementation ของ DamageSources
ทำงานยังไง
คืนค่า: this.sweetBerryBush.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#thorns(Entity)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:247 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ thorns ตาม implementation ของ DamageSources
ทำงานยังไง
เรียกต่อ: source(). คืนค่า: this.source(DamageTypes.THORNS, entity).
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#thrown(Entity,Entity)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:239 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ thrown ตาม implementation ของ DamageSources
ทำงานยังไง
เรียกต่อ: source(). คืนค่า: this.source(DamageTypes.THROWN, entity, entity2).
Parameters
Entity entityEntity entity2
ตัวอย่างใช้งาน
DamageSources instance = ...;
Entity entity = ...;
Entity entity2 = ...;
DamageSource result = instance.thrown(entity, entity2);
net.minecraft.world.damagesource.DamageSources#trident(Entity,Entity)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:211 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ trident ตาม implementation ของ DamageSources
ทำงานยังไง
เรียกต่อ: source(). คืนค่า: this.source(DamageTypes.TRIDENT, entity, entity2).
Parameters
Entity entityEntity entity2
ตัวอย่างใช้งาน
DamageSources instance = ...;
Entity entity = ...;
Entity entity2 = ...;
DamageSource result = instance.trident(entity, entity2);
net.minecraft.world.damagesource.DamageSources#windCharge(Entity,LivingEntity)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:223 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ windCharge ตาม implementation ของ DamageSources
ทำงานยังไง
เรียกต่อ: source(). คืนค่า: this.source(DamageTypes.WIND_CHARGE, entity, livingEntity).
Parameters
Entity entityLivingEntity livingEntity
ตัวอย่างใช้งาน
DamageSources instance = ...;
Entity entity = ...;
LivingEntity livingEntity = ...;
DamageSource result = instance.windCharge(entity, livingEntity);
net.minecraft.world.damagesource.DamageSources#wither()
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:155 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ wither ตาม implementation ของ DamageSources
ทำงานยังไง
คืนค่า: this.wither.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageSources#witherSkull(WitherSkull,Entity)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageSources.java:235 - Modifiers:
public - Return:
DamageSource
คืออะไร
ดำเนินการ witherSkull ตาม implementation ของ DamageSources
ทำงานยังไง
เรียกต่อ: source(). คืนค่า: this.source(DamageTypes.WITHER_SKULL, witherSkull, entity).
Parameters
WitherSkull witherSkullEntity entity
ตัวอย่างใช้งาน
DamageSources instance = ...;
WitherSkull witherSkull = ...;
Entity entity = ...;
DamageSource result = instance.witherSkull(witherSkull, entity);
DamageType
- Full name:
net.minecraft.world.damagesource.DamageType - Package:
net.minecraft.world.damagesource - Source:
common—net/minecraft/world/damagesource/DamageType.java - Type:
record - Modifiers:
public
net.minecraft.world.damagesource.DamageType#DamageType(String,DamageScaling,float)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageType.java:26 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DamageType ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
String stringDamageScaling damageScalingfloat f
ตัวอย่างใช้งาน
DamageScaling damageScaling = ...;
DamageType instance = new DamageType("value", damageScaling, 0.0F);
net.minecraft.world.damagesource.DamageType#DamageType(String,DamageScaling,float,DamageEffects)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageType.java:30 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DamageType ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
String stringDamageScaling damageScalingfloat fDamageEffects damageEffects
ตัวอย่างใช้งาน
DamageScaling damageScaling = ...;
DamageEffects damageEffects = ...;
DamageType instance = new DamageType("value", damageScaling, 0.0F, damageEffects);
net.minecraft.world.damagesource.DamageType#DamageType(String,float)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageType.java:38 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DamageType ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
String stringfloat f
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.DamageType#DamageType(String,float,DamageEffects)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageType.java:34 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DamageType ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
String stringfloat fDamageEffects damageEffects
ตัวอย่างใช้งาน
DamageEffects damageEffects = ...;
DamageType instance = new DamageType("value", 0.0F, damageEffects);
DamageTypes
- Full name:
net.minecraft.world.damagesource.DamageTypes - Package:
net.minecraft.world.damagesource - Source:
common—net/minecraft/world/damagesource/DamageTypes.java - Type:
interface - Modifiers:
public
net.minecraft.world.damagesource.DamageTypes#bootstrap(BootstrapContext<DamageType>)
- Origin:
common - Source:
net/minecraft/world/damagesource/DamageTypes.java:59 - Modifiers:
static - Return:
void
คืออะไร
ดำเนินการ bootstrap ตาม implementation ของ DamageTypes
ทำงานยังไง
เรียกต่อ: register(). สร้างออบเจ็กต์: DamageType.
Parameters
BootstrapContext<DamageType> bootstrapContext
ตัวอย่างใช้งาน
DeathMessageType
- Full name:
net.minecraft.world.damagesource.DeathMessageType - Package:
net.minecraft.world.damagesource - Source:
common—net/minecraft/world/damagesource/DeathMessageType.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.damagesource.DeathMessageType#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/damagesource/DeathMessageType.java:18 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.id.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
FallLocation
- Full name:
net.minecraft.world.damagesource.FallLocation - Package:
net.minecraft.world.damagesource - Source:
common—net/minecraft/world/damagesource/FallLocation.java - Type:
record - Modifiers:
public
net.minecraft.world.damagesource.FallLocation#blockToFallLocation(BlockState)
- Origin:
common - Source:
net/minecraft/world/damagesource/FallLocation.java:21 - Modifiers:
public static - Return:
FallLocation
คืออะไร
ดำเนินการ blockToFallLocation ตาม implementation ของ FallLocation
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: is(). มีจุด return อย่างน้อย 5 จุด.
Parameters
BlockState blockState
ตัวอย่างใช้งาน
net.minecraft.world.damagesource.FallLocation#getCurrentFallLocation(LivingEntity)
- Origin:
common - Source:
net/minecraft/world/damagesource/FallLocation.java:35 - Modifiers:
public static - Return:
FallLocation
คืออะไร
อ่านค่า Current Fall Location
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getLastClimbablePos(), isPresent(), level(), getBlockState(), get(), blockToFallLocation(), isInWater(). มีจุด return อย่างน้อย 2 จุด.
Parameters
LivingEntity livingEntity
ตัวอย่างใช้งาน
LivingEntity livingEntity = ...;
FallLocation result = FallLocation.getCurrentFallLocation(livingEntity);
net.minecraft.world.damagesource.FallLocation#languageKey()
- Origin:
common - Source:
net/minecraft/world/damagesource/FallLocation.java:46 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ languageKey ตาม implementation ของ FallLocation
ทำงานยังไง
คืนค่า: "death.fell.accident." + this.id.
Parameters
- ไม่มี