Skip to content

Commit

Permalink
Renamed boat model class to match VFP naming scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphiMC committed Nov 26, 2023
1 parent d129cb5 commit a2a2a56
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
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"));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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());
}

}

0 comments on commit a2a2a56

Please sign in to comment.