Class DataComponentPatchBuilderMixin

java.lang.Object
dev.latvian.mods.kubejs.core.mixin.DataComponentPatchBuilderMixin
All Implemented Interfaces:
ComponentFunctions

public abstract class DataComponentPatchBuilderMixin extends Object implements ComponentFunctions
  • Constructor Details

    • DataComponentPatchBuilderMixin

      public DataComponentPatchBuilderMixin()
  • Method Details

    • build

      public abstract net.minecraft.core.component.DataComponentPatch build()
    • set

      @HideFromJS public abstract <T> net.minecraft.core.component.DataComponentPatch.Builder set(net.minecraft.core.component.DataComponentType<T> component, @Nullable T value)
    • kjs$get

      @Nullable public <T> T kjs$get(net.minecraft.core.component.DataComponentType<T> type)
      Specified by:
      kjs$get in interface ComponentFunctions
    • kjs$override

      public <T> ComponentFunctions kjs$override(net.minecraft.core.component.DataComponentType<T> type, @Nullable T value)
      Specified by:
      kjs$override in interface ComponentFunctions
    • kjs$remove

      public ComponentFunctions kjs$remove(net.minecraft.core.component.DataComponentType<?> type)
      Specified by:
      kjs$remove in interface ComponentFunctions