Skip to content

Package net.minecraft.world.entity.animal.axolotl

Part 1/1


Axolotl

  • Full name: net.minecraft.world.entity.animal.axolotl.Axolotl
  • Package: net.minecraft.world.entity.animal.axolotl
  • Source: commonnet/minecraft/world/entity/animal/axolotl/Axolotl.java
  • Type: class
  • Modifiers: public
  • Extends: Animal
  • Implements: VariantHolder<Axolotl.Variant>,Bucketable

net.minecraft.world.entity.animal.axolotl.Axolotl#addAdditionalSaveData(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:131
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Additional Save Data

ทำงานยังไง

เรียกต่อ: putInt(), getVariant(), getId(), putBoolean(), fromBucket().

Parameters

  • CompoundTag compoundTag

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

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

net.minecraft.world.entity.animal.axolotl.Axolotl#applySupportingEffects(Player)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:422
  • Modifiers: public
  • Return: void

คืออะไร

นำไปใช้ Supporting Effects

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getEffect(), endsWithin(), getDuration(), min(), addEffect(), removeEffect(). สร้างออบเจ็กต์: MobEffectInstance.

Parameters

  • Player player

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

Axolotl instance = ...;
Player player = ...;
instance.applySupportingEffects(player);

net.minecraft.world.entity.animal.axolotl.Axolotl#Axolotl(EntityType<? extends Axolotl>,Level)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:111
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: moveControl, lookControl. เรียกต่อ: setPathfindingMalus(), AxolotlMoveControl(), AxolotlLookControl(). สร้างออบเจ็กต์: Axolotl.AxolotlMoveControl, Axolotl.AxolotlLookControl.

Parameters

  • EntityType<? extends Axolotl> entityType
  • Level level

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

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

net.minecraft.world.entity.animal.axolotl.Axolotl#baseTick()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:178
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ baseTick ตาม implementation ของ Axolotl

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getAirSupply(), isNoAi(), handleAirSupply(), level(), isClientSide(), tickAnimations().

Parameters

  • ไม่มี

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

Axolotl instance = ...;
instance.baseTick();

net.minecraft.world.entity.animal.axolotl.Axolotl#brainProvider()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:465
  • Modifiers: protected
  • Return: Brain.Provider<Axolotl>

คืออะไร

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

ทำงานยังไง

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

Parameters

  • ไม่มี

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

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

net.minecraft.world.entity.animal.axolotl.Axolotl#canBeLeashed()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:296
  • Modifiers: public
  • Return: boolean

คืออะไร

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

ทำงานยังไง

คืนค่า: true.

Parameters

  • ไม่มี

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

Axolotl instance = ...;
boolean result = instance.canBeLeashed();

net.minecraft.world.entity.animal.axolotl.Axolotl#canBeSeenAsEnemy()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:401
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่าสามารถ Be Seen As Enemy

ทำงานยังไง

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

Parameters

  • ไม่มี

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

Axolotl instance = ...;
boolean result = instance.canBeSeenAsEnemy();

net.minecraft.world.entity.animal.axolotl.Axolotl#checkAxolotlSpawnRules(EntityType<? extends LivingEntity>,ServerLevelAccessor,EntitySpawnReason,BlockPos,RandomSource)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:517
  • Modifiers: public static
  • Return: boolean

คืออะไร

ตรวจสอบ Axolotl Spawn Rules

ทำงานยังไง

เรียกต่อ: getBlockState(), below(), is(). คืนค่า: serverLevelAccessor.getBlockState(blockPos.below()).is(BlockTags.AXOLOTLS_SPAWNABLE_ON).

Parameters

  • EntityType<? extends LivingEntity> entityType
  • ServerLevelAccessor serverLevelAccessor
  • EntitySpawnReason entitySpawnReason
  • BlockPos blockPos
  • RandomSource randomSource

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

EntityType<? extends LivingEntity> entityType = ...;
ServerLevelAccessor serverLevelAccessor = ...;
EntitySpawnReason entitySpawnReason = ...;
BlockPos blockPos = ...;
RandomSource randomSource = ...;
boolean result = Axolotl.checkAxolotlSpawnRules(entityType, serverLevelAccessor, entitySpawnReason, blockPos, randomSource);

net.minecraft.world.entity.animal.axolotl.Axolotl#checkSpawnObstruction(LevelReader)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:244
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบ Spawn Obstruction

ทำงานยังไง

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

Parameters

  • LevelReader levelReader

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

Axolotl instance = ...;
LevelReader levelReader = ...;
boolean result = instance.checkSpawnObstruction(levelReader);

net.minecraft.world.entity.animal.axolotl.Axolotl#createAttributes()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:316
  • Modifiers: public static
  • Return: AttributeSupplier.Builder

คืออะไร

สร้าง Attributes

ทำงานยังไง

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

Parameters

  • ไม่มี

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

AttributeSupplier.Builder result = Axolotl.createAttributes();

net.minecraft.world.entity.animal.axolotl.Axolotl#createNavigation(Level)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:324
  • Modifiers: protected
  • Return: PathNavigation

คืออะไร

สร้าง Navigation

ทำงานยังไง

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

Parameters

  • Level level

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

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

net.minecraft.world.entity.animal.axolotl.Axolotl#customServerAiStep(ServerLevel)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:301
  • Modifiers: protected
  • Return: void

คืออะไร

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

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), push(), getBrain(), tick(), pop(), updateActivity(), isNoAi(), getMemory().

Parameters

  • ServerLevel serverLevel

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

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

net.minecraft.world.entity.animal.axolotl.Axolotl#defineSynchedData(SynchedEntityData.Builder)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:123
  • Modifiers: protected
  • Return: void

คืออะไร

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

ทำงานยังไง

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

Parameters

  • SynchedEntityData.Builder builder

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

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

net.minecraft.world.entity.animal.axolotl.Axolotl#finalizeSpawn(ServerLevelAccessor,DifficultyInstance,EntitySpawnReason,SpawnGroupData)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:152
  • Modifiers: public
  • Return: SpawnGroupData

คืออะไร

ดำเนินการ finalizeSpawn ตาม implementation ของ Axolotl

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getRandom(), getGroupSize(), AxolotlGroupData(), getCommonSpawnVariant(), setVariant(), getVariant(), setAge(). สร้างออบเจ็กต์: Axolotl.AxolotlGroupData. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • ServerLevelAccessor serverLevelAccessor
  • DifficultyInstance difficultyInstance
  • EntitySpawnReason entitySpawnReason
  • SpawnGroupData spawnGroupData

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

Axolotl instance = ...;
ServerLevelAccessor serverLevelAccessor = ...;
DifficultyInstance difficultyInstance = ...;
EntitySpawnReason entitySpawnReason = ...;
SpawnGroupData spawnGroupData = ...;
SpawnGroupData result = instance.finalizeSpawn(serverLevelAccessor, difficultyInstance, entitySpawnReason, spawnGroupData);

net.minecraft.world.entity.animal.axolotl.Axolotl#fromBucket()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:262
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ fromBucket ตาม implementation ของ Axolotl

ทำงานยังไง

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

Parameters

  • ไม่มี

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

Axolotl instance = ...;
boolean result = instance.fromBucket();

net.minecraft.world.entity.animal.axolotl.Axolotl#getAmbientSound()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:449
  • Modifiers: protected
  • Return: SoundEvent

คืออะไร

อ่านค่า Ambient Sound

ทำงานยังไง

เรียกต่อ: isInWater(). คืนค่า: this.isInWater() ? SoundEvents.AXOLOTL_IDLE_WATER : SoundEvents.AXOLOTL_IDLE_AIR.

Parameters

  • ไม่มี

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

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

net.minecraft.world.entity.animal.axolotl.Axolotl#getBrain()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:475
  • Modifiers: public
  • Return: Brain<Axolotl>

คืออะไร

อ่านค่า Brain

ทำงานยังไง

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

Parameters

  • ไม่มี

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

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

net.minecraft.world.entity.animal.axolotl.Axolotl#getBreedOffspring(ServerLevel,AgeableMob)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:272
  • Modifiers: public
  • Return: AgeableMob

คืออะไร

อ่านค่า Breed Offspring

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: create(), useRareVariant(), getRareSpawnVariant(), nextBoolean(), getVariant(), setVariant(), setPersistenceRequired(). คืนค่า: axolotl.

Parameters

  • ServerLevel serverLevel
  • AgeableMob ageableMob

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

Axolotl instance = ...;
ServerLevel serverLevel = ...;
AgeableMob ageableMob = ...;
AgeableMob result = instance.getBreedOffspring(serverLevel, ageableMob);

net.minecraft.world.entity.animal.axolotl.Axolotl#getBucketItemStack()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:391
  • Modifiers: public
  • Return: ItemStack

คืออะไร

อ่านค่า Bucket Item Stack

ทำงานยังไง

สร้างออบเจ็กต์: ItemStack. คืนค่า: new ItemStack(Items.AXOLOTL_BUCKET).

Parameters

  • ไม่มี

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

Axolotl instance = ...;
ItemStack result = instance.getBucketItemStack();

net.minecraft.world.entity.animal.axolotl.Axolotl#getDeathSound()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:443
  • Modifiers: protected
  • Return: SoundEvent

คืออะไร

อ่านค่า Death Sound

ทำงานยังไง

คืนค่า: SoundEvents.AXOLOTL_DEATH.

Parameters

  • ไม่มี

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

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

net.minecraft.world.entity.animal.axolotl.Axolotl#getHurtSound(DamageSource)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:438
  • Modifiers: protected
  • Return: SoundEvent

คืออะไร

อ่านค่า Hurt Sound

ทำงานยังไง

คืนค่า: SoundEvents.AXOLOTL_HURT.

Parameters

  • DamageSource damageSource

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

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

net.minecraft.world.entity.animal.axolotl.Axolotl#getMaxAirSupply()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:227
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Max Air Supply

ทำงานยังไง

คืนค่า: 6000.

Parameters

  • ไม่มี

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

Axolotl instance = ...;
int result = instance.getMaxAirSupply();

net.minecraft.world.entity.animal.axolotl.Axolotl#getMaxHeadXRot()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:350
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Max Head XRot

ทำงานยังไง

คืนค่า: 1.

Parameters

  • ไม่มี

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

Axolotl instance = ...;
int result = instance.getMaxHeadXRot();

net.minecraft.world.entity.animal.axolotl.Axolotl#getMaxHeadYRot()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:355
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Max Head YRot

ทำงานยังไง

คืนค่า: 1.

Parameters

  • ไม่มี

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

Axolotl instance = ...;
int result = instance.getMaxHeadYRot();

net.minecraft.world.entity.animal.axolotl.Axolotl#getPickupSound()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:396
  • Modifiers: public
  • Return: SoundEvent

คืออะไร

อ่านค่า Pickup Sound

ทำงานยังไง

คืนค่า: SoundEvents.BUCKET_FILL_AXOLOTL.

Parameters

  • ไม่มี

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

Axolotl instance = ...;
SoundEvent result = instance.getPickupSound();

net.minecraft.world.entity.animal.axolotl.Axolotl#getSwimSound()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:460
  • Modifiers: protected
  • Return: SoundEvent

คืออะไร

อ่านค่า Swim Sound

ทำงานยังไง

คืนค่า: SoundEvents.AXOLOTL_SWIM.

Parameters

  • ไม่มี

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

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

net.minecraft.world.entity.animal.axolotl.Axolotl#getSwimSplashSound()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:455
  • Modifiers: protected
  • Return: SoundEvent

คืออะไร

อ่านค่า Swim Splash Sound

ทำงานยังไง

คืนค่า: SoundEvents.AXOLOTL_SPLASH.

Parameters

  • ไม่มี

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

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

net.minecraft.world.entity.animal.axolotl.Axolotl#getTarget()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:511
  • Modifiers: public
  • Return: LivingEntity

คืออะไร

อ่านค่า Target

ทำงานยังไง

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

Parameters

  • ไม่มี

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

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

net.minecraft.world.entity.animal.axolotl.Axolotl#getVariant()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:232
  • Modifiers: public
  • Return: Axolotl.Variant

คืออะไร

อ่านค่า Variant

ทำงานยังไง

เรียกต่อ: byId(), get(). คืนค่า: Axolotl.Variant.byId(this.entityData.get(DATA_VARIANT)).

Parameters

  • ไม่มี

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

Axolotl instance = ...;
Axolotl.Variant result = instance.getVariant();

net.minecraft.world.entity.animal.axolotl.Axolotl#getWalkTargetValue(BlockPos,LevelReader)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:118
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า Walk Target Value

ทำงานยังไง

คืนค่า: 0.0F.

Parameters

  • BlockPos blockPos
  • LevelReader levelReader

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

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

net.minecraft.world.entity.animal.axolotl.Axolotl#handleAirSupply(int)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:210
  • Modifiers: protected
  • Return: void

คืออะไร

จัดการ Air Supply

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: isAlive(), isInWaterRainOrBubble(), setAirSupply(), getAirSupply(), hurt(), damageSources(), dryOut(), getMaxAirSupply().

Parameters

  • int i

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

@Override
protected void handleAirSupply(int i) {
    super.handleAirSupply(i);
}

net.minecraft.world.entity.animal.axolotl.Axolotl#hurtServer(ServerLevel,DamageSource,float)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:334
  • Modifiers: public
  • Return: boolean

คืออะไร

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

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getHealth(), isNoAi(), level(), nextInt(), getMaxHealth(), isInWater(), getEntity(), getDirectEntity(). คืนค่า: super.hurtServer(serverLevel, damageSource, f).

Parameters

  • ServerLevel serverLevel
  • DamageSource damageSource
  • float f

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

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

net.minecraft.world.entity.animal.axolotl.Axolotl#isFood(ItemStack)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:291
  • Modifiers: public
  • Return: boolean

คืออะไร

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

ทำงานยังไง

เรียกต่อ: is(). คืนค่า: itemStack.is(ItemTags.AXOLOTL_FOOD).

Parameters

  • ItemStack itemStack

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

Axolotl instance = ...;
ItemStack itemStack = ...;
boolean result = instance.isFood(itemStack);

net.minecraft.world.entity.animal.axolotl.Axolotl#isPlayingDead()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:258
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Playing Dead

ทำงานยังไง

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

Parameters

  • ไม่มี

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

Axolotl instance = ...;
boolean result = instance.isPlayingDead();

net.minecraft.world.entity.animal.axolotl.Axolotl#isPushedByFluid()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:249
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Pushed By Fluid

ทำงานยังไง

คืนค่า: false.

Parameters

  • ไม่มี

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

Axolotl instance = ...;
boolean result = instance.isPushedByFluid();

net.minecraft.world.entity.animal.axolotl.Axolotl#loadFromBucketTag(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:378
  • Modifiers: public
  • Return: void

คืออะไร

โหลด From Bucket Tag

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: loadDefaultDataFromBucketTag(), setVariant(), byId(), getInt(), contains(), setAge(), getBrain(), setMemoryWithExpiry().

Parameters

  • CompoundTag compoundTag

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

Axolotl instance = ...;
CompoundTag compoundTag = ...;
instance.loadFromBucketTag(compoundTag);

net.minecraft.world.entity.animal.axolotl.Axolotl#makeBrain(Dynamic<?>)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:470
  • Modifiers: protected
  • Return: Brain<?>

คืออะไร

สร้าง Brain

ทำงานยังไง

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

Parameters

  • Dynamic<?> dynamic

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

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

net.minecraft.world.entity.animal.axolotl.Axolotl#mobInteract(Player,InteractionHand)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:360
  • Modifiers: public
  • Return: InteractionResult

คืออะไร

ดำเนินการ mobInteract ตาม implementation ของ Axolotl

ทำงานยังไง

เรียกต่อ: bucketMobPickup(), orElse(). คืนค่า: Bucketable.bucketMobPickup(player, interactionHand, this).orElse(super.mobInteract(player, interactionHand)).

Parameters

  • Player player
  • InteractionHand interactionHand

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

Axolotl instance = ...;
Player player = ...;
InteractionHand interactionHand = ...;
InteractionResult result = instance.mobInteract(player, interactionHand);

net.minecraft.world.entity.animal.axolotl.Axolotl#onStopAttacking(ServerLevel,Axolotl,LivingEntity)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:406
  • Modifiers: public static
  • Return: void

คืออะไร

จัดการเหตุการณ์ Stop Attacking

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: isDeadOrDying(), getLastDamageSource(), getEntity(), getType(), getEntitiesOfClass(), getBoundingBox(), inflate(), contains().

Parameters

  • ServerLevel serverLevel
  • Axolotl axolotl
  • LivingEntity livingEntity

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

ServerLevel serverLevel = ...;
Axolotl axolotl = ...;
LivingEntity livingEntity = ...;
Axolotl.onStopAttacking(serverLevel, axolotl, livingEntity);

net.minecraft.world.entity.animal.axolotl.Axolotl#playAmbientSound()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:145
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ playAmbientSound ตาม implementation ของ Axolotl

ทำงานยังไง

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

Parameters

  • ไม่มี

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

Axolotl instance = ...;
instance.playAmbientSound();

net.minecraft.world.entity.animal.axolotl.Axolotl#playAttackSound()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:329
  • Modifiers: public
  • Return: void

คืออะไร

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

ทำงานยังไง

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

Parameters

  • ไม่มี

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

Axolotl instance = ...;
instance.playAttackSound();

net.minecraft.world.entity.animal.axolotl.Axolotl#readAdditionalSaveData(CompoundTag)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:138
  • Modifiers: public
  • Return: void

คืออะไร

อ่าน Additional Save Data

ทำงานยังไง

เรียกต่อ: setVariant(), byId(), getInt(), setFromBucket(), getBoolean().

Parameters

  • CompoundTag compoundTag

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

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

net.minecraft.world.entity.animal.axolotl.Axolotl#rehydrate()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:222
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ rehydrate ตาม implementation ของ Axolotl

ทำงานยังไง

เรียกต่อ: getAirSupply(), setAirSupply(), min(), getMaxAirSupply().

Parameters

  • ไม่มี

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

Axolotl instance = ...;
instance.rehydrate();

net.minecraft.world.entity.animal.axolotl.Axolotl#removeWhenFarAway(double)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:506
  • Modifiers: public
  • Return: boolean

คืออะไร

ลบ When Far Away

ทำงานยังไง

เรียกต่อ: fromBucket(), hasCustomName(). คืนค่า: !this.fromBucket() && !this.hasCustomName().

Parameters

  • double d

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

Axolotl instance = ...;
boolean result = instance.removeWhenFarAway(0.0D);

net.minecraft.world.entity.animal.axolotl.Axolotl#requiresCustomPersistence()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:433
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ requiresCustomPersistence ตาม implementation ของ Axolotl

ทำงานยังไง

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

Parameters

  • ไม่มี

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

Axolotl instance = ...;
boolean result = instance.requiresCustomPersistence();

net.minecraft.world.entity.animal.axolotl.Axolotl#saveToBucketTag(ItemStack)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:365
  • Modifiers: public
  • Return: void

คืออะไร

บันทึก To Bucket Tag

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: saveDefaultDataToBucketTag(), update(), putInt(), getVariant(), getId(), getAge(), getBrain(), hasMemoryValue().

Parameters

  • ItemStack itemStack

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

Axolotl instance = ...;
ItemStack itemStack = ...;
instance.saveToBucketTag(itemStack);

net.minecraft.world.entity.animal.axolotl.Axolotl#sendDebugPackets()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:480
  • Modifiers: protected
  • Return: void

คืออะไร

ส่ง Debug Packets

ทำงานยังไง

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

Parameters

  • ไม่มี

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

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

net.minecraft.world.entity.animal.axolotl.Axolotl#setFromBucket(boolean)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:267
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า From Bucket

ทำงานยังไง

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

Parameters

  • boolean bl

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

Axolotl instance = ...;
instance.setFromBucket(true);

net.minecraft.world.entity.animal.axolotl.Axolotl#setPlayingDead(boolean)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:254
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Playing Dead

ทำงานยังไง

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

Parameters

  • boolean bl

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

Axolotl instance = ...;
instance.setPlayingDead(true);

net.minecraft.world.entity.animal.axolotl.Axolotl#setVariant(Axolotl.Variant)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:236
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Variant

ทำงานยังไง

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

Parameters

  • Axolotl.Variant variant

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

Axolotl instance = ...;
Axolotl.Variant variant = ...;
instance.setVariant(variant);

net.minecraft.world.entity.animal.axolotl.Axolotl#travel(Vec3)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:486
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ travel ตาม implementation ของ Axolotl

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: isControlledByLocalInstance(), isInWater(), moveRelative(), getSpeed(), move(), getDeltaMovement(), setDeltaMovement(), scale().

Parameters

  • Vec3 vec3

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

Axolotl instance = ...;
Vec3 vec3 = ...;
instance.travel(vec3);

net.minecraft.world.entity.animal.axolotl.Axolotl#usePlayerItem(Player,InteractionHand,ItemStack)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:497
  • Modifiers: protected
  • Return: void

คืออะไร

ใช้งาน Player Item

ทำงานยังไง

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

Parameters

  • Player player
  • InteractionHand interactionHand
  • ItemStack itemStack

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

Player player = ...;
InteractionHand interactionHand = ...;
ItemStack itemStack = ...;
@Override
protected void usePlayerItem(Player player, InteractionHand interactionHand, ItemStack itemStack) {
    super.usePlayerItem(player, interactionHand, itemStack);
}

Axolotl$AxolotlGroupData

  • Full name: net.minecraft.world.entity.animal.axolotl.Axolotl$AxolotlGroupData
  • Package: net.minecraft.world.entity.animal.axolotl
  • Source: commonnet/minecraft/world/entity/animal/axolotl/Axolotl.java
  • Type: class
  • Modifiers: public static
  • Extends: AgeableMob.AgeableMobGroupData

net.minecraft.world.entity.animal.axolotl.Axolotl$AxolotlGroupData#AxolotlGroupData(Axolotl.Variant[])

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:537
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: types.

Parameters

  • Axolotl.Variant[] variants

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

Axolotl.Variant[] variants = ...;
Axolotl.AxolotlGroupData instance = new Axolotl.AxolotlGroupData(variants);

net.minecraft.world.entity.animal.axolotl.Axolotl$AxolotlGroupData#getVariant(RandomSource)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:542
  • Modifiers: public
  • Return: Axolotl.Variant

คืออะไร

อ่านค่า Variant

ทำงานยังไง

เรียกต่อ: nextInt(). คืนค่า: this.types[randomSource.nextInt(this.types.length)].

Parameters

  • RandomSource randomSource

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

Axolotl.AxolotlGroupData instance = ...;
RandomSource randomSource = ...;
Axolotl.Variant result = instance.getVariant(randomSource);

Axolotl$Variant

  • Full name: net.minecraft.world.entity.animal.axolotl.Axolotl$Variant
  • Package: net.minecraft.world.entity.animal.axolotl
  • Source: commonnet/minecraft/world/entity/animal/axolotl/Axolotl.java
  • Type: enum
  • Modifiers: public
  • Implements: StringRepresentable

net.minecraft.world.entity.animal.axolotl.Axolotl$Variant#byId(int)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:608
  • Modifiers: public static
  • Return: Axolotl.Variant

คืออะไร

ดำเนินการ byId ตาม implementation ของ Axolotl$Variant

ทำงานยังไง

เรียกต่อ: apply(). คืนค่า: BY_ID.apply(i).

Parameters

  • int i

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

Axolotl.Variant result = Axolotl.Variant.byId(0);

net.minecraft.world.entity.animal.axolotl.Axolotl$Variant#getCommonSpawnVariant(RandomSource)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:612
  • Modifiers: public static
  • Return: Axolotl.Variant

คืออะไร

อ่านค่า Common Spawn Variant

ทำงานยังไง

เรียกต่อ: getSpawnVariant(). คืนค่า: getSpawnVariant(randomSource, true).

Parameters

  • RandomSource randomSource

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

RandomSource randomSource = ...;
Axolotl.Variant result = Axolotl.Variant.getCommonSpawnVariant(randomSource);

net.minecraft.world.entity.animal.axolotl.Axolotl$Variant#getId()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:595
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Id

ทำงานยังไง

คืนค่า: this.id.

Parameters

  • ไม่มี

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

Axolotl.Variant instance = ...;
int result = instance.getId();

net.minecraft.world.entity.animal.axolotl.Axolotl$Variant#getName()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:599
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Name

ทำงานยังไง

คืนค่า: this.name.

Parameters

  • ไม่มี

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

Axolotl.Variant instance = ...;
String result = instance.getName();

net.minecraft.world.entity.animal.axolotl.Axolotl$Variant#getRareSpawnVariant(RandomSource)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:616
  • Modifiers: public static
  • Return: Axolotl.Variant

คืออะไร

อ่านค่า Rare Spawn Variant

ทำงานยังไง

เรียกต่อ: getSpawnVariant(). คืนค่า: getSpawnVariant(randomSource, false).

Parameters

  • RandomSource randomSource

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

RandomSource randomSource = ...;
Axolotl.Variant result = Axolotl.Variant.getRareSpawnVariant(randomSource);

net.minecraft.world.entity.animal.axolotl.Axolotl$Variant#getSerializedName()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/Axolotl.java:603
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Serialized Name

ทำงานยังไง

คืนค่า: this.name.

Parameters

  • ไม่มี

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

Axolotl.Variant instance = ...;
String result = instance.getSerializedName();

AxolotlAi

  • Full name: net.minecraft.world.entity.animal.axolotl.AxolotlAi
  • Package: net.minecraft.world.entity.animal.axolotl
  • Source: commonnet/minecraft/world/entity/animal/axolotl/AxolotlAi.java
  • Type: class
  • Modifiers: public

net.minecraft.world.entity.animal.axolotl.AxolotlAi#getTemptations()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/AxolotlAi.java:170
  • Modifiers: public static
  • Return: Predicate<ItemStack>

คืออะไร

อ่านค่า Temptations

ทำงานยังไง

เรียกต่อ: is(). คืนค่า: itemStack -> itemStack.is(ItemTags.AXOLOTL_FOOD).

Parameters

  • ไม่มี

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

Predicate<ItemStack> result = AxolotlAi.getTemptations();

net.minecraft.world.entity.animal.axolotl.AxolotlAi#makeBrain(Brain<Axolotl>)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/AxolotlAi.java:51
  • Modifiers: protected static
  • Return: Brain<?>

คืออะไร

สร้าง Brain

ทำงานยังไง

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

Parameters

  • Brain<Axolotl> brain

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

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

net.minecraft.world.entity.animal.axolotl.AxolotlAi#updateActivity(Axolotl)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/AxolotlAi.java:143
  • Modifiers: public static
  • Return: void

คืออะไร

อัปเดต Activity

ทำงานยังไง

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

Parameters

  • Axolotl axolotl

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

Axolotl axolotl = ...;
AxolotlAi.updateActivity(axolotl);

PlayDead

  • Full name: net.minecraft.world.entity.animal.axolotl.PlayDead
  • Package: net.minecraft.world.entity.animal.axolotl
  • Source: commonnet/minecraft/world/entity/animal/axolotl/PlayDead.java
  • Type: class
  • Modifiers: public
  • Extends: Behavior<Axolotl>

net.minecraft.world.entity.animal.axolotl.PlayDead#canStillUse(ServerLevel,Axolotl,long)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/PlayDead.java:21
  • Modifiers: protected
  • Return: boolean

คืออะไร

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

ทำงานยังไง

เรียกต่อ: isInWaterOrBubble(), getBrain(), hasMemoryValue(). คืนค่า: axolotl.isInWaterOrBubble() && axolotl.getBrain().hasMemoryValue(MemoryModuleType.PLAY_DEAD_TICKS).

Parameters

  • ServerLevel serverLevel
  • Axolotl axolotl
  • long l

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

ServerLevel serverLevel = ...;
Axolotl axolotl = ...;
@Override
protected boolean canStillUse(ServerLevel serverLevel, Axolotl axolotl, long l) {
    return super.canStillUse(serverLevel, axolotl, l);
}

net.minecraft.world.entity.animal.axolotl.PlayDead#checkExtraStartConditions(ServerLevel,Axolotl)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/PlayDead.java:17
  • Modifiers: protected
  • Return: boolean

คืออะไร

ตรวจสอบ Extra Start Conditions

ทำงานยังไง

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

Parameters

  • ServerLevel serverLevel
  • Axolotl axolotl

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

ServerLevel serverLevel = ...;
Axolotl axolotl = ...;
@Override
protected boolean checkExtraStartConditions(ServerLevel serverLevel, Axolotl axolotl) {
    return super.checkExtraStartConditions(serverLevel, axolotl);
}

net.minecraft.world.entity.animal.axolotl.PlayDead#PlayDead()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/PlayDead.java:13
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

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

Parameters

  • ไม่มี

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

PlayDead instance = new PlayDead();

net.minecraft.world.entity.animal.axolotl.PlayDead#start(ServerLevel,Axolotl,long)

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/PlayDead.java:25
  • Modifiers: protected
  • Return: void

คืออะไร

เริ่ม start

ทำงานยังไง

เรียกต่อ: getBrain(), eraseMemory(), addEffect(). สร้างออบเจ็กต์: MobEffectInstance.

Parameters

  • ServerLevel serverLevel
  • Axolotl axolotl
  • long l

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

ServerLevel serverLevel = ...;
Axolotl axolotl = ...;
@Override
protected void start(ServerLevel serverLevel, Axolotl axolotl, long l) {
    super.start(serverLevel, axolotl, l);
}

ValidatePlayDead

  • Full name: net.minecraft.world.entity.animal.axolotl.ValidatePlayDead
  • Package: net.minecraft.world.entity.animal.axolotl
  • Source: commonnet/minecraft/world/entity/animal/axolotl/ValidatePlayDead.java
  • Type: class
  • Modifiers: public

net.minecraft.world.entity.animal.axolotl.ValidatePlayDead#create()

  • Origin: common
  • Source: net/minecraft/world/entity/animal/axolotl/ValidatePlayDead.java:9
  • Modifiers: public static
  • Return: BehaviorControl<LivingEntity>

คืออะไร

สร้าง create

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: group(), present(), registered(), apply(), get(), erase(), getBrain(), useDefaultActivity(). คืนค่า: true.

Parameters

  • ไม่มี

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

BehaviorControl<LivingEntity> result = ValidatePlayDead.create();