Package net.minecraftforge.client.event
Class TextureStitchEvent.Pre
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.TextureStitchEvent
net.minecraftforge.client.event.TextureStitchEvent.Pre
- All Implemented Interfaces:
IModBusEvent
- Enclosing class:
- TextureStitchEvent
Fired before a texture atlas is stitched together. This can be used to add custom sprites to be stitched into the atlas.
This event is not cancellable, and does not have a result.
This event is fired on the FMLJavaModLoadingContext.getModEventBus() mod-specific event bus}, only on the logical client.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.client.event.TextureStitchEvent
TextureStitchEvent.Post, TextureStitchEvent.Pre
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addSprite
(ResourceLocation sprite) Adds a sprite to be stitched into the texture atlas.Methods inherited from class net.minecraftforge.client.event.TextureStitchEvent
getAtlas
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
sprites
-
-
Constructor Details
-
Pre
-
-
Method Details
-
addSprite
Adds a sprite to be stitched into the texture atlas.Callers should check that the atlas which the event is fired for is the atlas they wish to stitch the sprite into, as otherwise they would be stitching the sprite into all atlases.
- Parameters:
sprite
- the location of the sprite
-