Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static final ResourceLocation BLUE_HEARTS = new ResourceLocation(XLifeHealth.MOD_ID, "textures/gui/blue_hearts.png");
- public static final ResourceLocation GREEN_HEARTS = new ResourceLocation(XLifeHealth.MOD_ID, "textures/gui/green_hearts.png");
- public static final ResourceLocation ORANGE_HEARTS = new ResourceLocation(XLifeHealth.MOD_ID, "textures/gui/orange_hearts.png");
- public static final ResourceLocation PINK_HEARTS = new ResourceLocation(XLifeHealth.MOD_ID, "textures/gui/pink_hearts.png");
- public static final ResourceLocation PURPLE_HEARTS = new ResourceLocation(XLifeHealth.MOD_ID, "textures/gui/purple_hearts.png");
- public static final ResourceLocation YELLOW_HEARTS = new ResourceLocation(XLifeHealth.MOD_ID, "textures/gui/yellow_hearts.png");
- public static final ResourceLocation CYAN_HEARTS = new ResourceLocation(XLifeHealth.MOD_ID, "textures/gui/cyan_hearts.png");
- public static final ResourceLocation MAGENTA_HEARTS = new ResourceLocation(XLifeHealth.MOD_ID, "textures/gui/magenta_hearts.png");
- public static final ResourceLocation BLACK_HEARTS = new ResourceLocation(XLifeHealth.MOD_ID, "textures/gui/black_hearts.png");
- private final int tex_width = 7, tex_height = 7;
- public void setBlueHearts(RenderGameOverlayEvent event) {
- if (event.getType() == RenderGameOverlayEvent.ElementType.HEALTH) {
- Minecraft mc = Minecraft.getInstance();
- mc.getTextureManager().bindTexture(BLUE_HEARTS);
- bind(BLUE_HEARTS);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement