net.minecraft.entity.passive

public class AxolotlEntity

extends AnimalEntity implements Bucketable

All mapped superinterfaces:

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

net.minecraft.world.entity.animal.axolotl.Axolotl
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
TOTAL_PLAYDEAD_TIME
field_30388
PLAY_DEAD_TICKS
private static final int
POSE_ANIMATION_TICKS
POSE_ANIMATION_TICKS
field_52482
field_52482
private static final Brain$Profile<AxolotlEntity>
BRAIN_PROVIDER
BRAIN_PROVIDER
field_1_1212
PROFILE
private static final TrackedData<Integer>
DATA_VARIANT
DATA_VARIANT
field_28335
VARIANT
private static final TrackedData<Boolean>
DATA_PLAYING_DEAD
DATA_PLAYING_DEAD
field_28336
PLAYING_DEAD
private static final TrackedData<Boolean>
FROM_BUCKET
FROM_BUCKET
field_28337
FROM_BUCKET
public static final double
PLAYER_REGEN_DETECTION_RANGE
PLAYER_REGEN_DETECTION_RANGE
field_30389
BUFF_RANGE
public static final int
RARE_VARIANT_CHANCE
RARE_VARIANT_CHANCE
field_30390
BLUE_BABY_CHANCE
private static final int
AXOLOTL_TOTAL_AIR_SUPPLY
AXOLOTL_TOTAL_AIR_SUPPLY
field_30392
MAX_AIR
public static final String
VARIANT_TAG
VARIANT_TAG
field_30391
VARIANT_KEY
private static final int
REHYDRATE_AIR_SUPPLY
REHYDRATE_AIR_SUPPLY
field_33485
HYDRATION_BY_POTION
private static final int
REGEN_BUFF_MAX_DURATION
REGEN_BUFF_MAX_DURATION
field_34005
MAX_REGENERATION_BUFF_DURATION
private static final boolean
DEFAULT_FROM_BUCKET
DEFAULT_FROM_BUCKET
field_57622
DEFAULT_FROM_BUCKET
public final InterpolatedFlipFlop
playingDeadAnimator
playingDeadAnimator
field_52478
playingDeadFf
public final InterpolatedFlipFlop
inWaterAnimator
inWaterAnimator
field_52479
inWaterFf
public final InterpolatedFlipFlop
onGroundAnimator
onGroundAnimator
field_52480
onGroundFf
public final InterpolatedFlipFlop
movingAnimator
movingAnimator
field_52481
isMovingFf
public final AnimationState
swimAnimationState
swimAnimationState
field_1_1216
swimState
public final AnimationState
walkAnimationState
walkAnimationState
field_1_1217
walkState
public final AnimationState
walkUnderWaterAnimationState
walkUnderWaterAnimationState
field_1_1218
moveState
public final AnimationState
idleUnderWaterAnimationState
idleUnderWaterAnimationState
field_1_1214
idleInWaterState
public final AnimationState
idleUnderWaterOnGroundAnimationState
idleUnderWaterOnGroundAnimationState
field_1_1215
idleOnGroundState
public final AnimationState
idleOnGroundAnimationState
idleOnGroundAnimationState
field_1_1213
idleState
public final AnimationState
playDeadAnimationState
playDeadAnimationState
field_1_1548
playingDeadState
private final com.google.common.collect.ImmutableList<AnimationState>
ALL_ANIMATIONS
ALL_ANIMATIONS
field_1_1210
animationStates
private static final EntityDimensions
BABY_DIMENSIONS
BABY_DIMENSIONS
field_1_1211
BABY_DIMENSIONS
private static final int
REGEN_BUFF_BASE_DURATION
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)
getWalkTargetValue(BlockPos pos, LevelReader level)
method_6144(class_2338 arg0, class_4538 arg1)
getPathfindingFavor(BlockPos arg0, WorldView arg1)
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
protected void
addAdditionalSaveData(ValueOutput output)
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
readAdditionalSaveData(ValueInput input)
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
public void
playAmbientSound()
playAmbientSound()
method_5966()
playAmbientSound()
public EntityData
finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, SpawnGroupData groupData)
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()
baseTick()
method_5670()
baseTick()
private void
tickBabyAnimations()
tickBabyAnimations()
method_1_1413()
tickClientBaby()
private void
soloAnimation(AnimationState toStart)
soloAnimation(AnimationState toStart)
method_1_1412(class_7094 arg0)
switchToAnimationState(AnimationState animationState)
private void
tickAdultAnimations()
tickAdultAnimations()
method_61479()
tickClientAdult()
protected void
handleAirSupply(ServerLevel level, int preTickAirSupply)
handleAirSupply(ServerLevel level, int preTickAirSupply)
method_33230(class_3218 arg0, int arg1)
tickAir(ServerWorld world, int air)
public void
rehydrate()
rehydrate()
method_36282()
hydrateFromPotion()
public int
getMaxAirSupply()
getMaxAirSupply()
method_5748()
getMaxAir()
public AxolotlEntity$Variant
getVariant()
getVariant()
method_33225()
getVariant()
private void
setVariant(Axolotl$Variant variant)
setVariant(Axolotl$Variant variant)
method_33219(class_5762$class_5767 arg0)
setVariant(AxolotlEntity$Variant variant)
public <T> T
get(DataComponentType<? extends T> type)
get(DataComponentType<? extends T> type)
method_58694(class_9331<? extends T> arg0)
get(ComponentType<? extends T> arg0)
protected void
applyImplicitComponents(DataComponentGetter components)
applyImplicitComponents(DataComponentGetter components)
method_66649(class_9473 arg0)
copyComponentsFrom(ComponentsAccess arg0)
protected <T> boolean
applyImplicitComponent(DataComponentType<T> type, T value)
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)
useRareVariant(RandomSource random)
method_33221(class_5819 arg0)
shouldBabyBeDifferent(Random random)
public boolean
checkSpawnObstruction(LevelReader level)
checkSpawnObstruction(LevelReader level)
method_5957(class_4538 arg0)
canSpawn(WorldView arg0)
public boolean
isPushedByFluid()
isPushedByFluid()
method_5675()
isPushedByFluids()
public void
setPlayingDead(boolean playingDead)
setPlayingDead(boolean playingDead)
method_33231(boolean arg0)
setPlayingDead(boolean playingDead)
public boolean
isPlayingDead()
isPlayingDead()
method_33226()
isPlayingDead()
public boolean
fromBucket()
fromBucket()
method_6453()
isFromBucket()
public void
setFromBucket(boolean fromBucket)
setFromBucket(boolean fromBucket)
method_6454(boolean arg0)
setFromBucket(boolean arg0)
public PassiveEntity
getBreedOffspring(ServerLevel level, AgeableMob partner)
getBreedOffspring(ServerLevel level, AgeableMob partner)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
public boolean
isFood(ItemStack itemStack)
isFood(ItemStack itemStack)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
public boolean
canBeLeashed()
canBeLeashed()
method_5931()
canBeLeashed()
protected void
customServerAiStep(ServerLevel level)
customServerAiStep(ServerLevel level)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
public static DefaultAttributeContainer$Builder
createAttributes()
createAttributes()
method_33227()
createAxolotlAttributes()
protected EntityNavigation
createNavigation(Level level)
createNavigation(Level level)
method_5965(class_1937 arg0)
createNavigation(World arg0)
public void
playAttackSound()
playAttackSound()
method_59928()
playAttackSound()
public boolean
hurtServer(ServerLevel level, DamageSource source, float damage)
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()
getMaxHeadXRot()
method_5978()
getMaxLookPitchChange()
public int
getMaxHeadYRot()
getMaxHeadYRot()
method_5986()
getMaxHeadRotation()
public ActionResult
mobInteract(Player player, InteractionHand hand)
mobInteract(Player player, InteractionHand hand)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
public void
saveToBucketTag(ItemStack bucket)
saveToBucketTag(ItemStack bucket)
method_6455(class_1799 arg0)
copyDataToStack(ItemStack arg0)
public void
loadFromBucketTag(CompoundTag tag)
loadFromBucketTag(CompoundTag tag)
method_35170(class_2487 arg0)
copyDataFromNbt(NbtCompound arg0)
public ItemStack
getBucketItemStack()
getBucketItemStack()
method_6452()
getBucketItem()
public SoundEvent
getPickupSound()
getPickupSound()
method_35171()
getBucketFillSound()
public boolean
canBeSeenAsEnemy()
canBeSeenAsEnemy()
method_33190()
canTakeDamage()
public static void
onStopAttacking(ServerLevel level, Axolotl body, LivingEntity target)
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)
applySupportingEffects(Player player)
method_33223(class_1657 arg0)
buffPlayer(PlayerEntity player)
public boolean
requiresCustomPersistence()
requiresCustomPersistence()
method_17326()
cannotDespawn()
protected SoundEvent
getHurtSound(DamageSource source)
getHurtSound(DamageSource source)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
getDeathSound()
getDeathSound()
method_6002()
getDeathSound()
protected SoundEvent
getAmbientSound()
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
getSwimSplashSound()
getSwimSplashSound()
method_5625()
getSplashSound()
protected SoundEvent
getSwimSound()
getSwimSound()
method_5737()
getSwimSound()
protected Brain<AxolotlEntity>
makeBrain(Brain$Packed packedBrain)
makeBrain(Brain$Packed packedBrain)
method_18867(class_4095$class_1_142 arg0)
deserializeBrain(Brain$State arg0)
public Brain<AxolotlEntity>
getBrain()
getBrain()
method_18868()
getBrain()
protected void
travelInWater(Vec3 input, double baseGravity, boolean isFalling, double oldY)
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)
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)
removeWhenFarAway(double distSqr)
method_5974(double arg0)
canImmediatelyDespawn(double arg0)
public LivingEntity
getTarget()
getTarget()
method_5968()
getTarget()
public static boolean
checkAxolotlSpawnRules(EntityType<? extends LivingEntity> type, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random)
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)
public EntityDimensions
getDefaultDimensions(Pose pose)
getDefaultDimensions(Pose pose)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)