package net.minecraft.world.entity.animal.golem; import net.minecraft.sounds.SoundEvent; import net.minecraft.world.damagesource.DamageSource; import net.minecraft.world.entity.EntityType; import net.minecraft.world.entity.PathfinderMob; import net.minecraft.world.level.Level; import org.jspecify.annotations.Nullable; public abstract class AbstractGolem extends PathfinderMob { protected AbstractGolem(final EntityType type, final Level level) { super(type, level); } @Nullable @Override protected SoundEvent getAmbientSound() { return null; } @Nullable @Override protected SoundEvent getHurtSound(final DamageSource source) { return null; } @Nullable @Override protected SoundEvent getDeathSound() { return null; } @Override public int getAmbientSoundInterval() { return 120; } @Override public boolean removeWhenFarAway(final double distSqr) { return false; } }