mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-12-22 16:48:25 +01:00
Renamed boat model class to match VFP naming scheme
This commit is contained in:
parent
d129cb5ed3
commit
a2a2a56e46
@ -26,11 +26,11 @@ import net.minecraft.client.render.entity.model.EntityModelLayer;
|
||||
import net.minecraft.entity.vehicle.BoatEntity;
|
||||
import net.minecraft.util.Identifier;
|
||||
|
||||
public class BoatModel_1_8 extends CompositeEntityModel<BoatEntity> {
|
||||
public static final EntityModelLayer MODEL_LAYER = new EntityModelLayer(new Identifier("viafabricplus", "boat_1_8"), "main");
|
||||
public class BoatModel1_8 extends CompositeEntityModel<BoatEntity> {
|
||||
public static final EntityModelLayer MODEL_LAYER = new EntityModelLayer(new Identifier("viafabricplus", "boat1_8"), "main");
|
||||
private final ImmutableList<ModelPart> parts;
|
||||
|
||||
public BoatModel_1_8(ModelPart root) {
|
||||
public BoatModel1_8(ModelPart root) {
|
||||
this.parts = ImmutableList.of(root.getChild("bottom"), root.getChild("back"), root.getChild("front"), root.getChild("right"), root.getChild("left"));
|
||||
}
|
||||
|
@ -31,13 +31,13 @@ import net.minecraft.util.math.MathHelper;
|
||||
import net.minecraft.util.math.RotationAxis;
|
||||
|
||||
public class BoatRenderer1_8 extends EntityRenderer<BoatEntity> {
|
||||
private static final Identifier TEXTURE = new Identifier("viafabricplus", "textures/boat_1_8.png");
|
||||
private final BoatModel_1_8 model;
|
||||
private static final Identifier TEXTURE = new Identifier("viafabricplus", "textures/boat1_8.png");
|
||||
private final BoatModel1_8 model;
|
||||
|
||||
public BoatRenderer1_8(EntityRendererFactory.Context ctx) {
|
||||
super(ctx);
|
||||
shadowRadius = 0.5F;
|
||||
model = new BoatModel_1_8(ctx.getPart(BoatModel_1_8.MODEL_LAYER));
|
||||
model = new BoatModel1_8(ctx.getPart(BoatModel1_8.MODEL_LAYER));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -20,7 +20,7 @@
|
||||
package de.florianmichael.viafabricplus.injection.mixin.fixes.minecraft.entity;
|
||||
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import de.florianmichael.viafabricplus.fixes.boat.BoatModel_1_8;
|
||||
import de.florianmichael.viafabricplus.fixes.boat.BoatModel1_8;
|
||||
import net.minecraft.client.model.TexturedModelData;
|
||||
import net.minecraft.client.render.entity.model.EntityModelLayer;
|
||||
import net.minecraft.client.render.entity.model.EntityModels;
|
||||
@ -33,7 +33,7 @@ public abstract class MixinEntityModels {
|
||||
|
||||
@ModifyVariable(method = "getModels", at = @At(value = "STORE", ordinal = 0), ordinal = 0)
|
||||
private static ImmutableMap.Builder<EntityModelLayer, TexturedModelData> addBoatModel(ImmutableMap.Builder<EntityModelLayer, TexturedModelData> builder) {
|
||||
return builder.put(BoatModel_1_8.MODEL_LAYER, BoatModel_1_8.getTexturedModelData());
|
||||
return builder.put(BoatModel1_8.MODEL_LAYER, BoatModel1_8.getTexturedModelData());
|
||||
}
|
||||
|
||||
}
|
||||
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Loading…
Reference in New Issue
Block a user