Advertisement
jayhillx

setBlueHearts

Oct 21st, 2020
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. public static final ResourceLocation BLUE_HEARTS = new ResourceLocation(XLifeHealth.MOD_ID, "textures/gui/blue_hearts.png");
  2. public static final ResourceLocation GREEN_HEARTS = new ResourceLocation(XLifeHealth.MOD_ID, "textures/gui/green_hearts.png");
  3. public static final ResourceLocation ORANGE_HEARTS = new ResourceLocation(XLifeHealth.MOD_ID, "textures/gui/orange_hearts.png");
  4. public static final ResourceLocation PINK_HEARTS = new ResourceLocation(XLifeHealth.MOD_ID, "textures/gui/pink_hearts.png");
  5. public static final ResourceLocation PURPLE_HEARTS = new ResourceLocation(XLifeHealth.MOD_ID, "textures/gui/purple_hearts.png");
  6. public static final ResourceLocation YELLOW_HEARTS = new ResourceLocation(XLifeHealth.MOD_ID, "textures/gui/yellow_hearts.png");
  7. public static final ResourceLocation CYAN_HEARTS = new ResourceLocation(XLifeHealth.MOD_ID, "textures/gui/cyan_hearts.png");
  8. public static final ResourceLocation MAGENTA_HEARTS = new ResourceLocation(XLifeHealth.MOD_ID, "textures/gui/magenta_hearts.png");
  9. public static final ResourceLocation BLACK_HEARTS = new ResourceLocation(XLifeHealth.MOD_ID, "textures/gui/black_hearts.png");
  10. private final int tex_width = 7, tex_height = 7;
  11.  
  12. public void setBlueHearts(RenderGameOverlayEvent event) {
  13. if (event.getType() == RenderGameOverlayEvent.ElementType.HEALTH) {
  14. Minecraft mc = Minecraft.getInstance();
  15. mc.getTextureManager().bindTexture(BLUE_HEARTS);
  16. bind(BLUE_HEARTS);
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement