Class DataComponentWrapper

java.lang.Object
de.luckymcdev.foundryengine.common.wrapper.DataComponentWrapper
All Implemented Interfaces:
TypeWrapper<net.minecraft.core.component.DataComponentType<?>>

public class DataComponentWrapper extends Object implements TypeWrapper<net.minecraft.core.component.DataComponentType<?>>
Resolves DataComponentType by field name from DataComponents.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.core.component.DataComponentType<?>
    resolve(String input)
    Resolves a DataComponentType by its field name in DataComponents.
    net.minecraft.core.component.DataComponentType<?>
    wrap(String input)
    Wraps the input string by resolving it as a DataComponents field name.

    Methods inherited from class Object

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

    • DataComponentWrapper

      public DataComponentWrapper()
  • Method Details

    • resolve

      public static net.minecraft.core.component.DataComponentType<?> resolve(String input)
      Resolves a DataComponentType by its field name in DataComponents.
    • wrap

      public net.minecraft.core.component.DataComponentType<?> wrap(String input)
      Wraps the input string by resolving it as a DataComponents field name.
      Specified by:
      wrap in interface TypeWrapper<net.minecraft.core.component.DataComponentType<?>>