Entity class rename
This commit is contained in:
parent
4fb81c1c1f
commit
57548290e9
16 changed files with 144 additions and 147 deletions
25
src/main/java/ru/betterend/entity/model/BlockBenchModel.java
Normal file
25
src/main/java/ru/betterend/entity/model/BlockBenchModel.java
Normal file
|
@ -0,0 +1,25 @@
|
|||
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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue