net.minecraft.entity.passive

public abstract class FishEntity

extends WaterCreatureEntity 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.fish.AbstractFish
net.minecraft.class_1422
net.minecraft.entity.passive.FishEntity

Field summary

Modifier and TypeField
private static final TrackedData<Boolean>
FROM_BUCKET
field_6730
FROM_BUCKET
private static final boolean
DEFAULT_FROM_BUCKET
field_57598
DEFAULT_FROM_BUCKET

Constructor summary

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

Method summary

Modifier and TypeMethod
public static DefaultAttributeContainer$Builder
createAttributes()
method_26879()
createFishAttributes()
public boolean
requiresCustomPersistence()
method_17326()
cannotDespawn()
public boolean
removeWhenFarAway(double distSqr)
method_5974(double arg0)
canImmediatelyDespawn(double arg0)
public int
getMaxSpawnClusterSize()
method_5945()
getLimitPerChunk()
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public boolean
fromBucket()
method_6453()
isFromBucket()
public void
setFromBucket(boolean fromBucket)
method_6454(boolean arg0)
setFromBucket(boolean 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)
protected void
registerGoals()
method_5959()
initGoals()
protected EntityNavigation
createNavigation(Level level)
method_5965(class_1937 arg0)
createNavigation(World arg0)
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)
public void
aiStep()
method_6007()
tickMovement()
protected 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 SoundEvent
getPickupSound()
method_35171()
getBucketFillSound()
protected boolean
canRandomSwim()
method_6456()
hasSelfControl()
protected abstract SoundEvent
getFlopSound()
method_6457()
getFlopSound()
protected SoundEvent
getSwimSound()
method_5737()
getSwimSound()
protected void
playStepSound(BlockPos pos, BlockState blockState)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)