Skip to content

Package net.minecraft.world.entity.monster.creaking

Part 1/1


Creaking

  • Full name: net.minecraft.world.entity.monster.creaking.Creaking
  • Package: net.minecraft.world.entity.monster.creaking
  • Source: commonnet/minecraft/world/entity/monster/creaking/Creaking.java
  • Type: class
  • Modifiers: public
  • Extends: Monster

net.minecraft.world.entity.monster.creaking.Creaking#activate(Player)

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:517
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ activate ตาม implementation ของ Creaking

ทำงานยังไง

เรียกต่อ: getBrain(), setMemory(), gameEvent(), makeSound(), setIsActive().

Parameters

  • Player player

ตัวอย่างใช้งาน

Creaking instance = ...;
Player player = ...;
instance.activate(player);

net.minecraft.world.entity.monster.creaking.Creaking#addAdditionalSaveData(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:398
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getHomePos(), put(), writeBlockPos().

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

Creaking instance = ...;
CompoundTag compoundTag = ...;
instance.addAdditionalSaveData(compoundTag);

net.minecraft.world.entity.monster.creaking.Creaking#addPassenger(Entity)

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:353
  • Modifiers: protected
  • Return: void

คืออะไร

เพิ่ม Passenger

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: isHeartBound(), couldAcceptPassenger(). สร้างออบเจ็กต์: IllegalStateException.

Parameters

  • Entity entity

ตัวอย่างใช้งาน

Entity entity = ...;
@Override
protected void addPassenger(Entity entity) {
    super.addPassenger(entity);
}

net.minecraft.world.entity.monster.creaking.Creaking#aiStep()

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:214
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ aiStep ตาม implementation ของ Creaking

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: invulnerabilityAnimationRemainingTicks, attackAnimationRemainingTicks. เรียกต่อ: level(), get(), checkCanMove(), gameEvent(), makeSound(), stopInPlace(), set().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Creaking instance = ...;
instance.aiStep();

net.minecraft.world.entity.monster.creaking.Creaking#blameSourceForDamage(DamageSource)

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:183
  • Modifiers: public
  • Return: Player

คืออะไร

ดำเนินการ blameSourceForDamage ตาม implementation ของ Creaking

ทำงานยังไง

เรียกต่อ: resolveMobResponsibleForDamage(), resolvePlayerResponsibleForDamage(). คืนค่า: this.resolvePlayerResponsibleForDamage(damageSource).

Parameters

  • DamageSource damageSource

ตัวอย่างใช้งาน

Creaking instance = ...;
DamageSource damageSource = ...;
Player result = instance.blameSourceForDamage(damageSource);

net.minecraft.world.entity.monster.creaking.Creaking#brainProvider()

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:110
  • Modifiers: protected
  • Return: Brain.Provider<Creaking>

คืออะไร

ดำเนินการ brainProvider ตาม implementation ของ Creaking

ทำงานยังไง

คืนค่า: CreakingAi.brainProvider().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

@Override
protected Brain.Provider<Creaking> brainProvider() {
    return super.brainProvider();
}

net.minecraft.world.entity.monster.creaking.Creaking#canAddPassenger(Entity)

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:343
  • Modifiers: protected
  • Return: boolean

คืออะไร

ตรวจสอบว่าสามารถ Add Passenger

ทำงานยังไง

เรียกต่อ: isHeartBound(). คืนค่า: !this.isHeartBound() && super.canAddPassenger(entity).

Parameters

  • Entity entity

ตัวอย่างใช้งาน

Entity entity = ...;
@Override
protected boolean canAddPassenger(Entity entity) {
    return super.canAddPassenger(entity);
}

net.minecraft.world.entity.monster.creaking.Creaking#canBeNameTagged()

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:338
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่าสามารถ Be Name Tagged

ทำงานยังไง

เรียกต่อ: isHeartBound(). คืนค่า: !this.isHeartBound() && super.canBeNameTagged().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Creaking instance = ...;
boolean result = instance.canBeNameTagged();

net.minecraft.world.entity.monster.creaking.Creaking#canMove()

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:138
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่าสามารถ Move

ทำงานยังไง

เรียกต่อ: get(). คืนค่า: this.entityData.get(CAN_MOVE).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Creaking instance = ...;
boolean result = instance.canMove();

net.minecraft.world.entity.monster.creaking.Creaking#canUsePortal(boolean)

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:360
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่าสามารถ Use Portal

ทำงานยังไง

เรียกต่อ: isHeartBound(). คืนค่า: !this.isHeartBound() && super.canUsePortal(bl).

Parameters

  • boolean bl

ตัวอย่างใช้งาน

Creaking instance = ...;
boolean result = instance.canUsePortal(true);

net.minecraft.world.entity.monster.creaking.Creaking#checkCanMove()

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:480
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบ Can Move

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getMemory(), orElse(), of(), isActive(), isEmpty(), deactivate(), canAttack(), isAlliedTo(). มีจุด return อย่างน้อย 4 จุด.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Creaking instance = ...;
boolean result = instance.checkCanMove();

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:428
  • Modifiers: public
  • Return: void

คืออะไร

ตรวจสอบ Eye Blink

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: nextFlickerTime, eyesGlowing. เรียกต่อ: getRandom(), nextIntBetweenInclusive().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Creaking instance = ...;
instance.checkEyeBlink();

net.minecraft.world.entity.monster.creaking.Creaking#couldAcceptPassenger()

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:348
  • Modifiers: protected
  • Return: boolean

คืออะไร

ดำเนินการ couldAcceptPassenger ตาม implementation ของ Creaking

ทำงานยังไง

เรียกต่อ: isHeartBound(). คืนค่า: !this.isHeartBound() && super.couldAcceptPassenger().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

@Override
protected boolean couldAcceptPassenger() {
    return super.couldAcceptPassenger();
}

net.minecraft.world.entity.monster.creaking.Creaking#Creaking(EntityType<? extends Creaking>,Level)

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:82
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ Creaking ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: lookControl, moveControl, jumpControl, xpReward. เรียกต่อ: CreakingLookControl(), CreakingMoveControl(), CreakingJumpControl(), getNavigation(), setCanFloat(). สร้างออบเจ็กต์: Creaking.CreakingLookControl, Creaking.CreakingMoveControl, Creaking.CreakingJumpControl.

Parameters

  • EntityType<? extends Creaking> entityType
  • Level level

ตัวอย่างใช้งาน

EntityType<? extends Creaking> entityType = ...;
Level level = ...;
Creaking instance = new Creaking(entityType, level);

net.minecraft.world.entity.monster.creaking.Creaking#creakingDeathEffects(DamageSource)

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:314
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ creakingDeathEffects ตาม implementation ของ Creaking

ทำงานยังไง

เรียกต่อ: blameSourceForDamage(), die(), makeSound().

Parameters

  • DamageSource damageSource

ตัวอย่างใช้งาน

Creaking instance = ...;
DamageSource damageSource = ...;
instance.creakingDeathEffects(damageSource);

net.minecraft.world.entity.monster.creaking.Creaking#createAttributes()

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:129
  • Modifiers: public static
  • Return: AttributeSupplier.Builder

คืออะไร

สร้าง Attributes

ทำงานยังไง

เรียกต่อ: createMonsterAttributes(), add().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

AttributeSupplier.Builder result = Creaking.createAttributes();

net.minecraft.world.entity.monster.creaking.Creaking#createBodyControl()

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:105
  • Modifiers: protected
  • Return: BodyRotationControl

คืออะไร

สร้าง Body Control

ทำงานยังไง

เรียกต่อ: CreakingBodyRotationControl(). สร้างออบเจ็กต์: Creaking.CreakingBodyRotationControl. คืนค่า: new Creaking.CreakingBodyRotationControl(this).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

@Override
protected BodyRotationControl createBodyControl() {
    return super.createBodyControl();
}

net.minecraft.world.entity.monster.creaking.Creaking#createNavigation(Level)

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:365
  • Modifiers: protected
  • Return: PathNavigation

คืออะไร

สร้าง Navigation

ทำงานยังไง

เรียกต่อ: CreakingPathNavigation(). สร้างออบเจ็กต์: Creaking.CreakingPathNavigation. คืนค่า: new Creaking.CreakingPathNavigation(this, level).

Parameters

  • Level level

ตัวอย่างใช้งาน

Level level = ...;
@Override
protected PathNavigation createNavigation(Level level) {
    return super.createNavigation(level);
}

net.minecraft.world.entity.monster.creaking.Creaking#customServerAiStep(ServerLevel)

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:205
  • Modifiers: protected
  • Return: void

คืออะไร

ดำเนินการ customServerAiStep ตาม implementation ของ Creaking

ทำงานยังไง

เรียกต่อ: get(), push(), getBrain(), tick(), level(), pop(), updateActivity().

Parameters

  • ServerLevel serverLevel

ตัวอย่างใช้งาน

ServerLevel serverLevel = ...;
@Override
protected void customServerAiStep(ServerLevel serverLevel) {
    super.customServerAiStep(serverLevel);
}

net.minecraft.world.entity.monster.creaking.Creaking#deactivate()

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:524
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ deactivate ตาม implementation ของ Creaking

ทำงานยังไง

เรียกต่อ: getBrain(), eraseMemory(), gameEvent(), makeSound(), setIsActive().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Creaking instance = ...;
instance.deactivate();

net.minecraft.world.entity.monster.creaking.Creaking#defineSynchedData(SynchedEntityData.Builder)

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:120
  • Modifiers: protected
  • Return: void

คืออะไร

ดำเนินการ defineSynchedData ตาม implementation ของ Creaking

ทำงานยังไง

เรียกต่อ: define(), empty().

Parameters

  • SynchedEntityData.Builder builder

ตัวอย่างใช้งาน

SynchedEntityData.Builder builder = ...;
@Override
protected void defineSynchedData(SynchedEntityData.Builder builder) {
    super.defineSynchedData(builder);
}

net.minecraft.world.entity.monster.creaking.Creaking#doHurtTarget(ServerLevel,Entity)

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:142
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ doHurtTarget ตาม implementation ของ Creaking

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: attackAnimationRemainingTicks. เรียกต่อ: level(), broadcastEntityEvent(). มีจุด return อย่างน้อย 2 จุด.

Parameters

  • ServerLevel serverLevel
  • Entity entity

ตัวอย่างใช้งาน

Creaking instance = ...;
ServerLevel serverLevel = ...;
Entity entity = ...;
boolean result = instance.doHurtTarget(serverLevel, entity);

net.minecraft.world.entity.monster.creaking.Creaking#fireImmune()

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:333
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ fireImmune ตาม implementation ของ Creaking

ทำงานยังไง

เรียกต่อ: isHeartBound(). คืนค่า: this.isHeartBound() || super.fireImmune().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Creaking instance = ...;
boolean result = instance.fireImmune();

net.minecraft.world.entity.monster.creaking.Creaking#getAmbientSound()

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:441
  • Modifiers: protected
  • Return: SoundEvent

คืออะไร

อ่านค่า Ambient Sound

ทำงานยังไง

เรียกต่อ: isActive(). คืนค่า: this.isActive() ? null : SoundEvents.CREAKING_AMBIENT.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

@Override
protected SoundEvent getAmbientSound() {
    return super.getAmbientSound();
}

net.minecraft.world.entity.monster.creaking.Creaking#getBrain()

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:200
  • Modifiers: public
  • Return: Brain<Creaking>

คืออะไร

อ่านค่า Brain

ทำงานยังไง

คืนค่า: (Brain<Creaking>)super.getBrain().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Creaking instance = ...;
Brain<Creaking> result = instance.getBrain();

net.minecraft.world.entity.monster.creaking.Creaking#getDeathSound()

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:451
  • Modifiers: protected
  • Return: SoundEvent

คืออะไร

อ่านค่า Death Sound

ทำงานยังไง

คืนค่า: SoundEvents.CREAKING_DEATH.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

@Override
protected SoundEvent getDeathSound() {
    return super.getDeathSound();
}

net.minecraft.world.entity.monster.creaking.Creaking#getHomePos()

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:411
  • Modifiers: public
  • Return: BlockPos

คืออะไร

อ่านค่า Home Pos

ทำงานยังไง

เรียกต่อ: get(), orElse(). คืนค่า: this.entityData.get(HOME_POS).orElse(null).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Creaking instance = ...;
BlockPos result = instance.getHomePos();

net.minecraft.world.entity.monster.creaking.Creaking#getHurtSound(DamageSource)

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:446
  • Modifiers: protected
  • Return: SoundEvent

คืออะไร

อ่านค่า Hurt Sound

ทำงานยังไง

เรียกต่อ: isHeartBound(). คืนค่า: this.isHeartBound() ? SoundEvents.CREAKING_SWAY : super.getHurtSound(damageSource).

Parameters

  • DamageSource damageSource

ตัวอย่างใช้งาน

DamageSource damageSource = ...;
@Override
protected SoundEvent getHurtSound(DamageSource damageSource) {
    return super.getHurtSound(damageSource);
}

net.minecraft.world.entity.monster.creaking.Creaking#getTarget()

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:461
  • Modifiers: public
  • Return: LivingEntity

คืออะไร

อ่านค่า Target

ทำงานยังไง

เรียกต่อ: getTargetFromBrain(). คืนค่า: this.getTargetFromBrain().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Creaking instance = ...;
LivingEntity result = instance.getTarget();

net.minecraft.world.entity.monster.creaking.Creaking#getWalkTargetValue(BlockPos,LevelReader)

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:539
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า Walk Target Value

ทำงานยังไง

คืนค่า: 0.0F.

Parameters

  • BlockPos blockPos
  • LevelReader levelReader

ตัวอย่างใช้งาน

Creaking instance = ...;
BlockPos blockPos = ...;
LevelReader levelReader = ...;
float result = instance.getWalkTargetValue(blockPos, levelReader);

net.minecraft.world.entity.monster.creaking.Creaking#handleEntityEvent(byte)

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:320
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ Entity Event

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: invulnerabilityAnimationRemainingTicks, attackAnimationRemainingTicks. เรียกต่อ: playHurtSound(), damageSources(), generic(), playAttackSound().

Parameters

  • byte b

ตัวอย่างใช้งาน

Creaking instance = ...;
instance.handleEntityEvent(0);

net.minecraft.world.entity.monster.creaking.Creaking#hasGlowingEyes()

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:424
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี Glowing Eyes

ทำงานยังไง

คืนค่า: this.eyesGlowing.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Creaking instance = ...;
boolean result = instance.hasGlowingEyes();

net.minecraft.world.entity.monster.creaking.Creaking#hurtServer(ServerLevel,DamageSource,float)

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:153
  • Modifiers: public
  • Return: boolean

คืออะไร

ประมวลผลความเสียหาย Server

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: invulnerabilityAnimationRemainingTicks. เรียกต่อ: getHomePos(), is(), isInvulnerableTo(), isDeadOrDying(), blameSourceForDamage(), getDirectEntity(), level(), broadcastEntityEvent(). มีจุด return อย่างน้อย 4 จุด.

Parameters

  • ServerLevel serverLevel
  • DamageSource damageSource
  • float f

ตัวอย่างใช้งาน

Creaking instance = ...;
ServerLevel serverLevel = ...;
DamageSource damageSource = ...;
boolean result = instance.hurtServer(serverLevel, damageSource, 0.0F);

net.minecraft.world.entity.monster.creaking.Creaking#isActive()

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:535
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Active

ทำงานยังไง

เรียกต่อ: get(). คืนค่า: this.entityData.get(IS_ACTIVE).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Creaking instance = ...;
boolean result = instance.isActive();

net.minecraft.world.entity.monster.creaking.Creaking#isHeartBound()

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:101
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Heart Bound

ทำงานยังไง

เรียกต่อ: getHomePos(). คืนค่า: this.getHomePos() != null.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Creaking instance = ...;
boolean result = instance.isHeartBound();

net.minecraft.world.entity.monster.creaking.Creaking#isPushable()

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:188
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Pushable

ทำงานยังไง

เรียกต่อ: canMove(). คืนค่า: super.isPushable() && this.canMove().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Creaking instance = ...;
boolean result = instance.isPushable();

net.minecraft.world.entity.monster.creaking.Creaking#isTearingDown()

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:420
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Tearing Down

ทำงานยังไง

เรียกต่อ: get(). คืนค่า: this.entityData.get(IS_TEARING_DOWN).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Creaking instance = ...;
boolean result = instance.isTearingDown();

net.minecraft.world.entity.monster.creaking.Creaking#knockback(double,double,double)

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:473
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ knockback ตาม implementation ของ Creaking

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: canMove().

Parameters

  • double d
  • double e
  • double f

ตัวอย่างใช้งาน

Creaking instance = ...;
instance.knockback(0.0D, 0.0D, 0.0D);

net.minecraft.world.entity.monster.creaking.Creaking#makeBrain(Dynamic<?>)

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:115
  • Modifiers: protected
  • Return: Brain<?>

คืออะไร

สร้าง Brain

ทำงานยังไง

เรียกต่อ: brainProvider(). คืนค่า: CreakingAi.makeBrain(this.brainProvider().makeBrain(dynamic)).

Parameters

  • Dynamic<?> dynamic

ตัวอย่างใช้งาน

Dynamic<?> dynamic = ...;
@Override
protected Brain<?> makeBrain(Dynamic<?> dynamic) {
    return super.makeBrain(dynamic);
}

net.minecraft.world.entity.monster.creaking.Creaking#playAttackSound()

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:436
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ playAttackSound ตาม implementation ของ Creaking

ทำงานยังไง

เรียกต่อ: makeSound().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Creaking instance = ...;
instance.playAttackSound();

net.minecraft.world.entity.monster.creaking.Creaking#playerIsStuckInYou()

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:370
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ playerIsStuckInYou ตาม implementation ของ Creaking

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: playerStuckCounter. เรียกต่อ: getMemory(), orElse(), of(), isEmpty(), getBoundingBox(), contains(), getEyePosition(). มีจุด return อย่างน้อย 3 จุด.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Creaking instance = ...;
boolean result = instance.playerIsStuckInYou();

net.minecraft.world.entity.monster.creaking.Creaking#playStepSound(BlockPos,BlockState)

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:456
  • Modifiers: protected
  • Return: void

คืออะไร

ดำเนินการ playStepSound ตาม implementation ของ Creaking

ทำงานยังไง

เรียกต่อ: playSound().

Parameters

  • BlockPos blockPos
  • BlockState blockState

ตัวอย่างใช้งาน

BlockPos blockPos = ...;
BlockState blockState = ...;
@Override
protected void playStepSound(BlockPos blockPos, BlockState blockState) {
    super.playStepSound(blockPos, blockState);
}

net.minecraft.world.entity.monster.creaking.Creaking#push(double,double,double)

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:193
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ push ตาม implementation ของ Creaking

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: canMove().

Parameters

  • double d
  • double e
  • double f

ตัวอย่างใช้งาน

Creaking instance = ...;
instance.push(0.0D, 0.0D, 0.0D);

net.minecraft.world.entity.monster.creaking.Creaking#readAdditionalSaveData(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:390
  • Modifiers: public
  • Return: void

คืออะไร

อ่าน Additional Save Data

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: contains(), setTransient(), readBlockPos(), orElseThrow().

Parameters

  • CompoundTag compoundTag

ตัวอย่างใช้งาน

Creaking instance = ...;
CompoundTag compoundTag = ...;
instance.readAdditionalSaveData(compoundTag);

net.minecraft.world.entity.monster.creaking.Creaking#sendDebugPackets()

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:467
  • Modifiers: protected
  • Return: void

คืออะไร

ส่ง Debug Packets

ทำงานยังไง

เรียกต่อ: sendEntityBrain().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

@Override
protected void sendDebugPackets() {
    super.sendDebugPackets();
}

net.minecraft.world.entity.monster.creaking.Creaking#setHomePos(BlockPos)

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:407
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Home Pos

ทำงานยังไง

เรียกต่อ: set(), of().

Parameters

  • BlockPos blockPos

ตัวอย่างใช้งาน

Creaking instance = ...;
BlockPos blockPos = ...;
instance.setHomePos(blockPos);

net.minecraft.world.entity.monster.creaking.Creaking#setIsActive(boolean)

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:531
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Is Active

ทำงานยังไง

เรียกต่อ: set().

Parameters

  • boolean bl

ตัวอย่างใช้งาน

Creaking instance = ...;
instance.setIsActive(true);

net.minecraft.world.entity.monster.creaking.Creaking#setTearingDown()

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:416
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Tearing Down

ทำงานยังไง

เรียกต่อ: set().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Creaking instance = ...;
instance.setTearingDown();

net.minecraft.world.entity.monster.creaking.Creaking#setTransient(BlockPos)

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:92
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Transient

ทำงานยังไง

เรียกต่อ: setHomePos(), setPathfindingMalus().

Parameters

  • BlockPos blockPos

ตัวอย่างใช้งาน

Creaking instance = ...;
BlockPos blockPos = ...;
instance.setTransient(blockPos);

net.minecraft.world.entity.monster.creaking.Creaking#tearDown()

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:287
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ tearDown ตาม implementation ของ Creaking

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), getBoundingBox(), getCenter(), getXsize(), getYsize(), getZsize(), sendParticles(), defaultBlockState(). สร้างออบเจ็กต์: BlockParticleOption.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Creaking instance = ...;
instance.tearDown();

net.minecraft.world.entity.monster.creaking.Creaking#tick()

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:243
  • Modifiers: public
  • Return: void

คืออะไร

ประมวลผล tick tick

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: level(), getHomePos(), getBlockEntity(), isProtector(), setHealth(), setupAnimationStates(), checkEyeBlink().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Creaking instance = ...;
instance.tick();

net.minecraft.world.entity.monster.creaking.Creaking#tickDeath()

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:263
  • Modifiers: protected
  • Return: void

คืออะไร

ประมวลผล tick Death

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: deathTime. เรียกต่อ: isHeartBound(), isTearingDown(), level(), isClientSide(), isRemoved(), tearDown().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

@Override
protected void tickDeath() {
    super.tickDeath();
}

net.minecraft.world.entity.monster.creaking.Creaking#updateWalkAnimation(float)

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/Creaking.java:275
  • Modifiers: protected
  • Return: void

คืออะไร

อัปเดต Walk Animation

ทำงานยังไง

เรียกต่อ: min(), update().

Parameters

  • float f

ตัวอย่างใช้งาน

@Override
protected void updateWalkAnimation(float f) {
    super.updateWalkAnimation(f);
}

CreakingAi

  • Full name: net.minecraft.world.entity.monster.creaking.CreakingAi
  • Package: net.minecraft.world.entity.monster.creaking
  • Source: commonnet/minecraft/world/entity/monster/creaking/CreakingAi.java
  • Type: class
  • Modifiers: public

net.minecraft.world.entity.monster.creaking.CreakingAi#brainProvider()

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/CreakingAi.java:79
  • Modifiers: public static
  • Return: Brain.Provider<Creaking>

คืออะไร

ดำเนินการ brainProvider ตาม implementation ของ CreakingAi

ทำงานยังไง

เรียกต่อ: provider(). คืนค่า: Brain.provider(MEMORY_TYPES, SENSOR_TYPES).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Brain.Provider<Creaking> result = CreakingAi.brainProvider();

net.minecraft.world.entity.monster.creaking.CreakingAi#makeBrain(Brain<Creaking>)

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/CreakingAi.java:83
  • Modifiers: public static
  • Return: Brain<Creaking>

คืออะไร

สร้าง Brain

ทำงานยังไง

เรียกต่อ: initCoreActivity(), initIdleActivity(), initFightActivity(), setCoreActivities(), of(), setDefaultActivity(), useDefaultActivity(). คืนค่า: brain.

Parameters

  • Brain<Creaking> brain

ตัวอย่างใช้งาน

Brain<Creaking> brain = ...;
Brain<Creaking> result = CreakingAi.makeBrain(brain);

net.minecraft.world.entity.monster.creaking.CreakingAi#updateActivity(Creaking)

  • Origin: common
  • Source: net/minecraft/world/entity/monster/creaking/CreakingAi.java:93
  • Modifiers: public static
  • Return: void

คืออะไร

อัปเดต Activity

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: canMove(), getBrain(), useDefaultActivity(), setActiveActivityToFirstValid(), of().

Parameters

  • Creaking creaking

ตัวอย่างใช้งาน

Creaking creaking = ...;
CreakingAi.updateActivity(creaking);