-
-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Collapse TextureStitchEvent into a single post-stitch event (#208)
- Loading branch information
Showing
4 changed files
with
44 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/main/java/net/neoforged/neoforge/client/event/TextureAtlasStitchedEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright (c) NeoForged and contributors | ||
* SPDX-License-Identifier: LGPL-2.1-only | ||
*/ | ||
|
||
package net.neoforged.neoforge.client.event; | ||
|
||
import net.minecraft.client.renderer.texture.TextureAtlas; | ||
import net.neoforged.bus.api.Event; | ||
import net.neoforged.bus.api.ICancellableEvent; | ||
import net.neoforged.fml.LogicalSide; | ||
import net.neoforged.fml.event.IModBusEvent; | ||
import net.neoforged.fml.javafmlmod.FMLJavaModLoadingContext; | ||
import org.jetbrains.annotations.ApiStatus; | ||
|
||
/** | ||
* Fired <b>after</b> a texture atlas is stitched together and all textures therein have been loaded. | ||
* | ||
* <p>This event is not {@linkplain ICancellableEvent cancellable}, and does not {@linkplain HasResult have a result}.</p> | ||
* | ||
* <p>This event is fired on the {@linkplain FMLJavaModLoadingContext#getModEventBus()} mod-specific event bus}, | ||
* only on the {@linkplain LogicalSide#CLIENT logical client}.</p> | ||
* | ||
* @see TextureAtlas | ||
*/ | ||
public class TextureAtlasStitchedEvent extends Event implements IModBusEvent { | ||
private final TextureAtlas atlas; | ||
|
||
@ApiStatus.Internal | ||
public TextureAtlasStitchedEvent(TextureAtlas atlas) { | ||
this.atlas = atlas; | ||
} | ||
|
||
/** | ||
* {@return the texture atlas} | ||
*/ | ||
public TextureAtlas getAtlas() { | ||
return atlas; | ||
} | ||
} |
85 changes: 0 additions & 85 deletions
85
src/main/java/net/neoforged/neoforge/client/event/TextureStitchEvent.java
This file was deleted.
Oops, something went wrong.