net.minecraft.entity.passive

public abstract class AbstractNautilusEntity

extends TameableEntity implements JumpingMount, RideableInventory

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, EntryConvertible, Attackable, ServerWaypoint, Waypoint, Targeter, EquipmentHolder, Leashable, Tameable, JumpingMount, Mount, RideableInventory

net.minecraft.world.entity.animal.nautilus.AbstractNautilus
net.minecraft.class_12116
net.minecraft.entity.passive.AbstractNautilusEntity

Field summary

Modifier and TypeField
public static final int
INVENTORY_SLOT_OFFSET
field_64484
field_64484
public static final int
INVENTORY_ROWS
field_64482
field_64482
public static final int
SMALL_RESTRICTION_RADIUS
field_63349
field_63349
public static final int
LARGE_RESTRICTION_RADIUS
field_63328
field_63328
public static final int
RESTRICTION_RADIUS_BUFFER
field_63329
field_63329
private static final int
EFFECT_DURATION
field_63332
field_63332
private static final int
EFFECT_REFRESH_RATE
field_63333
field_63333
private static final double
NAUTILUS_WATER_RESISTANCE
field_63334
field_63334
private static final float
IN_WATER_SPEED_MODIFIER
field_63335
field_63335
private static final float
RIDDEN_SPEED_MODIFIER_IN_WATER
field_63336
field_63336
private static final float
RIDDEN_SPEED_MODIFIER_ON_LAND
field_63807
field_63807
private static final TrackedData<Boolean>
DASH
field_63337
DASHING
private static final int
DASH_COOLDOWN_TICKS
field_63338
field_63338
private static final int
DASH_MINIMUM_DURATION_TICKS
field_63339
field_63339
private static final float
DASH_MOMENTUM_IN_WATER
field_63340
field_63340
private static final float
DASH_MOMENTUM_ON_LAND
field_63341
field_63341
private int
dashCooldown
field_63342
jumpCooldown
protected float
playerJumpPendingScale
field_63330
dashStrength
protected SimpleInventory
inventory
field_64483
inventory
private static final double
BUBBLE_SPREAD_FACTOR
field_63343
field_63343
private static final double
BUBBLE_DIRECTION_SCALE
field_63344
field_63344
private static final double
BUBBLE_Y_OFFSET
field_63345
field_63345
private static final double
BUBBLE_PROBABILITY_MULTIPLIER
field_63346
field_63346
private static final float
BUBBLE_PROBABILITY_MIN
field_63347
field_63347
private static final float
BUBBLE_PROBABILITY_MAX
field_63348
field_63348

Constructor summary

ModifierConstructor
protected (EntityType<? extends AbstractNautilusEntity> type, World level)

Method summary

Modifier and TypeMethod
public boolean
isFood(ItemStack itemStack)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
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 static DefaultAttributeContainer$Builder
createAttributes()
method_75156()
createNautilusAttributes()
public boolean
isPushedByFluid()
method_5675()
isPushedByFluids()
protected EntityNavigation
createNavigation(Level level)
method_5965(class_1937 arg0)
createNavigation(World arg0)
public float
getWalkTargetValue(BlockPos pos, LevelReader level)
method_6144(class_2338 arg0, class_4538 arg1)
getPathfindingFavor(BlockPos arg0, WorldView arg1)
public static boolean
checkNautilusSpawnRules(EntityType<? extends AbstractNautilus> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random)
method_75154(class_1299<? extends class_12116> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, class_5819 arg4)
canSpawn(EntityType<? extends AbstractNautilusEntity> type, WorldAccess world, SpawnReason reason, BlockPos pos, Random random)
public boolean
checkSpawnObstruction(LevelReader level)
method_5957(class_4538 arg0)
canSpawn(WorldView arg0)
public boolean
canUseSlot(EquipmentSlot slot)
method_56991(class_1304 arg0)
canUseSlot(EquipmentSlot arg0)
protected boolean
canDispenserEquipIntoSlot(EquipmentSlot slot)
method_63626(class_1304 arg0)
canDispenserEquipSlot(EquipmentSlot arg0)
protected boolean
canAddPassenger(Entity passenger)
method_5818(class_1297 arg0)
canAddPassenger(Entity arg0)
public LivingEntity
getControllingPassenger()
method_5642()
getControllingPassenger()
protected Vec3d
getRiddenInput(Player controller, Vec3 selfInput)
method_49482(class_1657 arg0, class_243 arg1)
getControlledMovementInput(PlayerEntity arg0, Vec3d arg1)
protected Vec2f
getRiddenRotation(LivingEntity controller)
method_75165(class_1309 arg0)
getControlledRotation(LivingEntity entity)
protected void
tickRidden(Player controller, Vec3 riddenInput)
method_49481(class_1657 arg0, class_243 arg1)
tickControlled(PlayerEntity arg0, Vec3d arg1)
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 float
getRiddenSpeed(Player controller)
method_49485(class_1657 arg0)
getSaddledSpeed(PlayerEntity arg0)
protected void
doPlayerRide(Player player)
method_75163(class_1657 arg0)
putPlayerOnBack(PlayerEntity player)
private int
getNautilusRestrictionRadius()
method_75161()
getMaxTargetRange()
protected void
checkRestriction()
method_75157()
tickPositionTarget()
protected void
customServerAiStep(ServerLevel level)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
private void
applyEffects(Level level)
method_75155(class_1937 arg0)
tickController(World world)
private void
spawnBubbles()
method_75162()
spawnParticles()
public void
tick()
method_5773()
tick()
public boolean
canJump()
method_6153()
canJump()
public void
onPlayerJump(int jumpAmount)
method_6154(int arg0)
setJumpStrength(int arg0)
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public boolean
isDashing()
method_75158()
isDashing()
public void
setDashing(boolean isDashing)
method_75151(boolean arg0)
setDashing(boolean dashing)
protected void
executeRidersJump(float amount, Player controller)
method_75152(float arg0, class_1657 arg1)
dash(float strength, PlayerEntity controller)
public void
handleStartJump(int jumpScale)
method_6155(int arg0)
startJumping(int arg0)
public int
getJumpCooldown()
method_45327()
getJumpCooldown()
public void
onSyncedDataUpdated(EntityDataAccessor<?> accessor)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
public void
handleStopJump()
method_6156()
stopJumping()
protected void
playStepSound(BlockPos pos, BlockState blockState)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
protected SoundEvent
getDashSound()
method_75159()
getDashSound()
protected SoundEvent
getDashReadySound()
method_75160()
getDashReadySound()
public ActionResult
interact(Player player, InteractionHand hand, Vec3 location)
method_5688(class_1657 arg0, class_1268 arg1, class_243 arg2)
interact(PlayerEntity arg0, Hand arg1, Vec3d arg2)
public ActionResult
mobInteract(Player player, InteractionHand hand)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
private void
tryToTame(Player player)
method_75164(class_1657 arg0)
tryTame(PlayerEntity player)
public boolean
removeWhenFarAway(double distSqr)
method_5974(double arg0)
canImmediatelyDespawn(double arg0)
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 boolean
canBeAffected(MobEffectInstance newEffect)
method_6049(class_1293 arg0)
canHaveStatusEffect(StatusEffectInstance arg0)
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)
protected RegistryEntry<SoundEvent>
getEquipSound(EquipmentSlot slot, ItemStack stack, Equippable equippable)
method_66667(class_1304 arg0, class_1799 arg1, class_10192 arg2)
getEquipSound(EquipmentSlot arg0, ItemStack arg1, EquippableComponent arg2)
public final int
getInventorySize()
method_76585()
getSlotCount()
protected void
createInventory()
method_76586()
initInventory()
public void
openCustomInventoryScreen(Player player)
method_6722(class_1657 arg0)
openInventory(PlayerEntity arg0)
public StackReference
getSlot(int slot)
method_32318(int arg0)
getStackReference(int arg0)
public boolean
hasInventoryChanged(Container oldInventory)
method_76584(class_1263 arg0)
areInventoriesDifferent(Inventory inventory)
public int
getInventoryColumns()
method_76587()
getInventoryColumns()
protected boolean
isMobControlled()
method_76727()
isControlledByMob()
protected boolean
isAggravated()
method_76728()
hasAttackTarget()
public boolean
requiresCustomPersistence()
method_17326()
cannotDespawn()