Class RegistryUtils
java.lang.Object
com.bleudev.nine_lifes.util.RegistryUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.util.Identifierstatic <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)
-
Constructor Details
-
RegistryUtils
public RegistryUtils()
-
-
Method Details
-
get
-
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)
-