[ci skip] spotlessApply with the new settings

This commit is contained in:
Raven Szewczyk committed 2023-01-29 10:10:39 +00:00
1 parent 1cbe6e860c
commit 202b7ce27a
790 files changed
+11316 -9692

No files matched your search

@@ -1,19 +1,22 @@
package WayofTime.alchemicalWizardry.client;
import WayofTime.alchemicalWizardry.ModItems;
import WayofTime.alchemicalWizardry.common.items.armour.BoundArmour;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.Minecraft;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelBiped;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import org.lwjgl.opengl.GL11;
import WayofTime.alchemicalWizardry.ModItems;
import WayofTime.alchemicalWizardry.common.items.armour.BoundArmour;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT)
public class POVArmourModelWrapper extends ModelRenderer {
private final ModelRenderer armModel;
private final ResourceLocation resource;
@@ -23,17 +26,17 @@ public class POVArmourModelWrapper extends ModelRenderer {
ModelBiped bipedModel = ((BoundArmour) ModItems.boundPlateFire)
.getArmorModel(Minecraft.getMinecraft().thePlayer, plateStack, 1);
armModel = bipedModel.bipedRightArm;
resource = new ResourceLocation(((BoundArmour) ModItems.boundPlateFire)
.getArmorTexture(plateStack, Minecraft.getMinecraft().thePlayer, 1, "POV"));
addBox(
0, 0, 0, 0, 0,
0); // Adds in a blank box as it's required in certain cases such as rendering arrows in entities
resource = new ResourceLocation(
((BoundArmour) ModItems.boundPlateFire)
.getArmorTexture(plateStack, Minecraft.getMinecraft().thePlayer, 1, "POV"));
addBox(0, 0, 0, 0, 0, 0); // Adds in a blank box as it's required in certain cases such as rendering arrows in
// entities
}
@Override
public void render(float partialTicks) {
GL11.glPushMatrix();
// GL11.glTranslated(0.3, -.1, 0);
// GL11.glTranslated(0.3, -.1, 0);
Minecraft.getMinecraft().renderEngine.bindTexture(resource);
armModel.rotateAngleX = this.rotateAngleX;
armModel.rotateAngleY = this.rotateAngleY;