I got it working.
I had to still use the Minecraft.getInstance().getEntityModels() And use that in plushRenderer.
public class ItemStackRenderer extends BlockEntityWithoutLevelRenderer{
private EntityModelSet entityModelSet;
private Map<Plush.Type, PlushModelBase> plushModelBaseMap;
public ItemStackRenderer(BlockEntityRenderDispatcher RenderDispatcher, EntityModelSet ModelSet) {
super(RenderDispatcher, ModelSet);
}
@Override
public void onResourceManagerReload(ResourceManager resourceManager) {
}
@Override
public void renderByItem(ItemStack stack, ItemTransforms.TransformType transformType, PoseStack matrixStackIn, MultiBufferSource bufferIn, int combinedLightIn, int combinedOverlayIn) {
Item item = stack.getItem();
if (item instanceof BlockItem) {
Block block = ((BlockItem) item).getBlock();
if (block instanceof PlushBlock) {
GameProfile gameprofile = null;
if (stack.hasTag()) {
CompoundTag compoundtag = stack.getTag();
if (compoundtag.contains("SkullOwner", 10)) {
gameprofile = NbtUtils.readGameProfile(compoundtag.getCompound("SkullOwner"));
} else if (compoundtag.contains("SkullOwner", 8) && !StringUtils.isBlank(compoundtag.getString("SkullOwner"))) {
gameprofile = new GameProfile(null, compoundtag.getString("SkullOwner"));
compoundtag.remove("SkullOwner");
SkullBlockEntity.updateGameprofile(gameprofile, (p_172560_) -> {
compoundtag.put("SkullOwner", NbtUtils.writeGameProfile(new CompoundTag(), p_172560_));
});
}
}
Plush.Type PlushType = ((PlushBlock) block).getType();
this.entityModelSet = Minecraft.getInstance().getEntityModels();
plushModelBaseMap = PlushBlockRenderer.createPlushRenderers(this.entityModelSet);;
PlushModelBase modelBase = plushModelBaseMap.get(PlushType);
RenderType rendertype = PlushBlockRenderer.getRenderType(PlushType, gameprofile);
Furniature.LOGGER.info(gameprofile +" :Gameprofile");
Furniature.LOGGER.info(PlushType+" :Plush Type");
Furniature.LOGGER.info(modelBase+" :Model Base");
PlushBlockRenderer.renderPlush((Direction) null, 180.0F, 0.0F, matrixStackIn, bufferIn, combinedLightIn, modelBase, rendertype);
}
}
}
}