25 lines
716 B
Java
25 lines
716 B
Java
package ru.betterend.entity.model;
|
|
|
|
import java.util.function.Function;
|
|
|
|
import net.minecraft.client.model.ModelPart;
|
|
import net.minecraft.client.render.RenderLayer;
|
|
import net.minecraft.client.render.entity.model.EntityModel;
|
|
import net.minecraft.entity.Entity;
|
|
import net.minecraft.util.Identifier;
|
|
|
|
public abstract class BlockBenchModel<T extends Entity> extends EntityModel<T> {
|
|
public BlockBenchModel() {
|
|
super();
|
|
}
|
|
|
|
public BlockBenchModel(Function<Identifier, RenderLayer> function) {
|
|
super(function);
|
|
}
|
|
|
|
protected void setRotationAngle(ModelPart modelRenderer, float x, float y, float z) {
|
|
modelRenderer.pitch = x;
|
|
modelRenderer.yaw = y;
|
|
modelRenderer.roll = z;
|
|
}
|
|
}
|