#Shoulder entity
1 messages · Page 1 of 1 (latest)
Hoo that rabbit hole go super deep haha
But thx for the hint i will continue to dig!
*not model constructor, renderer constructor. My bad
I've progressed a bit but im stuck on the rendering of the Axolotl, in order to create the vertexConsumer i need the texture of it
And I can't figure out how to do it T_T
Since AxolotlEntityRenderer doesn't have a static getTexture(AxolotlEntity) i need to make an invoker for it like
package net.hezaerd.axolotlpets.mixins;
import net.minecraft.client.render.entity.AxolotlEntityRenderer;
import net.minecraft.entity.passive.AxolotlEntity;
import net.minecraft.util.Identifier;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Invoker;
@Mixin(AxolotlEntityRenderer.class)
public class AxolotlEntityRendererMixin {
@Invoker("getTexture")
public static Identifier invokeGetTexture(AxolotlEntity axolotlEntity) {
throw new AssertionError();
}
}