Cod .java

net.minecraft.world.entity.animal.fish.Cod (class, 41 lines): members: getBucketItemStack, getFlopSound, getAmbientSound, getDeathSound, getHurtSound.

net.minecraft.world.entity.animal.fishclass41 linescommonextends AbstractSchoolingFish971 B

API Surface (5)

ItemStack getBucketItemStack()
SoundEvent getAmbientSound()
SoundEvent getDeathSound()
SoundEvent getHurtSound(final DamageSource source)
SoundEvent getFlopSound()

Full Source

Cod.java41 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.entity.animal.fish;
2
3
import net.minecraft.sounds.SoundEvent;
4
import net.minecraft.sounds.SoundEvents;
5
import net.minecraft.world.damagesource.DamageSource;
6
import net.minecraft.world.entity.EntityType;
7
import net.minecraft.world.item.ItemStack;
8
import net.minecraft.world.item.Items;
9
import net.minecraft.world.level.Level;
10
11
public class Cod extends AbstractSchoolingFish {
12
	public Cod(final EntityType<? extends Cod> type, final Level level) {
13
		super(type, level);
14
	}
15
16
	@Override
17
	public ItemStack getBucketItemStack() {
18
		return new ItemStack(Items.COD_BUCKET);
19
	}
20
21
	@Override
22
	protected SoundEvent getAmbientSound() {
23
		return SoundEvents.COD_AMBIENT;
24
	}
25
26
	@Override
27
	protected SoundEvent getDeathSound() {
28
		return SoundEvents.COD_DEATH;
29
	}
30
31
	@Override
32
	protected SoundEvent getHurtSound(final DamageSource source) {
33
		return SoundEvents.COD_HURT;
34
	}
35
36
	@Override
37
	protected SoundEvent getFlopSound() {
38
		return SoundEvents.COD_FLOP;
39
	}
40
}
41

Decompiled Minecraft 26.3 source of Cod (net/minecraft/world/entity/animal/fish/Cod.java) with Mojang official mappings, stored verbatim on the site.