Class RegistryUtil.ComponentUtil

java.lang.Object
net.ntrdeal.realapi.util.RegistryUtil.ComponentUtil
Enclosing class:
RegistryUtil

public static class RegistryUtil.ComponentUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> net.minecraft.core.component.DataComponentType<T>
    register(net.minecraft.resources.ResourceKey<net.minecraft.core.component.DataComponentType<?>> key, UnaryOperator<net.minecraft.core.component.DataComponentType.Builder<T>> operator)
     

    Methods inherited from class Object

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

    • ComponentUtil

      public ComponentUtil()
  • Method Details

    • register

      public static <T> net.minecraft.core.component.DataComponentType<T> register(net.minecraft.resources.ResourceKey<net.minecraft.core.component.DataComponentType<?>> key, UnaryOperator<net.minecraft.core.component.DataComponentType.Builder<T>> operator)