Skip to content

Commit

Permalink
Make fish not use generic hurt sound. Closes #111
Browse files Browse the repository at this point in the history
  • Loading branch information
GirafiStudios committed Apr 27, 2020
1 parent 2811279 commit ac6d88e
Showing 1 changed file with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,27 @@ protected ItemStack getFishBucket() {
@Override
@Nonnull
protected SoundEvent getFlopSound() {
if (Objects.equals(this.getType().getRegistryName(), AquaItems.JELLYFISH.getRegistryName())) {
if (AquaFishEntity.TYPES.get(this.getType()) == FishType.JELLYFISH) {
return SoundEvents.BLOCK_SLIME_BLOCK_STEP;
}
return SoundEvents.ENTITY_COD_FLOP;
}

@Override
protected SoundEvent getAmbientSound() {
return SoundEvents.ENTITY_COD_AMBIENT;
}

@Override
protected SoundEvent getDeathSound() {
return SoundEvents.ENTITY_COD_DEATH;
}

@Override
protected SoundEvent getHurtSound(@Nonnull DamageSource damageSource) {
return SoundEvents.ENTITY_COD_HURT;
}

@Override
@Nonnull
public EntitySize getSize(@Nonnull Pose pose) {
Expand Down

0 comments on commit ac6d88e

Please sign in to comment.