Package me.emafire003.dev.coloredglowlib
Class ColoredGlowLibMod
java.lang.Object
me.emafire003.dev.coloredglowlib.ColoredGlowLibMod
- All Implemented Interfaces:
dev.onyxstudios.cca.api.v3.entity.EntityComponentInitializer,dev.onyxstudios.cca.api.v3.scoreboard.ScoreboardComponentInitializer,dev.onyxstudios.cca.internal.base.ComponentRegistrationInitializer,net.fabricmc.api.ModInitializer
public class ColoredGlowLibMod
extends Object
implements net.fabricmc.api.ModInitializer, dev.onyxstudios.cca.api.v3.entity.EntityComponentInitializer, dev.onyxstudios.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 net.minecraft.util.IdentifiergetIdentifier(String path) Used (internally) to get an identifier with this mod's namespacestatic @Nullable ColoredGlowLibAPIgetLib()Use this to get the ColoredGlowLib API instance and use the methods to set colors and suchstatic @Nullable net.minecraft.server.MinecraftServerReturns a server instance.static booleanloadCustomColorAnimation(CustomColorAnimation animation) Returns false if there were issues reading colorsvoidvoidregisterEntityComponentFactories(dev.onyxstudios.cca.api.v3.entity.EntityComponentFactoryRegistry registry) Called to register component factories for statically declared component types.voidregisterScoreboardComponentFactories(dev.onyxstudios.cca.api.v3.scoreboard.ScoreboardComponentFactoryRegistry registry) Called to register component factories for statically declared component types.static voidreInitAPIInstance(net.minecraft.scoreboard.Scoreboard scoreboard) Re-initialises the api instance.
-
Field Details
-
MOD_ID
-
LOGGER
public static org.slf4j.Logger LOGGER -
PREFIX
-
isAp1
public static boolean isAp1 -
TRIES_BEFORE_SHUTDOWN
public static short TRIES_BEFORE_SHUTDOWNDO NOT TOUCH THESE PLEASE :D -
MAX_TRIES
public static final short MAX_TRIES- See Also:
-
SHUTDOWN
public static final boolean SHUTDOWN- See Also:
-
-
Constructor Details
-
ColoredGlowLibMod
public ColoredGlowLibMod()
-
-
Method Details
-
onInitialize
public void onInitialize()- Specified by:
onInitializein interfacenet.fabricmc.api.ModInitializer
-
reInitAPIInstance
public static void reInitAPIInstance(net.minecraft.scoreboard.Scoreboard scoreboard) Re-initialises the api instance. Watch out! May modify the Global Color component stuff! -
getIdentifier
Used (internally) to get an identifier with this mod's namespace -
getServerInstance
@Nullable public static @Nullable net.minecraft.server.MinecraftServer getServerInstance()Returns a server instance. Make sure you are getting this after the server has started! -
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(dev.onyxstudios.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 interfacedev.onyxstudios.cca.api.v3.entity.EntityComponentInitializer- Parameters:
registry- anEntityComponentFactoryRegistryfor statically declared components
-
registerScoreboardComponentFactories
public void registerScoreboardComponentFactories(dev.onyxstudios.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 interfacedev.onyxstudios.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
-