Class RegistryUtils

java.lang.Object
com.bleudev.nine_lifes.util.RegistryUtils

public class RegistryUtils extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.util.Identifier
    get(String name)
     
    static <T extends net.minecraft.item.consume.ConsumeEffect>
    net.minecraft.item.consume.ConsumeEffect.Type<T>
    registerConsumeEffectType(String name, com.mojang.serialization.MapCodec<T> codec, net.minecraft.network.codec.PacketCodec<net.minecraft.network.RegistryByteBuf,T> packetCodec)
     
    static <T extends net.minecraft.entity.Entity>
    net.minecraft.entity.EntityType<T>
    registerEntity(String path, net.minecraft.entity.EntityType.Builder<T> type)
     
    static net.minecraft.registry.entry.RegistryEntry<net.minecraft.entity.effect.StatusEffect>
    registerStatusEffect(String name, net.minecraft.entity.effect.StatusEffect effect)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RegistryUtils

      public RegistryUtils()
  • Method Details

    • get

      public static net.minecraft.util.Identifier get(String name)
    • registerStatusEffect

      public static net.minecraft.registry.entry.RegistryEntry<net.minecraft.entity.effect.StatusEffect> registerStatusEffect(String name, net.minecraft.entity.effect.StatusEffect effect)
    • registerConsumeEffectType

      public static <T extends net.minecraft.item.consume.ConsumeEffect> net.minecraft.item.consume.ConsumeEffect.Type<T> registerConsumeEffectType(String name, com.mojang.serialization.MapCodec<T> codec, net.minecraft.network.codec.PacketCodec<net.minecraft.network.RegistryByteBuf,T> packetCodec)
    • registerEntity

      public static <T extends net.minecraft.entity.Entity> net.minecraft.entity.EntityType<T> registerEntity(String path, net.minecraft.entity.EntityType.Builder<T> type)