java.lang.Object
top.r3944realms.superleadrope.core.register.SLPEffects

public class SLPEffects extends Object
The type Slp effects.
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static net.minecraftforge.registries.DeferredRegister<net.minecraft.world.effect.MobEffect>
    The Mob effect.
    static net.minecraftforge.registries.RegistryObject<net.minecraft.world.effect.MobEffect>
    The constant NO_SUPER_LEASH_EFFECT.
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    static String
    getEffectKey(net.minecraft.world.effect.MobEffect effect)
    Gets effect key.
    static String
    getModEffectKey(net.minecraftforge.registries.RegistryObject<net.minecraft.world.effect.MobEffect> effect)
    Gets mod effect key.
    static <T extends net.minecraft.world.effect.MobEffect>
    net.minecraftforge.registries.RegistryObject<net.minecraft.world.effect.MobEffect>
    register(String name, Supplier<T> effect)
    Register registry object.
    static void
    register(net.minecraftforge.eventbus.api.IEventBus eventBus)
    Register.

    从类继承的方法 java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • MOB_EFFECT

      public static net.minecraftforge.registries.DeferredRegister<net.minecraft.world.effect.MobEffect> MOB_EFFECT
      The Mob effect.
    • NO_SUPER_LEASH_EFFECT

      public static net.minecraftforge.registries.RegistryObject<net.minecraft.world.effect.MobEffect> NO_SUPER_LEASH_EFFECT
      The constant NO_SUPER_LEASH_EFFECT.
  • 构造器详细资料

    • SLPEffects

      public SLPEffects()
  • 方法详细资料

    • register

      public static <T extends net.minecraft.world.effect.MobEffect> net.minecraftforge.registries.RegistryObject<net.minecraft.world.effect.MobEffect> register(String name, Supplier<T> effect)
      Register registry object.
      类型参数:
      T - the type parameter
      参数:
      name - the name
      effect - the effect
      返回:
      the registry object
    • getEffectKey

      public static String getEffectKey(net.minecraft.world.effect.MobEffect effect)
      Gets effect key.
      参数:
      effect - the effect
      返回:
      the effect key
    • getModEffectKey

      public static String getModEffectKey(net.minecraftforge.registries.RegistryObject<net.minecraft.world.effect.MobEffect> effect)
      Gets mod effect key.
      参数:
      effect - the effect
      返回:
      the mod effect key
    • register

      public static void register(net.minecraftforge.eventbus.api.IEventBus eventBus)
      Register.
      参数:
      eventBus - the event bus