Class RegisterTextureAtlasesEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.RegisterTextureAtlasesEvent
- All Implemented Interfaces:
IModBusEvent
public class RegisterTextureAtlasesEvent
extends net.neoforged.bus.api.Event
implements IModBusEvent
Fired for registering texture atlases to the
AtlasManager.
This event fires during startup when the AtlasManager is constructed.
This event is not cancellable.
This event is fired on the mod-specific event bus, only on the logical client.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalMetadata(Identifier atlasId, MetadataSectionType<?> metaSectionType) Add an additionalMetadataSectionTypeto be loaded for the sprites of the given texture atlas.voidregister(AtlasManager.AtlasConfig atlasConfig) Register a texture atlas with the given configuration
-
Field Details
-
atlases
-
-
Constructor Details
-
RegisterTextureAtlasesEvent
@Internal public RegisterTextureAtlasesEvent(SequencedMap<Identifier, AtlasManager.AtlasConfig> atlases)
-
-
Method Details
-
register
Register a texture atlas with the given configuration- Parameters:
atlasConfig- The configuration of the texture atlas
-
addAdditionalMetadata
Add an additionalMetadataSectionTypeto be loaded for the sprites of the given texture atlas.- Parameters:
atlasId- The ID of the texture atlas, seeAtlasIdsfor vanilla IDsmetaSectionType- The metadata section type to add
-