类 EffectRegistry

java.lang.Object
mod.chloeprime.aaaparticles.api.client.EffectRegistry

public class EffectRegistry extends Object
AAAParticles Effect Registry.
从以下版本开始:
1.0.0
  • 构造器详细资料

    • EffectRegistry

      public EffectRegistry()
  • 方法详细资料

    • get

      @Nullable public static @Nullable EffectHolder get(net.minecraft.resources.ResourceLocation id)
      Get the effek holder with the given id.
      参数:
      id - the wanted id of the returned effek.
      返回:
      the effek holder.
      从以下版本开始:
      2.0.0 Effeks are lazily loaded.
    • getKey

      @Nullable public static @Nullable net.minecraft.resources.ResourceLocation getKey(EffectHolder def)
      Get the id of the given effek holder.
      参数:
      def - the effek holder
      返回:
      the effek id.
      从以下版本开始:
      2.0.0 Effeks are lazily loaded.
    • getKey

      @Nullable public static @Nullable net.minecraft.resources.ResourceLocation getKey(EffectDefinition def)
      Get the id of the given loaded effek.
      参数:
      def - the loaded effek definition
      从以下版本开始:
      2.0.0
    • entries

      public static Collection<Map.Entry<net.minecraft.resources.ResourceLocation,EffectHolder>> entries()
      Get all effeks that has been scanned by the effek asset loader.
    • clearAllPlaying

      public static void clearAllPlaying()
      Clear all playing effek emitters.
    • forEach

      public static void forEach(BiConsumer<net.minecraft.resources.ResourceLocation,EffectHolder> action)
    • gc

      public static void gc()
      Release less recently used effeks when system is under high memory usage. This mod is called automatically regularly.