render crabby
This commit is contained in:
parent
13fafcb523
commit
0c66d91239
3 changed files with 2 additions and 8 deletions
|
@ -4,19 +4,13 @@ import net.minecraft.client.gui.Gui;
|
||||||
import net.minecraft.util.ResourceLocation;
|
import net.minecraft.util.ResourceLocation;
|
||||||
import net.minecraftforge.client.event.RenderGameOverlayEvent;
|
import net.minecraftforge.client.event.RenderGameOverlayEvent;
|
||||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||||
import org.lwjgl.opengl.GL11;
|
|
||||||
|
|
||||||
import static me.night0721.lilase.Lilase.mc;
|
import static me.night0721.lilase.Lilase.mc;
|
||||||
|
|
||||||
public class ImageRenderer {
|
public class ImageRenderer {
|
||||||
public void draw() {
|
public void draw() {
|
||||||
// GlStateManager.color(CurrentColor.getFloatValue(0, 0), CurrentColor.getFloatValue(0, 1), CurrentColor.getFloatValue(0, 2));
|
mc.getTextureManager().bindTexture(new ResourceLocation("lilase:textures/images/crab.png"));
|
||||||
GL11.glPushMatrix();
|
Gui.drawModalRectWithCustomSizedTexture(0, 50, 0, 0, 100, 100, 100, 100);
|
||||||
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();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
|
|
BIN
src/main/resources/assets/lilase/textures/images/crab.png
Normal file
BIN
src/main/resources/assets/lilase/textures/images/crab.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.8 KiB |
Binary file not shown.
Before Width: | Height: | Size: 4.5 KiB |
Loading…
Reference in a new issue