net.minecraft.entity.passive

public class AxolotlEntity

extends AnimalEntity implements Bucketable

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, Attackable, ServerWaypoint, Waypoint, Targeter, EquipmentHolder, Leashable, Bucketable

net.minecraft.world.entity.animal.axolotl.Axolotl
net.minecraft.class_5762
net.minecraft.entity.passive.AxolotlEntity

Field summary

Modifier and TypeField
public static final int
TOTAL_PLAYDEAD_TIME
field_30388
PLAY_DEAD_TICKS
private static final int
POSE_ANIMATION_TICKS
field_52482
field_52482
protected static final com.google.common.collect.ImmutableList<? extends SensorType<? extends Sensor<? super AxolotlEntity>>>
SENSOR_TYPES
field_28333
SENSORS
protected static final com.google.common.collect.ImmutableList<? extends MemoryModuleType<?>>
MEMORY_TYPES
field_28334
MEMORY_MODULES
private static final TrackedData<Integer>
DATA_VARIANT
field_28335
VARIANT
private static final TrackedData<Boolean>
DATA_PLAYING_DEAD
field_28336
PLAYING_DEAD
private static final TrackedData<Boolean>
FROM_BUCKET
field_28337
FROM_BUCKET
public static final double
PLAYER_REGEN_DETECTION_RANGE
field_30389
BUFF_RANGE
public static final int
RARE_VARIANT_CHANCE
field_30390
BLUE_BABY_CHANCE
private static final int
AXOLOTL_TOTAL_AIR_SUPPLY
field_30392
MAX_AIR
public static final String
VARIANT_TAG
field_30391
VARIANT_KEY
private static final int
REHYDRATE_AIR_SUPPLY
field_33485
HYDRATION_BY_POTION
private static final int
REGEN_BUFF_MAX_DURATION
field_34005
MAX_REGENERATION_BUFF_DURATION
private static final boolean
DEFAULT_FROM_BUCKET
field_57622
DEFAULT_FROM_BUCKET
public final InterpolatedFlipFlop
playingDeadAnimator
field_52478
playingDeadFf
public final InterpolatedFlipFlop
inWaterAnimator
field_52479
inWaterFf
public final InterpolatedFlipFlop
onGroundAnimator
field_52480
onGroundFf
public final InterpolatedFlipFlop
movingAnimator
field_52481
isMovingFf
private static final int
REGEN_BUFF_BASE_DURATION
field_30393
BUFF_DURATION

Constructor summary

ModifierConstructor
public (EntityType<? extends AxolotlEntity> type, World level)

Method summary

Modifier and TypeMethod
public float
getWalkTargetValue(BlockPos pos, LevelReader level)
method_6144(class_2338 arg0, class_4538 arg1)
getPathfindingFavor(BlockPos arg0, WorldView arg1)
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
public void
playAmbientSound()
method_5966()
playAmbientSound()
public EntityData
finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, SpawnGroupData groupData)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3)
public void
baseTick()
method_5670()
baseTick()
private void
tickAnimations()
method_61479()
tickClient()
protected void
handleAirSupply(ServerLevel level, int preTickAirSupply)
method_33230(class_3218 arg0, int arg1)
tickAir(ServerWorld world, int air)
public void
rehydrate()
method_36282()
hydrateFromPotion()
public int
getMaxAirSupply()
method_5748()
getMaxAir()
public AxolotlEntity$Variant
getVariant()
method_33225()
getVariant()
private void
setVariant(Axolotl$Variant variant)
method_33219(class_5762$class_5767 arg0)
setVariant(AxolotlEntity$Variant variant)
public <T> T
get(DataComponentType<? extends T> type)
method_58694(class_9331<? extends T> arg0)
get(ComponentType<? extends T> arg0)
protected void
applyImplicitComponents(DataComponentGetter components)
method_66649(class_9473 arg0)
copyComponentsFrom(ComponentsAccess arg0)
protected <T> boolean
applyImplicitComponent(DataComponentType<T> type, T value)
method_66654(class_9331<T> arg0, T arg1)
setApplicableComponent(ComponentType<T> arg0, T arg1)
private static boolean
useRareVariant(RandomSource random)
method_33221(class_5819 arg0)
shouldBabyBeDifferent(Random random)
public boolean
checkSpawnObstruction(LevelReader level)
method_5957(class_4538 arg0)
canSpawn(WorldView arg0)
public boolean
isPushedByFluid()
method_5675()
isPushedByFluids()
public void
setPlayingDead(boolean playingDead)
method_33231(boolean arg0)
setPlayingDead(boolean playingDead)
public boolean
isPlayingDead()
method_33226()
isPlayingDead()
public boolean
fromBucket()
method_6453()
isFromBucket()
public void
setFromBucket(boolean fromBucket)
method_6454(boolean arg0)
setFromBucket(boolean arg0)
public PassiveEntity
getBreedOffspring(ServerLevel level, AgeableMob partner)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
public boolean
isFood(ItemStack itemStack)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
public boolean
canBeLeashed()
method_5931()
canBeLeashed()
protected void
customServerAiStep(ServerLevel level)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
public static DefaultAttributeContainer$Builder
createAttributes()
method_33227()
createAxolotlAttributes()
protected EntityNavigation
createNavigation(Level level)
method_5965(class_1937 arg0)
createNavigation(World arg0)
public void
playAttackSound()
method_59928()
playAttackSound()
public boolean
hurtServer(ServerLevel level, DamageSource source, float damage)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
public int
getMaxHeadXRot()
method_5978()
getMaxLookPitchChange()
public int
getMaxHeadYRot()
method_5986()
getMaxHeadRotation()
public ActionResult
mobInteract(Player player, InteractionHand hand)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
public void
saveToBucketTag(ItemStack bucket)
method_6455(class_1799 arg0)
copyDataToStack(ItemStack arg0)
public void
loadFromBucketTag(CompoundTag tag)
method_35170(class_2487 arg0)
copyDataFromNbt(NbtCompound arg0)
public ItemStack
getBucketItemStack()
method_6452()
getBucketItem()
public SoundEvent
getPickupSound()
method_35171()
getBucketFillSound()
public boolean
canBeSeenAsEnemy()
method_33190()
canTakeDamage()
public static void
onStopAttacking(ServerLevel level, Axolotl body, LivingEntity target)
method_35175(class_3218 arg0, class_5762 arg1, class_1309 arg2)
appreciatePlayer(ServerWorld world, AxolotlEntity axolotl, LivingEntity target)
public void
applySupportingEffects(Player player)
method_33223(class_1657 arg0)
buffPlayer(PlayerEntity player)
public boolean
requiresCustomPersistence()
method_17326()
cannotDespawn()
protected SoundEvent
getHurtSound(DamageSource source)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
getDeathSound()
method_6002()
getDeathSound()
protected SoundEvent
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
getSwimSplashSound()
method_5625()
getSplashSound()
protected SoundEvent
getSwimSound()
method_5737()
getSwimSound()
protected Brain$Profile<AxolotlEntity>
brainProvider()
method_28306()
createBrainProfile()
protected Brain<?>
makeBrain(com.mojang.serialization.Dynamic<?> input)
method_18867(com.mojang.serialization.Dynamic<?> arg0)
deserializeBrain(com.mojang.serialization.Dynamic<?> arg0)
public Brain<AxolotlEntity>
getBrain()
method_18868()
getBrain()
protected void
travelInWater(Vec3 input, double baseGravity, boolean isFalling, double oldY)
method_76087(class_243 arg0, double arg1, boolean arg2, double arg3)
travelInWater(Vec3d arg0, double arg1, boolean arg2, double arg3)
protected void
usePlayerItem(Player player, InteractionHand hand, ItemStack itemStack)
method_6475(class_1657 arg0, class_1268 arg1, class_1799 arg2)
eat(PlayerEntity arg0, Hand arg1, ItemStack arg2)
public boolean
removeWhenFarAway(double distSqr)
method_5974(double arg0)
canImmediatelyDespawn(double arg0)
public LivingEntity
getTarget()
method_5968()
getTarget()
public static boolean
checkAxolotlSpawnRules(EntityType<? extends LivingEntity> type, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random)
method_38987(class_1299<? extends class_1309> arg0, class_5425 arg1, class_3730 arg2, class_2338 arg3, class_5819 arg4)
canSpawn(EntityType<? extends LivingEntity> type, ServerWorldAccess world, SpawnReason reason, BlockPos pos, Random random)
private void
lambda$loadFromBucketTag$2()
method_68270()
method_68270()
private void
lambda$loadFromBucketTag$1(CompoundTag arg0, Long arg1)
method_68269(class_2487 arg0, Long arg1)
method_68269(NbtCompound arg0, Long huntingCooldown)
private void
lambda$saveToBucketTag$0(CompoundTag arg0)
method_57305(class_2487 arg0)
method_57305(NbtCompound nbt)