Entity render fixes
This commit is contained in:
parent
2f3aaa3fd9
commit
0538b5d36a
15 changed files with 18 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue