use of cc.hyperium.mixinsimp.client.model.IMixinModelBox in project Hyperium by HyperiumClient.
the class MixinModelBiped method fixTopAndBottomOfLimbWrongTextures.
/**
* Fixes boxes having the wrong textures, when they are the second part of a limb
*
* @param models The {@link ModelRenderer} parts you want to fix
*/
void fixTopAndBottomOfLimbWrongTextures(ModelRenderer... models) {
for (ModelRenderer model : models) {
// We only need the first box since we know there only is one
ModelBox box = model.cubeList.get(0);
((IMixinModelBox) box).offsetTextureQuad(model, 3, 0.0F, -6.0F);
}
}
Aggregations