im trying to update my mod for 1.21.3 and boats have been causing a lot of trouble. im mostly there but the need for a custom renderer is tripping me up. heres what i have so far:
@Environment(EnvType.CLIENT)
public class WillowBoatEntityRenderer extends BoatEntityRenderer {
public static final EntityModelLayer WILLOW_BOAT = new EntityModelLayer(Identifier.of(BlocksForBuilders.MOD_ID, "willow_boat"), "main");
private final Identifier texture;
public WillowBoatEntityRenderer(EntityRendererFactory.Context ctx) {
super(ctx, WILLOW_BOAT);
texture = Identifier.of(BlocksForBuilders.MOD_ID, "textures/entity/boat/willow.png");
}
public Identifier getTexture() {
return texture;
}
}
and in the client class:
EntityModelLayerRegistry.registerModelLayer(WillowBoatEntityRenderer.WILLOW_BOAT, BoatEntityModel::getTexturedModelData);
as it is, the boat model will render but i cant seem to get the textures to map to it. bit out my depth here, anyone got any ideas?