类 EffectRegistry
java.lang.Object
mod.chloeprime.aaaparticles.api.client.EffectRegistry
AAAParticles Effect Registry.
- 从以下版本开始:
- 1.0.0
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidClear all playing effek emitters.static Collection<Map.Entry<net.minecraft.resources.ResourceLocation,EffectHolder>> entries()Get all effeks that has been scanned by the effek asset loader.static voidforEach(BiConsumer<net.minecraft.resources.ResourceLocation, EffectHolder> action) static voidgc()Release less recently used effeks when system is under high memory usage.static @Nullable EffectHolderget(net.minecraft.resources.ResourceLocation id) Get the effek holder with the given id.static @Nullable net.minecraft.resources.ResourceLocationgetKey(EffectDefinition def) Get the id of the given loaded effek.static @Nullable net.minecraft.resources.ResourceLocationgetKey(EffectHolder def) Get the id of the given effek holder.
-
构造器详细资料
-
EffectRegistry
public EffectRegistry()
-
-
方法详细资料
-
get
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
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.
-