Interface DataComponentWrapper
public interface DataComponentWrapper
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypestatic final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionTypestatic final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypestatic final Lazy<Map<net.minecraft.core.component.DataComponentType<?>, dev.latvian.mods.rhino.type.TypeInfo>> -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic booleanstatic dev.latvian.mods.rhino.type.TypeInfogetTypeInfo(net.minecraft.core.component.DataComponentType<?> type) static net.minecraft.core.component.DataComponentMapstatic net.minecraft.core.component.DataComponentMapmapOrEmptyOf(@Nullable com.mojang.serialization.DynamicOps<net.minecraft.nbt.Tag> ops, Object o) static StringBuildermapToString(StringBuilder builder, @Nullable com.mojang.serialization.DynamicOps<net.minecraft.nbt.Tag> ops, net.minecraft.core.component.DataComponentMap map) static net.minecraft.core.component.DataComponentPatchstatic net.minecraft.core.component.DataComponentPatchpatchOrEmptyOf(@Nullable com.mojang.serialization.DynamicOps<net.minecraft.nbt.Tag> ops, Object o) static StringBuilderpatchToString(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.DataComponentMapreadMap(@Nullable com.mojang.serialization.DynamicOps<net.minecraft.nbt.Tag> registryOps, com.mojang.brigadier.StringReader reader) static net.minecraft.core.component.DataComponentPatchreadPatch(@Nullable com.mojang.serialization.DynamicOps<net.minecraft.nbt.Tag> registryOps, com.mojang.brigadier.StringReader reader) static net.minecraft.core.component.DataComponentPredicatereadPredicate(@Nullable com.mojang.serialization.DynamicOps<net.minecraft.nbt.Tag> registryOps, com.mojang.brigadier.StringReader reader) static net.minecraft.core.component.DataComponentPatchvisualPatch(net.minecraft.core.component.DataComponentPatch patch) static net.minecraft.core.component.DataComponentType<?>
-
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
-
VISUAL_DIFFERENCE
-
-
Method Details
-
getTypeInfo
static dev.latvian.mods.rhino.type.TypeInfo getTypeInfo(net.minecraft.core.component.DataComponentType<?> type) -
wrapType
-
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
-
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)
-