AmbientCreature .java

net.minecraft.world.entity.ambient.AmbientCreature (class, 17 lines): extends Mob. members: canBeLeashed. imports: Mob.

net.minecraft.world.entity.ambientclass17 linescommonextends Mob412 B

API Surface (1)

boolean canBeLeashed()

Same Package (2)

Code Graph: Dependencies (3)

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

Full Source

AmbientCreature.java17 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.entity.ambient;
2
3
import net.minecraft.world.entity.EntityType;
4
import net.minecraft.world.entity.Mob;
5
import net.minecraft.world.level.Level;
6
7
public abstract class AmbientCreature extends Mob {
8
	protected AmbientCreature(final EntityType<? extends AmbientCreature> type, final Level level) {
9
		super(type, level);
10
	}
11
12
	@Override
13
	public boolean canBeLeashed() {
14
		return false;
15
	}
16
}
17

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