Package me.emafire003.dev.coloredglowlib
Class ColoredGlowLibMod
java.lang.Object
me.emafire003.dev.coloredglowlib.ColoredGlowLibMod
- All Implemented Interfaces:
net.fabricmc.api.ModInitializer,org.ladysnake.cca.api.v3.entity.EntityComponentInitializer,org.ladysnake.cca.api.v3.scoreboard.ScoreboardComponentInitializer,org.ladysnake.cca.internal.base.ComponentRegistrationInitializer
public class ColoredGlowLibMod
extends Object
implements net.fabricmc.api.ModInitializer, org.ladysnake.cca.api.v3.entity.EntityComponentInitializer, org.ladysnake.cca.api.v3.scoreboard.ScoreboardComponentInitializer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidGets called after every datapack finished loading to see if an animation name that is used inside a datapack is valid or if it's wrongstatic @Nullable ColoredGlowLibAPIgetAPI()Use this to get the ColoredGlowLib API instance and use the methods to set colors and suchstatic @Nullable ColoredGlowLibAPIUse this to get the ColoredGlowLib API instance and use the methods to set colors and suchstatic List<CustomColorAnimation> static @Nullable ColoredGlowLibAPIgetLib()Use this to get the ColoredGlowLib API instance and use the methods to set colors and suchstatic booleanloadCustomColorAnimation(CustomColorAnimation animation) Returns false if there were issues reading colorsvoidvoidregisterEntityComponentFactories(org.ladysnake.cca.api.v3.entity.EntityComponentFactoryRegistry registry) Called to register component factories for statically declared component types.voidregisterScoreboardComponentFactories(org.ladysnake.cca.api.v3.scoreboard.ScoreboardComponentFactoryRegistry registry) Called to register component factories for statically declared component types.
-
Field Details
-
MOD_ID
-
LOGGER
public static org.slf4j.Logger LOGGER -
PREFIX
-
isAp1
public static boolean isAp1
-
-
Constructor Details
-
ColoredGlowLibMod
public ColoredGlowLibMod()
-
-
Method Details
-
onInitialize
public void onInitialize()- Specified by:
onInitializein interfacenet.fabricmc.api.ModInitializer
-
getAPI
Use this to get the ColoredGlowLib API instance and use the methods to set colors and suchIt will return null if the server hasn't started yet.
Aliases:
getColoredGlowLib(),getLib() -
getColoredGlowLib
-
getLib
-
registerEntityComponentFactories
public void registerEntityComponentFactories(org.ladysnake.cca.api.v3.entity.EntityComponentFactoryRegistry registry) Called to register component factories for statically declared component types.The passed registry must not be held onto! Static component factories must not be registered outside of this method.
- Specified by:
registerEntityComponentFactoriesin interfaceorg.ladysnake.cca.api.v3.entity.EntityComponentInitializer- Parameters:
registry- anEntityComponentFactoryRegistryfor statically declared components
-
registerScoreboardComponentFactories
public void registerScoreboardComponentFactories(org.ladysnake.cca.api.v3.scoreboard.ScoreboardComponentFactoryRegistry registry) Called to register component factories for statically declared component types.The passed registry must not be held onto! Static component factories must not be registered outside of this method.
- Specified by:
registerScoreboardComponentFactoriesin interfaceorg.ladysnake.cca.api.v3.scoreboard.ScoreboardComponentInitializer- Parameters:
registry- aScoreboardComponentFactoryRegistryfor statically declared components
-
loadCustomColorAnimation
Returns false if there were issues reading colors -
checkMaybeWrongAnimations
public static void checkMaybeWrongAnimations()Gets called after every datapack finished loading to see if an animation name that is used inside a datapack is valid or if it's wrong -
getCustomColorAnimations
-