/* * Copyright (C) 2022 NotEnoughUpdates contributors * * This file is part of NotEnoughUpdates. * * NotEnoughUpdates is free software: you can redistribute it * and/or modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation, either * version 3 of the License, or (at your option) any later version. * * NotEnoughUpdates is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with NotEnoughUpdates. If not, see <https://www.gnu.org/licenses/>. */packageio.github.moulberry.notenoughupdates.cosmetics;importio.github.moulberry.notenoughupdates.NotEnoughUpdates;importnet.minecraft.client.Minecraft;importnet.minecraft.client.renderer.GlStateManager;importnet.minecraft.client.renderer.Tessellator;importnet.minecraft.client.renderer.WorldRenderer;importnet.minecraft.client.renderer.vertex.DefaultVertexFormats;importnet.minecraft.client.renderer.vertex.VertexFormat;importnet.minecraft.client.renderer.vertex.VertexFormatElement;importnet.minecraft.entity.Entity;importnet.minecraft.entity.EntityLivingBase;importnet.minecraft.entity.player.EntityPlayer;importnet.minecraft.potion.Potion;importnet.minecraft.util.MathHelper;importnet.minecraft.util.ResourceLocation;importnet.minecraftforge.client.event.RenderPlayerEvent;importorg.lwjgl.BufferUtils;importorg.lwjgl.input.Keyboard;importorg.lwjgl.opengl.GL11;importorg.lwjgl.opengl.GL15;importorg.lwjgl.opengl.GL20;importorg.lwjgl.opengl.GL30;importorg.lwjgl.opengl.GL42;importorg.lwjgl.opengl.GL43;importorg.lwjgl.util.vector.Vector2f;importorg.lwjgl.util.vector.Vector3f;importjava.nio.ByteBuffer;importjava.nio.FloatBuffer;importjava.util.ArrayList;importjava.util.Arrays;importjava.util.List;importjava.util.Random;importjava.util.TreeMap;publicclassNEUCape{privateintcurrentFrame=0;privateintdisplayFrame=0;privateStringcapeName;publicResourceLocation[]capeTextures=null;privatelonglastFrameUpdate=0;privatestaticfinalintANIM_MODE_LOOP=0;privatestaticfinalintANIM_MODE_PINGPONG=1;privatefinalint