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 Details

    • MOD_ID

      public static String MOD_ID
    • LOGGER

      public static org.slf4j.Logger LOGGER
    • PREFIX

      public static String PREFIX
    • isAp1

      public static boolean isAp1
  • Constructor Details

    • ColoredGlowLibMod

      public ColoredGlowLibMod()
  • Method Details

    • onInitialize

      public void onInitialize()
      Specified by:
      onInitialize in interface net.fabricmc.api.ModInitializer
    • getAPI

      @Nullable public static @Nullable ColoredGlowLibAPI getAPI()
      Use this to get the ColoredGlowLib API instance and use the methods to set colors and such It will return null if the server hasn't started yet. Aliases: getColoredGlowLib() , getLib()
    • getColoredGlowLib

      @Nullable public static @Nullable ColoredGlowLibAPI getColoredGlowLib()
      Use this to get the ColoredGlowLib API instance and use the methods to set colors and such It will return null if the server hasn't started yet. Aliases: getAPI() , getLib()
    • getLib

      @Nullable public static @Nullable ColoredGlowLibAPI getLib()
      Use this to get the ColoredGlowLib API instance and use the methods to set colors and such It will return null if the server hasn't started yet. Aliases: getAPI() , getAPI()
    • 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:
      registerEntityComponentFactories in interface dev.onyxstudios.cca.api.v3.entity.EntityComponentInitializer
      Parameters:
      registry - an EntityComponentFactoryRegistry for 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:
      registerScoreboardComponentFactories in interface dev.onyxstudios.cca.api.v3.scoreboard.ScoreboardComponentInitializer
      Parameters:
      registry - a ScoreboardComponentFactoryRegistry for statically declared components
    • loadCustomColorAnimation

      public static boolean loadCustomColorAnimation(CustomColorAnimation animation)
      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

      public static List<CustomColorAnimation> getCustomColorAnimations()