Entity render fixes

This commit is contained in:
paulevsGitch 2020-10-26 11:48:01 +03:00
parent 2f3aaa3fd9
commit 0538b5d36a
15 changed files with 18 additions and 8 deletions

View file

@ -1,10 +1,22 @@
package ru.betterend.entity;
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;