Interface DataComponentWrapper


public interface DataComponentWrapper
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
     
    static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
     
    static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
     
    static final Lazy<Map<net.minecraft.core.component.DataComponentType<?>,dev.latvian.mods.rhino.type.TypeInfo>>
     
    static final Lazy<Set<net.minecraft.core.component.DataComponentType<?>>>
     
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static boolean
    filter(Object from, dev.latvian.mods.rhino.type.TypeInfo target)
     
    static dev.latvian.mods.rhino.type.TypeInfo
    getTypeInfo(net.minecraft.core.component.DataComponentType<?> type)
     
    static net.minecraft.core.component.DataComponentMap
    mapOf(@Nullable com.mojang.serialization.DynamicOps<net.minecraft.nbt.Tag> ops, Object o)
     
    static net.minecraft.core.component.DataComponentMap
    mapOrEmptyOf(@Nullable com.mojang.serialization.DynamicOps<net.minecraft.nbt.Tag> ops, Object o)
     
    mapToString(StringBuilder builder, @Nullable com.mojang.serialization.DynamicOps<net.minecraft.nbt.Tag> ops, net.minecraft.core.component.DataComponentMap map)
     
    static net.minecraft.core.component.DataComponentPatch
    patchOf(@Nullable com.mojang.serialization.DynamicOps<net.minecraft.nbt.Tag> ops, Object o)
     
    static net.minecraft.core.component.DataComponentPatch
    patchOrEmptyOf(@Nullable com.mojang.serialization.DynamicOps<net.minecraft.nbt.Tag> ops, Object o)
     
    patchToString(StringBuilder builder, @Nullable com.mojang.serialization.DynamicOps<net.minecraft.nbt.Tag> ops, net.minecraft.core.component.DataComponentPatch patch)
     
    static net.minecraft.core.component.DataComponentType<?>
    readComponentType(com.mojang.brigadier.StringReader stringReader)
     
    static net.minecraft.core.component.DataComponentMap
    readMap(@Nullable com.mojang.serialization.DynamicOps<net.minecraft.nbt.Tag> registryOps, com.mojang.brigadier.StringReader reader)
     
    static net.minecraft.core.component.DataComponentPatch
    readPatch(@Nullable com.mojang.serialization.DynamicOps<net.minecraft.nbt.Tag> registryOps, com.mojang.brigadier.StringReader reader)
     
    static net.minecraft.core.component.DataComponentPredicate
    readPredicate(@Nullable com.mojang.serialization.DynamicOps<net.minecraft.nbt.Tag> registryOps, com.mojang.brigadier.StringReader reader)
     
    static net.minecraft.core.component.DataComponentPatch
    visualPatch(net.minecraft.core.component.DataComponentPatch patch)
     
    static net.minecraft.core.component.DataComponentType<?>
    wrapType(Object object)
     
  • Field Details

    • ERROR_UNKNOWN_COMPONENT

      static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_COMPONENT
    • ERROR_MALFORMED_COMPONENT

      static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_MALFORMED_COMPONENT
    • ERROR_EXPECTED_COMPONENT

      static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_EXPECTED_COMPONENT
    • TYPE_INFOS

      static final Lazy<Map<net.minecraft.core.component.DataComponentType<?>,dev.latvian.mods.rhino.type.TypeInfo>> TYPE_INFOS
    • VISUAL_DIFFERENCE

      static final Lazy<Set<net.minecraft.core.component.DataComponentType<?>>> VISUAL_DIFFERENCE
  • Method Details

    • getTypeInfo

      static dev.latvian.mods.rhino.type.TypeInfo getTypeInfo(net.minecraft.core.component.DataComponentType<?> type)
    • wrapType

      static net.minecraft.core.component.DataComponentType<?> wrapType(Object object)
    • readMap

      static net.minecraft.core.component.DataComponentMap readMap(@Nullable @Nullable com.mojang.serialization.DynamicOps<net.minecraft.nbt.Tag> registryOps, com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • readPatch

      static net.minecraft.core.component.DataComponentPatch readPatch(@Nullable @Nullable com.mojang.serialization.DynamicOps<net.minecraft.nbt.Tag> registryOps, com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • readComponentType

      static net.minecraft.core.component.DataComponentType<?> readComponentType(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • readPredicate

      static net.minecraft.core.component.DataComponentPredicate readPredicate(@Nullable @Nullable com.mojang.serialization.DynamicOps<net.minecraft.nbt.Tag> registryOps, com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • filter

      static boolean filter(Object from, dev.latvian.mods.rhino.type.TypeInfo target)
    • mapOf

      static net.minecraft.core.component.DataComponentMap mapOf(@Nullable @Nullable com.mojang.serialization.DynamicOps<net.minecraft.nbt.Tag> ops, Object o)
    • mapOrEmptyOf

      static net.minecraft.core.component.DataComponentMap mapOrEmptyOf(@Nullable @Nullable com.mojang.serialization.DynamicOps<net.minecraft.nbt.Tag> ops, Object o)
    • patchOf

      static net.minecraft.core.component.DataComponentPatch patchOf(@Nullable @Nullable com.mojang.serialization.DynamicOps<net.minecraft.nbt.Tag> ops, Object o)
    • patchOrEmptyOf

      static net.minecraft.core.component.DataComponentPatch patchOrEmptyOf(@Nullable @Nullable com.mojang.serialization.DynamicOps<net.minecraft.nbt.Tag> ops, Object o)
    • mapToString

      static StringBuilder mapToString(StringBuilder builder, @Nullable @Nullable com.mojang.serialization.DynamicOps<net.minecraft.nbt.Tag> ops, net.minecraft.core.component.DataComponentMap map)
    • patchToString

      static StringBuilder patchToString(StringBuilder builder, @Nullable @Nullable com.mojang.serialization.DynamicOps<net.minecraft.nbt.Tag> ops, net.minecraft.core.component.DataComponentPatch patch)
    • visualPatch

      static net.minecraft.core.component.DataComponentPatch visualPatch(net.minecraft.core.component.DataComponentPatch patch)