001package net.minecraftforge.client.event; 002 003import net.minecraft.client.renderer.texture.TextureMap; 004import net.minecraftforge.event.Event; 005 006 007public class TextureStitchEvent extends Event 008{ 009 public final TextureMap map; 010 011 public TextureStitchEvent(TextureMap map) 012 { 013 this.map = map; 014 } 015 016 /** 017 * Fired when the TextureMap is told to refresh it's stitched texture. 018 * Called after the Stitched list is cleared, but before any blocks or items 019 * add themselves to the list. 020 */ 021 public static class Pre extends TextureStitchEvent 022 { 023 public Pre(TextureMap map){ super(map); } 024 } 025 026 /** 027 * This event is fired once the texture map has loaded all textures and 028 * stitched them together. All Icons should have there locations defined 029 * by the time this is fired. 030 */ 031 public static class Post extends TextureStitchEvent 032 { 033 public Post(TextureMap map){ super(map); } 034 } 035}