EntityModel .java

net.minecraft.client.model.EntityModel (class): members: MODEL_Y_OFFSET. imports: EntityRenderState, RenderType, RenderTypes, ModelPart, Identifier.

net.minecraft.client.modelclass24 linesclientextends EntityRenderState>814 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Fields & Constants (1)

MODEL_Y_OFFSET

Code Graph: Dependencies (6)

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

Full Source

EntityModel.java24 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.model;
2
3
import java.util.function.Function;
4
import net.fabricmc.api.EnvType;
5
import net.fabricmc.api.Environment;
6
import net.minecraft.client.model.geom.ModelPart;
7
import net.minecraft.client.renderer.entity.state.EntityRenderState;
8
import net.minecraft.client.renderer.rendertype.RenderType;
9
import net.minecraft.client.renderer.rendertype.RenderTypes;
10
import net.minecraft.resources.Identifier;
11
12
@Environment(EnvType.CLIENT)
13
public abstract class EntityModel<T extends EntityRenderState> extends Model<T> {
14
	public static final float MODEL_Y_OFFSET = -1.501F;
15
16
	protected EntityModel(final ModelPart root) {
17
		this(root, RenderTypes::entityCutout);
18
	}
19
20
	protected EntityModel(final ModelPart root, final Function<Identifier, RenderType> renderType) {
21
		super(root, renderType);
22
	}
23
}
24

Decompiled Minecraft 26.3 source of EntityModel (net/minecraft/client/model/EntityModel.java) with Mojang official mappings, stored verbatim on the site.