48 lines
1.1 KiB
Java
48 lines
1.1 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*
|
|
* Could not load the following classes:
|
|
* org.jspecify.annotations.Nullable
|
|
*/
|
|
package net.minecraft.world.entity.animal;
|
|
|
|
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(EntityType<? extends AbstractGolem> type, Level level) {
|
|
super((EntityType<? extends PathfinderMob>)type, level);
|
|
}
|
|
|
|
@Override
|
|
protected @Nullable SoundEvent getAmbientSound() {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
protected @Nullable SoundEvent getHurtSound(DamageSource source) {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
protected @Nullable SoundEvent getDeathSound() {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public int getAmbientSoundInterval() {
|
|
return 120;
|
|
}
|
|
|
|
@Override
|
|
public boolean removeWhenFarAway(double distSqr) {
|
|
return false;
|
|
}
|
|
}
|
|
|