AbstractGolem .java

net.minecraft.world.entity.animal.golem.AbstractGolem (class): members: getAmbientSoundInterval, removeWhenFarAway, getAmbientSound, getDeathSound.

net.minecraft.world.entity.animal.golemclass40 linescommonextends PathfinderMob927 B

API Surface (2)

int getAmbientSoundInterval()
boolean removeWhenFarAway(final double distSqr)

Code Graph: Dependencies (5)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

AbstractGolem.java40 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.entity.animal.golem;
2
3
import net.minecraft.sounds.SoundEvent;
4
import net.minecraft.world.damagesource.DamageSource;
5
import net.minecraft.world.entity.EntityType;
6
import net.minecraft.world.entity.PathfinderMob;
7
import net.minecraft.world.level.Level;
8
import org.jspecify.annotations.Nullable;
9
10
public abstract class AbstractGolem extends PathfinderMob {
11
	protected AbstractGolem(final EntityType<? extends AbstractGolem> type, final Level level) {
12
		super(type, level);
13
	}
14
15
	@Override
16
	protected @Nullable SoundEvent getAmbientSound() {
17
		return null;
18
	}
19
20
	@Override
21
	protected @Nullable SoundEvent getHurtSound(final DamageSource source) {
22
		return null;
23
	}
24
25
	@Override
26
	protected @Nullable SoundEvent getDeathSound() {
27
		return null;
28
	}
29
30
	@Override
31
	public int getAmbientSoundInterval() {
32
		return 120;
33
	}
34
35
	@Override
36
	public boolean removeWhenFarAway(final double distSqr) {
37
		return false;
38
	}
39
}
40

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