render crabby

This commit is contained in:
NK 2023-03-08 10:53:18 +00:00
parent 13fafcb523
commit 0c66d91239
3 changed files with 2 additions and 8 deletions

View file

@ -4,19 +4,13 @@ import net.minecraft.client.gui.Gui;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.event.RenderGameOverlayEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import org.lwjgl.opengl.GL11;
import static me.night0721.lilase.Lilase.mc;
public class ImageRenderer {
public void draw() {
// GlStateManager.color(CurrentColor.getFloatValue(0, 0), CurrentColor.getFloatValue(0, 1), CurrentColor.getFloatValue(0, 2));
GL11.glPushMatrix();
mc.getTextureManager().bindTexture(new ResourceLocation("lilase:lilase.png"));
// mc.getTextureManager().bindTexture(new ResourceLocation("lilase:textures/images/crabby.png"));
Gui.drawModalRectWithCustomSizedTexture(5, 5, 0, 0, 100, 100, 100, 100);
GL11.glPopMatrix();
mc.getTextureManager().bindTexture(new ResourceLocation("lilase:textures/images/crab.png"));
Gui.drawModalRectWithCustomSizedTexture(0, 50, 0, 0, 100, 100, 100, 100);
}
@SubscribeEvent

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB