Uses of Interface
com.mojang.serialization.DataResult
Packages that use DataResult
Package
Description
-
Uses of DataResult in com.mojang.datafixers
Methods in com.mojang.datafixers that return DataResult -
Uses of DataResult in com.mojang.datafixers.types
Methods in com.mojang.datafixers.types that return DataResultModifier and TypeMethodDescriptionprivate <T,B> DataResult <T> final <T> DataResult<Pair<A, Dynamic<T>>> <T> DataResult<Pair<Optional<?>, T>> Type.read(DynamicOps<T> ops, TypeRewriteRule rule, PointFreeRule fRule, T input) <T> DataResult<T> Type.readAndWrite(DynamicOps<T> ops, Type<?> expectedType, TypeRewriteRule rule, PointFreeRule fRule, T input) <T> DataResult<Pair<Typed<A>, T>> <T> DataResult<Pair<Typed<A>, T>> Type.readTyped(DynamicOps<T> ops, T input) final <T> DataResult<T> Type.write(DynamicOps<T> ops, A value) final <T> DataResult<Dynamic<T>> Type.writeDynamic(DynamicOps<T> ops, A value) -
Uses of DataResult in com.mojang.datafixers.types.templates
Methods in com.mojang.datafixers.types.templates that return DataResultModifier and TypeMethodDescriptionprivate DataResult<? extends MapCodec<?>> TaggedChoice.TaggedChoiceType.getMapCodec(K key) private <T> DataResult<Pair<A, T>> Check.CheckType.read(DynamicOps<T> ops, T input) -
Uses of DataResult in com.mojang.serialization
Classes in com.mojang.serialization that implement DataResultModifier and TypeClassDescriptionstatic final recordstatic final recordFields in com.mojang.serialization declared as DataResultModifier and TypeFieldDescriptionprivate DataResult<com.google.gson.JsonArray> JsonOps.ArrayBuilder.builderprivate DataResult<com.google.common.collect.ImmutableList.Builder<T>> ListBuilder.Builder.builderprotected DataResult<R> RecordBuilder.AbstractBuilder.builderprivate final DataResult<Dynamic<T>> OptionalDynamic.delegateMethods in com.mojang.serialization that return DataResultModifier and TypeMethodDescriptiondefault DataResult<R> DataResult.addLifecycle(Lifecycle lifecycle) <R2> DataResult<R2> DataResult.ap(DataResult<Function<R, R2>> functionResult) <R2> DataResult<R2> DataResult.Success.ap(DataResult<Function<R, R2>> functionResult) <T> DataResult<Pair<A, T>> Codec.ResultFunction.apply(DynamicOps<T> ops, T input, DataResult<Pair<A, T>> a) <T> DataResult<A> MapCodec.ResultFunction.apply(DynamicOps<T> ops, MapLike<T> input, DataResult<A> a) default <R2,S> DataResult <S> DataResult.apply2(BiFunction<R, R2, S> function, DataResult<R2> second) default <R2,S> DataResult <S> DataResult.apply2stable(BiFunction<R, R2, S> function, DataResult<R2> second) default <R2,R3, S> DataResult <S> DataResult.apply3(Function3<R, R2, R3, S> function, DataResult<R2> second, DataResult<R3> third) Dynamic.asBoolean()abstract DataResult<Boolean> DynamicLike.asBoolean()OptionalDynamic.asBoolean()Dynamic.asByteBufferOpt()abstract DataResult<ByteBuffer> DynamicLike.asByteBufferOpt()OptionalDynamic.asByteBufferOpt()Dynamic.asIntStreamOpt()abstract DataResult<IntStream> DynamicLike.asIntStreamOpt()OptionalDynamic.asIntStreamOpt()<U> DataResult<List<U>> Dynamic.asLongStreamOpt()abstract DataResult<LongStream> DynamicLike.asLongStreamOpt()OptionalDynamic.asLongStreamOpt()Dynamic.asMapOpt()DynamicLike.asMapOpt()<K,V> DataResult <Map<K, V>> DynamicLike.asMapOpt(Function<Dynamic<T>, K> keyDeserializer, Function<Dynamic<T>, V> valueDeserializer) OptionalDynamic.asMapOpt()Dynamic.asNumber()abstract DataResult<Number> DynamicLike.asNumber()OptionalDynamic.asNumber()DataResult<Stream<Dynamic<T>>> Dynamic.asStreamOpt()abstract DataResult<Stream<Dynamic<T>>> DynamicLike.asStreamOpt()DataResult<Stream<Dynamic<T>>> OptionalDynamic.asStreamOpt()Dynamic.asString()abstract DataResult<String> DynamicLike.asString()OptionalDynamic.asString()protected DataResult<T> JavaOps.FixedMapBuilder.build(com.google.common.collect.ImmutableMap.Builder<T, T> builder, T prefix) DataResult<com.google.gson.JsonElement> JsonOps.ArrayBuilder.build(com.google.gson.JsonElement prefix) protected DataResult<com.google.gson.JsonElement> JsonOps.JsonRecordBuilder.build(com.google.gson.JsonObject builder, com.google.gson.JsonElement prefix) default DataResult<T> ListBuilder.build(DataResult<T> prefix) protected abstract DataResult<T> default DataResult<T> RecordBuilder.build(DataResult<T> prefix) protected DataResult<T> RecordBuilder.MapBuilder.build(com.google.common.collect.ImmutableMap.Builder<T, T> builder, T prefix) <T> DataResult<T> Codec.ResultFunction.coApply(DynamicOps<T> ops, A input, DataResult<T> t) default <T> DataResult<A> MapDecoder.compressedDecode(DynamicOps<T> ops, T input) <S> DataResult<Pair<T, S>> Codec.RecursiveCodec.decode(DynamicOps<S> ops, S input) <T> DataResult<Pair<A, T>> default <T> DataResult<Pair<A, T>> <T> DataResult<Pair<A, T>> Decoder.decode(DynamicOps<T> ops, T input) <T> DataResult<A> <T> DataResult<A> Decoder.Terminal.decode(DynamicOps<T> ops, T input) <A> DataResult<Pair<A, T>> abstract <A> DataResult<Pair<A, T>> <T> DataResult<O> MapCodec.Dependent.decode(DynamicOps<T> ops, MapLike<T> input) <T> DataResult<Pair<A, T>> MapCodec.MapCodecCodec.decode(DynamicOps<T> ops, T input) <T> DataResult<A> MapCodec.RecursiveMapCodec.decode(DynamicOps<T> ops, MapLike<T> input) <T> DataResult<A> MapDecoder.decode(DynamicOps<T> ops, MapLike<T> input) <A> DataResult<Pair<A, T>> <S> DataResult<S> Codec.RecursiveCodec.encode(T input, DynamicOps<S> ops, S prefix) <T> DataResult<T> Encoder.encode(A input, DynamicOps<T> ops, T prefix) <T> DataResult<T> MapCodec.MapCodecCodec.encode(A input, DynamicOps<T> ops, T prefix) default <T> DataResult<T> Encoder.encodeStart(DynamicOps<T> ops, A input) static <R> DataResult<R> static <R> DataResult<R> static <R> DataResult<R> static <R> DataResult<R> <R2> DataResult<R2> DataResult.flatMap(Function<? super R, ? extends DataResult<R2>> function) Applies the function to either full or partial result, in case of partial concatenates errors.<R2> DataResult<R2> DataResult.Success.flatMap(Function<? super R, ? extends DataResult<R2>> function) <U> DataResult<U> OptionalDynamic.flatMap(Function<? super Dynamic<T>, ? extends DataResult<U>> mapper) default DataResult<T> OptionalDynamic.get()default DataResult<Boolean> DynamicOps.getBooleanValue(T input) JavaOps.getBooleanValue(Object input) JsonOps.getBooleanValue(com.google.gson.JsonElement input) default DataResult<ByteBuffer> DynamicOps.getByteBuffer(T input) JavaOps.getByteBuffer(Object input) Dynamic.getElement(String key) abstract DataResult<T> DynamicLike.getElement(String key) OptionalDynamic.getElement(String key) Dynamic.getElementGeneric(T key) abstract DataResult<T> DynamicLike.getElementGeneric(T key) OptionalDynamic.getElementGeneric(T key) Dynamic.getGeneric(T key) abstract DataResult<T> DynamicLike.getGeneric(T key) default DataResult<T> DynamicOps.getGeneric(T input, T key) OptionalDynamic.getGeneric(T key) default DataResult<IntStream> DynamicOps.getIntStream(T input) JavaOps.getIntStream(Object input) default DataResult<Consumer<Consumer<T>>> DataResult<Consumer<Consumer<com.google.gson.JsonElement>>> JsonOps.getList(com.google.gson.JsonElement input) default DataResult<LongStream> DynamicOps.getLongStream(T input) JavaOps.getLongStream(Object input) default DataResult<MapLike<T>> DataResult<MapLike<com.google.gson.JsonElement>> JsonOps.getMap(com.google.gson.JsonElement input) default DataResult<Consumer<BiConsumer<T, T>>> DynamicOps.getMapEntries(T input) JavaOps.getMapEntries(Object input) DataResult<Consumer<BiConsumer<com.google.gson.JsonElement, com.google.gson.JsonElement>>> JsonOps.getMapEntries(com.google.gson.JsonElement input) Dynamic.getMapValues()DataResult<Stream<Pair<T, T>>> DynamicOps.getMapValues(T input) JavaOps.getMapValues(Object input) DataResult<Stream<Pair<com.google.gson.JsonElement, com.google.gson.JsonElement>>> JsonOps.getMapValues(com.google.gson.JsonElement input) DynamicOps.getNumberValue(T input) JavaOps.getNumberValue(Object input) JsonOps.getNumberValue(com.google.gson.JsonElement input) DataResult<Stream<com.google.gson.JsonElement>> JsonOps.getStream(com.google.gson.JsonElement input) DynamicOps.getStringValue(T input) JavaOps.getStringValue(Object input) JsonOps.getStringValue(com.google.gson.JsonElement input) DataResult.Error.ifError(Consumer<? super DataResult.Error<R>> ifError) DataResult.ifError(Consumer<? super DataResult.Error<R>> ifError) DataResult.Success.ifError(Consumer<? super DataResult.Error<R>> ifError) <V> DataResult<V> <T> DataResult<T> <T> DataResult<T> <U> DataResult<U> DataResult.mapError(UnaryOperator<String> function) DataResult.Success.mapError(UnaryOperator<String> function) default DataResult<T> DynamicOps.mergeToList(T list, List<T> values) DynamicOps.mergeToList(T list, T value) Only successful if first argument is a list/array or emptyJavaOps.mergeToList(Object input, Object value) JavaOps.mergeToList(Object input, List<Object> values) DataResult<com.google.gson.JsonElement> JsonOps.mergeToList(com.google.gson.JsonElement list, com.google.gson.JsonElement value) DataResult<com.google.gson.JsonElement> JsonOps.mergeToList(com.google.gson.JsonElement list, List<com.google.gson.JsonElement> values) default DataResult<T> DynamicOps.mergeToMap(T map, MapLike<T> values) default DataResult<T> DynamicOps.mergeToMap(T map, Map<T, T> values) DynamicOps.mergeToMap(T map, T key, T value) Only successful if first argument is a map or emptyJavaOps.mergeToMap(Object input, MapLike<Object> values) JavaOps.mergeToMap(Object input, Object key, Object value) JavaOps.mergeToMap(Object input, Map<Object, Object> values) DataResult<com.google.gson.JsonElement> JsonOps.mergeToMap(com.google.gson.JsonElement map, com.google.gson.JsonElement key, com.google.gson.JsonElement value) DataResult<com.google.gson.JsonElement> JsonOps.mergeToMap(com.google.gson.JsonElement map, MapLike<com.google.gson.JsonElement> values) default DataResult<T> DynamicOps.mergeToPrimitive(T prefix, T value) Only successful if first argument is emptydefault <T> DataResult<A> default <T> DataResult<A> Decoder.parse(DynamicOps<T> ops, T input) DataResult.Error.promotePartial(Consumer<String> onError) DataResult.promotePartial(Consumer<String> onError) DataResult.Success.promotePartial(Consumer<String> onError) <A> DataResult<A> <E> DataResult<List<E>> <E> DataResult<List<E>> DynamicLike.readList(Function<? super Dynamic<?>, ? extends DataResult<? extends E>> decoder) <R> DataResult<R> DynamicLike.readMap(DataResult<R> empty, Function3<R, Dynamic<T>, Dynamic<T>, DataResult<R>> combiner) <K,V> DataResult <List<Pair<K, V>>> <K,V> DataResult <List<Pair<K, V>>> DataResult.setLifecycle(Lifecycle lifecycle) DataResult.Success.setLifecycle(Lifecycle lifecycle) DataResult.setPartial(Supplier<R> partial) DataResult.setPartial(R partial) DataResult.Success.setPartial(Supplier<R> partial) DataResult.Success.setPartial(R partial) static <R> DataResult<R> DataResult.success(R result) static <R> DataResult<R> static <R> DataResult<R> DataResult.unbox(App<DataResult.Mu, R> box) Methods in com.mojang.serialization that return types with arguments of type DataResultModifier and TypeMethodDescriptionstatic <N extends Number & Comparable<N>>
Function<N, DataResult<N>> Codec.checkRange(N minInclusive, N maxInclusive) static <K,V> Function <K, DataResult<V>> DataResult.partialGet(Function<K, V> partialGet, Supplier<String> errorPrefix) default <E> Function<T, DataResult<Pair<E, T>>> DynamicOps.withDecoder(Decoder<E> decoder) default <E> Function<E, DataResult<T>> DynamicOps.withEncoder(Encoder<E> encoder) default <E> Function<T, DataResult<E>> DynamicOps.withParser(Decoder<E> decoder) Methods in com.mojang.serialization with parameters of type DataResultModifier and TypeMethodDescriptionListBuilder<com.google.gson.JsonElement> JsonOps.ArrayBuilder.add(DataResult<com.google.gson.JsonElement> value) ListBuilder.add(DataResult<T> value) ListBuilder.Builder.add(DataResult<T> value) RecordBuilder.AbstractStringBuilder.add(DataResult<T> key, DataResult<T> value) RecordBuilder.AbstractStringBuilder.add(String key, DataResult<T> value) RecordBuilder.AbstractStringBuilder.add(T key, DataResult<T> value) RecordBuilder.AbstractUniversalBuilder.add(DataResult<T> key, DataResult<T> value) RecordBuilder.AbstractUniversalBuilder.add(T key, DataResult<T> value) RecordBuilder.add(DataResult<T> key, DataResult<T> value) default RecordBuilder<T> RecordBuilder.add(String key, DataResult<T> value) RecordBuilder.add(T key, DataResult<T> value) <R2> DataResult<R2> DataResult.ap(DataResult<Function<R, R2>> functionResult) <R2> DataResult.Error<R2> DataResult.Error.ap(DataResult<Function<R, R2>> functionResult) <R2> DataResult<R2> DataResult.Success.ap(DataResult<Function<R, R2>> functionResult) <T> DataResult<Pair<A, T>> Codec.ResultFunction.apply(DynamicOps<T> ops, T input, DataResult<Pair<A, T>> a) <T> DataResult<A> MapCodec.ResultFunction.apply(DynamicOps<T> ops, MapLike<T> input, DataResult<A> a) default <R2,S> DataResult <S> DataResult.apply2(BiFunction<R, R2, S> function, DataResult<R2> second) default <R2,S> DataResult <S> DataResult.apply2stable(BiFunction<R, R2, S> function, DataResult<R2> second) default <R2,R3, S> DataResult <S> DataResult.apply3(Function3<R, R2, R3, S> function, DataResult<R2> second, DataResult<R3> third) default DataResult<T> ListBuilder.build(DataResult<T> prefix) default DataResult<T> RecordBuilder.build(DataResult<T> prefix) <T> DataResult<T> Codec.ResultFunction.coApply(DynamicOps<T> ops, A input, DataResult<T> t) <R> DataResult<R> DynamicLike.readMap(DataResult<R> empty, Function3<R, Dynamic<T>, Dynamic<T>, DataResult<R>> combiner) ListBuilder<com.google.gson.JsonElement> JsonOps.ArrayBuilder.withErrorsFrom(DataResult<?> result) ListBuilder.Builder.withErrorsFrom(DataResult<?> result) ListBuilder.withErrorsFrom(DataResult<?> result) RecordBuilder.AbstractBuilder.withErrorsFrom(DataResult<?> result) RecordBuilder.withErrorsFrom(DataResult<?> result) Method parameters in com.mojang.serialization with type arguments of type DataResultModifier and TypeMethodDescriptiondefault <S> Codec<S> Codec.comapFlatMap(Function<? super A, ? extends DataResult<? extends S>> to, Function<? super S, ? extends A> from) default <B> Encoder<B> Encoder.flatComap(Function<? super B, ? extends DataResult<? extends A>> function) default <B> MapEncoder<B> MapEncoder.flatComap(Function<? super B, ? extends DataResult<? extends A>> function) <R2> DataResult.Error<R2> DataResult.Error.flatMap(Function<? super R, ? extends DataResult<R2>> function) <R2> DataResult<R2> DataResult.flatMap(Function<? super R, ? extends DataResult<R2>> function) Applies the function to either full or partial result, in case of partial concatenates errors.<R2> DataResult<R2> DataResult.Success.flatMap(Function<? super R, ? extends DataResult<R2>> function) default <B> Decoder<B> Decoder.flatMap(Function<? super A, ? extends DataResult<? extends B>> function) default <B> MapDecoder<B> MapDecoder.flatMap(Function<? super A, ? extends DataResult<? extends B>> function) <U> DataResult<U> OptionalDynamic.flatMap(Function<? super Dynamic<T>, ? extends DataResult<U>> mapper) default <S> Codec<S> Codec.flatXmap(Function<? super A, ? extends DataResult<? extends S>> to, Function<? super S, ? extends DataResult<? extends A>> from) <S> MapCodec<S> MapCodec.flatXmap(Function<? super A, ? extends DataResult<? extends S>> to, Function<? super S, ? extends DataResult<? extends A>> from) default <E> Codec<E> Codec.partialDispatch(String typeKey, Function<? super E, ? extends DataResult<? extends A>> type, Function<? super A, ? extends DataResult<? extends MapCodec<? extends E>>> codec) <E> Codec<E> MapCodec.partialDispatch(Function<? super E, ? extends DataResult<? extends A>> type, Function<? super A, ? extends DataResult<? extends MapCodec<? extends E>>> codec) <E> DataResult<List<E>> DynamicLike.readList(Function<? super Dynamic<?>, ? extends DataResult<? extends E>> decoder) <R> DataResult<R> DynamicLike.readMap(DataResult<R> empty, Function3<R, Dynamic<T>, Dynamic<T>, DataResult<R>> combiner) Codec.validate(Function<A, DataResult<A>> checker) MapCodec.validate(Function<A, DataResult<A>> checker) Constructors in com.mojang.serialization with parameters of type DataResultModifierConstructorDescriptionOptionalDynamic(DynamicOps<T> ops, DataResult<Dynamic<T>> delegate) -
Uses of DataResult in com.mojang.serialization.codecs
Fields in com.mojang.serialization.codecs declared as DataResultModifier and TypeFieldDescriptionprivate static final DataResult<Unit> ListCodec.DecoderState.INITIAL_RESULTprivate DataResult<Unit> ListCodec.DecoderState.resultFields in com.mojang.serialization.codecs with type parameters of type DataResultModifier and TypeFieldDescriptionprivate final Function<? super K, ? extends DataResult<? extends MapDecoder<? extends V>>> KeyDispatchCodec.decoderprivate final Function<? super V, ? extends DataResult<? extends MapEncoder<V>>> KeyDispatchCodec.encoderprivate final Function<? super V, ? extends DataResult<? extends K>> KeyDispatchCodec.typeMethods in com.mojang.serialization.codecs that return DataResultModifier and TypeMethodDescriptionDataResult<Pair<List<E>, T>> ListCodec.DecoderState.build()private <R> DataResult<R> ListCodec.createTooLongError(int size) private <R> DataResult<R> ListCodec.createTooShortError(int size) default <T> DataResult<Map<K, V>> BaseMapCodec.decode(DynamicOps<T> ops, MapLike<T> input) CompoundListCodec.decode(DynamicOps<T> ops, T input) <T> DataResult<Pair<Map<K, V>, T>> DispatchedMapCodec.decode(DynamicOps<T> ops, T input) <T> DataResult<Pair<Either<F, S>, T>> EitherCodec.decode(DynamicOps<T> ops, T input) <T> DataResult<Either<F, S>> EitherMapCodec.decode(DynamicOps<T> ops, MapLike<T> input) <T> DataResult<A> FieldDecoder.decode(DynamicOps<T> ops, MapLike<T> input) <T> DataResult<V> KeyDispatchCodec.decode(DynamicOps<T> ops, MapLike<T> input) <T> DataResult<Pair<List<E>, T>> ListCodec.decode(DynamicOps<T> ops, T input) <T> DataResult<Optional<A>> OptionalFieldCodec.decode(DynamicOps<T> ops, MapLike<T> input) <T> DataResult<Pair<Pair<F, S>, T>> PairCodec.decode(DynamicOps<T> ops, T input) <T> DataResult<Pair<F, S>> PairMapCodec.decode(DynamicOps<T> ops, MapLike<T> input) default <T> DataResult<Pair<A, T>> PrimitiveCodec.decode(DynamicOps<T> ops, T input) <T> DataResult<Map<K, V>> SimpleMapCodec.decode(DynamicOps<T> ops, MapLike<T> input) <T> DataResult<Pair<Map<K, V>, T>> UnboundedMapCodec.decode(DynamicOps<T> ops, T input) <T> DataResult<Pair<Either<F, S>, T>> XorCodec.decode(DynamicOps<T> ops, T input) <T> DataResult<T> <T> DataResult<T> DispatchedMapCodec.encode(Map<K, V> input, DynamicOps<T> ops, T prefix) <T> DataResult<T> EitherCodec.encode(Either<F, S> input, DynamicOps<T> ops, T prefix) <T> DataResult<T> ListCodec.encode(List<E> input, DynamicOps<T> ops, T prefix) <T> DataResult<T> PairCodec.encode(Pair<F, S> value, DynamicOps<T> ops, T rest) default <T> DataResult<T> PrimitiveCodec.encode(A input, DynamicOps<T> ops, T prefix) <T> DataResult<T> UnboundedMapCodec.encode(Map<K, V> input, DynamicOps<T> ops, T prefix) <T> DataResult<T> XorCodec.encode(Either<F, S> input, DynamicOps<T> ops, T prefix) private <T, V2 extends V>
DataResult<T> DispatchedMapCodec.encodeValue(Codec<V2> codec, V input, DynamicOps<T> ops) private static <K,V> DataResult <? extends MapEncoder<V>> KeyDispatchCodec.getCodec(Function<? super V, ? extends DataResult<? extends K>> type, Function<? super K, ? extends DataResult<? extends MapEncoder<? extends V>>> encoder, V input) private <T> DataResult<Unit> DispatchedMapCodec.parseEntry(DataResult<Unit> result, DynamicOps<T> ops, Pair<T, T> input, Map<K, V> entries, Stream.Builder<Pair<T, T>> failed) <T> DataResult<A> PrimitiveCodec.read(DynamicOps<T> ops, T input) Methods in com.mojang.serialization.codecs with parameters of type DataResultModifier and TypeMethodDescriptionprivate <T> DataResult<Unit> DispatchedMapCodec.parseEntry(DataResult<Unit> result, DynamicOps<T> ops, Pair<T, T> input, Map<K, V> entries, Stream.Builder<Pair<T, T>> failed) Method parameters in com.mojang.serialization.codecs with type arguments of type DataResultModifier and TypeMethodDescriptionprivate static <K,V> DataResult <? extends MapEncoder<V>> KeyDispatchCodec.getCodec(Function<? super V, ? extends DataResult<? extends K>> type, Function<? super K, ? extends DataResult<? extends MapEncoder<? extends V>>> encoder, V input) Constructor parameters in com.mojang.serialization.codecs with type arguments of type DataResultModifierConstructorDescriptionKeyDispatchCodec(MapCodec<K> keyCodec, Function<? super V, ? extends DataResult<? extends K>> type, Function<? super K, ? extends DataResult<? extends MapCodec<? extends V>>> codec) Assumes codec(type(V)) is MapCodecprotectedKeyDispatchCodec(MapCodec<K> keyCodec, Function<? super V, ? extends DataResult<? extends K>> type, Function<? super K, ? extends DataResult<? extends MapDecoder<? extends V>>> decoder, Function<? super V, ? extends DataResult<? extends MapEncoder<V>>> encoder) -
Uses of DataResult in net.minecraft.advancements
Methods in net.minecraft.advancements that return DataResultModifier and TypeMethodDescriptionprivate static DataResult<Advancement> Advancement.validate(Advancement advancement) -
Uses of DataResult in net.minecraft.advancements.criterion
Methods in net.minecraft.advancements.criterion that return DataResultModifier and TypeMethodDescriptionprivate static DataResult<EnterBlockTrigger.TriggerInstance> EnterBlockTrigger.TriggerInstance.validate(EnterBlockTrigger.TriggerInstance trigger) private static DataResult<SlideDownBlockTrigger.TriggerInstance> SlideDownBlockTrigger.TriggerInstance.validate(SlideDownBlockTrigger.TriggerInstance trigger) MinMaxBounds.Bounds.validateSwappedBoundsInCodec()Methods in net.minecraft.advancements.criterion that return types with arguments of type DataResultModifier and TypeMethodDescriptionstatic <V extends Number & Comparable<V>, B extends MinMaxBounds<V>>
Function<B, DataResult<B>> MinMaxBounds.validateContainedInRange(MinMaxBounds<V> allowed) -
Uses of DataResult in net.minecraft.client.gui.font.providers
Methods in net.minecraft.client.gui.font.providers that return DataResultModifier and TypeMethodDescriptionprivate static DataResult<BitmapProvider.Definition> BitmapProvider.Definition.validate(BitmapProvider.Definition builder) private static DataResult<int[][]> BitmapProvider.Definition.validateDimensions(int[][] grid) -
Uses of DataResult in net.minecraft.client.renderer.block.dispatch.multipart
Methods in net.minecraft.client.renderer.block.dispatch.multipart that return DataResult -
Uses of DataResult in net.minecraft.client.renderer.item.properties.select
Methods in net.minecraft.client.renderer.item.properties.select that return DataResultModifier and TypeMethodDescriptionprivate static DataResult<LocalTime> LocalTime.create(LocalTime.Data data) private static <T> DataResult<List<SelectItemModel.SwitchCase<T>>> SelectItemModelProperty.Type.validateCases(List<SelectItemModel.SwitchCase<T>> cases) -
Uses of DataResult in net.minecraft.client.resources
Methods in net.minecraft.client.resources that return DataResult -
Uses of DataResult in net.minecraft.client.resources.metadata.gui
Methods in net.minecraft.client.resources.metadata.gui that return DataResultModifier and TypeMethodDescriptionprivate static DataResult<GuiSpriteScaling.NineSlice> GuiSpriteScaling.NineSlice.validate(GuiSpriteScaling.NineSlice nineSlice) -
Uses of DataResult in net.minecraft.core
Methods in net.minecraft.core that return DataResultModifier and TypeMethodDescriptionprivate DataResult<Holder.Reference<T>> Registry.safeCastToReference(Holder<T> holder) private static DataResult<Direction> Direction.verifyVertical(Direction v) -
Uses of DataResult in net.minecraft.core.component
Methods in net.minecraft.core.component that return DataResultModifier and TypeMethodDescription<D> DataResult<D> TypedDataComponent.encodeValue(DynamicOps<D> ops) -
Uses of DataResult in net.minecraft.nbt
Methods in net.minecraft.nbt that return DataResultModifier and TypeMethodDescriptionprotected DataResult<Tag> NbtOps.NbtRecordBuilder.build(CompoundTag builder, Tag prefix) NbtOps.getByteBuffer(Tag input) NbtOps.getIntStream(Tag input) NbtOps.getLongStream(Tag input) NbtOps.getMapEntries(Tag input) DataResult<Stream<Pair<Tag, Tag>>> NbtOps.getMapValues(Tag input) NbtOps.getNumberValue(Tag input) NbtOps.getStringValue(Tag input) NbtOps.mergeToList(Tag list, List<Tag> values) NbtOps.mergeToList(Tag list, Tag value) NbtOps.mergeToMap(Tag map, MapLike<Tag> values) NbtOps.mergeToMap(Tag map, Map<Tag, Tag> values) NbtOps.mergeToMap(Tag map, Tag key, Tag value) -
Uses of DataResult in net.minecraft.network.chat
Methods in net.minecraft.network.chat that return DataResultModifier and TypeMethodDescription<S> DataResult<T> ComponentSerialization.FuzzyCodec.decode(DynamicOps<S> ops, MapLike<S> input) <O> DataResult<T> ComponentSerialization.StrictEither.decode(DynamicOps<O> ops, MapLike<O> input) static DataResult<ClickEvent.Action> ClickEvent.Action.filterForSerialization(ClickEvent.Action action) private static DataResult<HoverEvent.Action> HoverEvent.Action.filterForSerialization(HoverEvent.Action action) static DataResult<TextColor> TextColor.parseColor(String color) -
Uses of DataResult in net.minecraft.network.chat.contents
Methods in net.minecraft.network.chat.contents that return DataResultModifier and TypeMethodDescriptionprivate static DataResult<Object> TranslatableContents.filterAllowedArguments(@Nullable Object result) -
Uses of DataResult in net.minecraft.resources
Methods in net.minecraft.resources that return DataResultModifier and TypeMethodDescriptionDelegatingOps.DelegateListBuilder.build(DataResult<T> prefix) DelegatingOps.DelegateRecordBuilder.build(DataResult<T> prefix) <T> DataResult<Pair<HolderSet<E>, T>> HolderSetCodec.decode(DynamicOps<T> ops, T input) <T> DataResult<Pair<Holder<E>, T>> RegistryFileCodec.decode(DynamicOps<T> ops, T input) <T> DataResult<Pair<Holder<E>, T>> RegistryFixedCodec.decode(DynamicOps<T> ops, T input) private <T> DataResult<Pair<HolderSet<E>, T>> HolderSetCodec.decodeWithoutRegistry(DynamicOps<T> ops, T input) <T> DataResult<T> HolderSetCodec.encode(HolderSet<E> input, DynamicOps<T> ops, T prefix) <T> DataResult<T> RegistryFileCodec.encode(Holder<E> input, DynamicOps<T> ops, T prefix) <T> DataResult<T> RegistryFixedCodec.encode(Holder<E> input, DynamicOps<T> ops, T prefix) private <T> DataResult<T> HolderSetCodec.encodeWithoutRegistry(HolderSet<E> input, DynamicOps<T> ops, T prefix) DelegatingOps.getBooleanValue(T input) DelegatingOps.getByteBuffer(T input) DelegatingOps.getIntStream(T input) DelegatingOps.getLongStream(T input) DelegatingOps.getMapEntries(T input) DataResult<Stream<Pair<T, T>>> DelegatingOps.getMapValues(T input) DelegatingOps.getNumberValue(T input) DelegatingOps.getStringValue(T input) private static <E> DataResult<HolderSet<E>> HolderSetCodec.lookupTag(HolderGetter<E> registry, TagKey<E> key) DelegatingOps.mergeToList(T list, List<T> values) DelegatingOps.mergeToList(T list, T value) DelegatingOps.mergeToMap(T map, MapLike<T> values) DelegatingOps.mergeToMap(T map, Map<T, T> values) DelegatingOps.mergeToMap(T map, T key, T value) DelegatingOps.mergeToPrimitive(T prefix, T value) static DataResult<Identifier> Methods in net.minecraft.resources with parameters of type DataResultModifier and TypeMethodDescriptionDelegatingOps.DelegateListBuilder.add(DataResult<T> value) DelegatingOps.DelegateRecordBuilder.add(DataResult<T> key, DataResult<T> value) DelegatingOps.DelegateRecordBuilder.add(String key, DataResult<T> value) DelegatingOps.DelegateRecordBuilder.add(T key, DataResult<T> value) DelegatingOps.DelegateListBuilder.build(DataResult<T> prefix) DelegatingOps.DelegateRecordBuilder.build(DataResult<T> prefix) DelegatingOps.DelegateListBuilder.withErrorsFrom(DataResult<?> result) DelegatingOps.DelegateRecordBuilder.withErrorsFrom(DataResult<?> result) -
Uses of DataResult in net.minecraft.server.dialog.action
Methods in net.minecraft.server.dialog.action that return DataResult -
Uses of DataResult in net.minecraft.server.packs
Methods in net.minecraft.server.packs that return DataResultModifier and TypeMethodDescriptionprivate static DataResult<String> OverlayMetadataSection.validateOverlayDir(String path) -
Uses of DataResult in net.minecraft.server.packs.metadata.pack
Methods in net.minecraft.server.packs.metadata.pack that return DataResultModifier and TypeMethodDescriptionPackFormat.IntermediaryFormat.validate(int lastPreMinorVersion, boolean hasPackFormatField, boolean requireOldField, String context, String oldFieldName) static <ResultType, HolderType extends PackFormat.IntermediaryFormatHolder>
DataResult<List<ResultType>> PackFormat.validateHolderList(List<HolderType> list, int lastPreMinorVersion, BiFunction<HolderType, InclusiveRange<PackFormat>, ResultType> constructor) private DataResult<InclusiveRange<PackFormat>> PackFormat.IntermediaryFormat.validateNewFormat(int lastPreMinorVersion, boolean hasPackFormatField, boolean requireOldField, String context, String oldFieldName) private DataResult<InclusiveRange<PackFormat>> PackFormat.IntermediaryFormat.validateOldFormat(int lastPreMinorVersion, boolean hasPackFormatField, String context, String oldFieldName) -
Uses of DataResult in net.minecraft.util
Classes in net.minecraft.util that implement interfaces with type arguments of type DataResultFields in net.minecraft.util declared as DataResultModifier and TypeFieldDescriptionprotected DataResult<B> AbstractListBuilder.builderprivate static final DataResult<Object> HashOps.UNSUPPORTED_OPERATION_ERRORFields in net.minecraft.util with type parameters of type DataResultModifier and TypeFieldDescriptionprivate final com.google.common.cache.LoadingCache<EncoderCache.Key<?, ?>, DataResult<?>> EncoderCache.cacheMethods in net.minecraft.util that return DataResultModifier and TypeMethodDescriptionfinal DataResult<T> protected abstract DataResult<T> protected DataResult<com.google.common.hash.HashCode> HashOps.ListHashBuilder.build(com.google.common.hash.Hasher hasher, com.google.common.hash.HashCode prefix) protected DataResult<com.google.common.hash.HashCode> HashOps.MapHashBuilder.build(List<Pair<com.google.common.hash.HashCode, com.google.common.hash.HashCode>> builder, com.google.common.hash.HashCode prefix) protected DataResult<Unit> protected DataResult<Unit> static <T extends Comparable<T>>
DataResult<InclusiveRange<T>> InclusiveRange.create(T minInclusive, T maxInclusive) <T> DataResult<Map<K, V>> ExtraCodecs.StrictUnboundedMapCodec.decode(DynamicOps<T> ops, MapLike<T> input) <T> DataResult<Pair<Map<K, V>, T>> ExtraCodecs.StrictUnboundedMapCodec.decode(DynamicOps<T> ops, T input) <T> DataResult<Pair<S, T>> StringRepresentable.StringRepresentableCodec.decode(DynamicOps<T> ops, T input) static DataResult<List<String>> FileUtil.decomposePath(String path) <T> DataResult<T> ExtraCodecs.StrictUnboundedMapCodec.encode(Map<K, V> input, DynamicOps<T> ops, T prefix) <T> DataResult<T> StringRepresentable.StringRepresentableCodec.encode(S input, DynamicOps<T> ops, T prefix) static <T> DataResult<List<T>> static DataResult<int[]> static DataResult<long[]> Util.fixedSize(LongStream stream, int size) DataResult<com.google.common.hash.HashCode> HashOps.getBooleanValue(com.google.common.hash.HashCode input) NullOps.getBooleanValue(Unit input) HashOps.getByteBuffer(com.google.common.hash.HashCode input) NullOps.getByteBuffer(Unit input) DataResult<com.google.common.hash.HashCode> HashOps.getGeneric(com.google.common.hash.HashCode input, com.google.common.hash.HashCode key) HashOps.getIntStream(com.google.common.hash.HashCode input) NullOps.getIntStream(Unit input) DataResult<Consumer<Consumer<com.google.common.hash.HashCode>>> HashOps.getList(com.google.common.hash.HashCode input) HashOps.getLongStream(com.google.common.hash.HashCode input) NullOps.getLongStream(Unit input) DataResult<MapLike<com.google.common.hash.HashCode>> HashOps.getMap(com.google.common.hash.HashCode input) DataResult<Consumer<BiConsumer<com.google.common.hash.HashCode, com.google.common.hash.HashCode>>> HashOps.getMapEntries(com.google.common.hash.HashCode input) NullOps.getMapEntries(Unit input) DataResult<Stream<Pair<com.google.common.hash.HashCode, com.google.common.hash.HashCode>>> HashOps.getMapValues(com.google.common.hash.HashCode input) DataResult<Stream<Pair<Unit, Unit>>> NullOps.getMapValues(Unit input) HashOps.getNumberValue(com.google.common.hash.HashCode input) NullOps.getNumberValue(Unit input) DataResult<Stream<com.google.common.hash.HashCode>> HashOps.getStream(com.google.common.hash.HashCode input) HashOps.getStringValue(com.google.common.hash.HashCode input) NullOps.getStringValue(Unit input) DataResult<com.google.common.hash.HashCode> HashOps.mergeToList(com.google.common.hash.HashCode prefix, com.google.common.hash.HashCode value) DataResult<com.google.common.hash.HashCode> HashOps.mergeToList(com.google.common.hash.HashCode prefix, List<com.google.common.hash.HashCode> values) NullOps.mergeToList(Unit input, List<Unit> values) NullOps.mergeToList(Unit input, Unit value) DataResult<com.google.common.hash.HashCode> HashOps.mergeToMap(com.google.common.hash.HashCode prefix, com.google.common.hash.HashCode key, com.google.common.hash.HashCode value) DataResult<com.google.common.hash.HashCode> HashOps.mergeToMap(com.google.common.hash.HashCode prefix, MapLike<com.google.common.hash.HashCode> values) DataResult<com.google.common.hash.HashCode> HashOps.mergeToMap(com.google.common.hash.HashCode prefix, Map<com.google.common.hash.HashCode, com.google.common.hash.HashCode> values) NullOps.mergeToMap(Unit input, MapLike<Unit> values) NullOps.mergeToMap(Unit input, Map<Unit, Unit> values) NullOps.mergeToMap(Unit input, Unit key, Unit value) EncoderCache.Key.resolve()<T> DataResult<T> RegistryContextSwapper.swapTo(Codec<T> codec, T value, HolderLookup.Provider newContext) private static <T> DataResult<T> HashOps.unsupported()private DataResult<EasingType.CubicBezierControls> EasingType.CubicBezierControls.validate()private static <T> DataResult<List<Keyframe<T>>> KeyframeTrack.validateKeyframes(List<Keyframe<T>> keyframes) static DataResult<KeyframeTrack<?>> KeyframeTrack.validatePeriod(KeyframeTrack<?> track, int periodTicks) Methods in net.minecraft.util that return types with arguments of type DataResultModifier and TypeMethodDescriptionstatic <E, L extends Collection<E>, T>
Function<L, DataResult<L>> ExtraCodecs.ensureHomogenous(Function<E, T> typeGetter) Methods in net.minecraft.util with parameters of type DataResultModifier and TypeMethodDescriptionAbstractListBuilder.add(DataResult<T> value) AbstractListBuilder.withErrorsFrom(DataResult<?> result) Method parameters in net.minecraft.util with type arguments of type DataResultModifier and TypeMethodDescriptionstatic <T> Codec<CompilableString<T>> CompilableString.codec(Function<String, DataResult<T>> compiler) static <P,I> Codec <I> ExtraCodecs.intervalCodec(Codec<P> pointCodec, String lowerBoundName, String upperBoundName, BiFunction<P, P, DataResult<I>> makeInterval, Function<I, P> getMin, Function<I, P> getMax) static <E> MapCodec<E> ExtraCodecs.retrieveContext(Function<DynamicOps<?>, DataResult<E>> getter) -
Uses of DataResult in net.minecraft.util.valueproviders
Methods in net.minecraft.util.valueproviders that return DataResultModifier and TypeMethodDescriptionprivate static <T extends IntProvider>
DataResult<T> IntProviders.validate(int minValue, int maxValue, T value) -
Uses of DataResult in net.minecraft.world.attribute
Methods in net.minecraft.world.attribute that return DataResult -
Uses of DataResult in net.minecraft.world.item
Methods in net.minecraft.world.item that return DataResultModifier and TypeMethodDescriptionprivate static DataResult<?> ItemStack.validateComponents(DataComponentMap components) private static DataResult<?> ItemStack.validateContainedItemSizes(Iterable<? extends ItemInstance> items) static DataResult<ItemStack> ItemStack.validateStrict(ItemStack itemStack) -
Uses of DataResult in net.minecraft.world.item.component
Fields in net.minecraft.world.item.component declared as DataResultModifier and TypeFieldDescriptionstatic final DataResult<org.apache.commons.lang3.math.Fraction> BundleContents.BEEHIVE_WEIGHTFields in net.minecraft.world.item.component with type parameters of type DataResultModifier and TypeFieldDescriptionprivate final Supplier<DataResult<org.apache.commons.lang3.math.Fraction>> BundleContents.weightMethods in net.minecraft.world.item.component that return DataResultModifier and TypeMethodDescriptionprivate static DataResult<org.apache.commons.lang3.math.Fraction> BundleContents.computeContentWeight(List<? extends ItemInstance> items) private static DataResult<org.apache.commons.lang3.math.Fraction> BundleContents.getWeight(ItemInstance item) DataResult<org.apache.commons.lang3.math.Fraction> BundleContents.weight() -
Uses of DataResult in net.minecraft.world.item.crafting
Methods in net.minecraft.world.item.crafting that return DataResultModifier and TypeMethodDescriptionprivate static DataResult<ShapedRecipePattern> ShapedRecipePattern.unpack(ShapedRecipePattern.Data data) -
Uses of DataResult in net.minecraft.world.level
Methods in net.minecraft.world.level that return DataResultModifier and TypeMethodDescriptionprivate static DataResult<InclusiveRange<Integer>> SpawnData.CustomSpawnRules.checkLightBoundaries(InclusiveRange<Integer> range) -
Uses of DataResult in net.minecraft.world.level.block.entity.vault
Methods in net.minecraft.world.level.block.entity.vault that return DataResult -
Uses of DataResult in net.minecraft.world.level.block.state.properties
Methods in net.minecraft.world.level.block.state.properties that return DataResultModifier and TypeMethodDescription<U, S extends StateHolder<?,S>>
DataResult<S> Property.parseValue(DynamicOps<U> ops, S state, U value) -
Uses of DataResult in net.minecraft.world.level.chunk
Methods in net.minecraft.world.level.chunk that return DataResultModifier and TypeMethodDescriptionPalettedContainerRO.Unpacker.read(Strategy<T> strategy, PalettedContainerRO.PackedData<T> discData) static <T> DataResult<PalettedContainer<T>> PalettedContainer.unpack(Strategy<T> strategy, PalettedContainerRO.PackedData<T> discData) -
Uses of DataResult in net.minecraft.world.level.gamerules
Methods in net.minecraft.world.level.gamerules that return DataResult -
Uses of DataResult in net.minecraft.world.level.levelgen
Methods in net.minecraft.world.level.levelgen that return DataResultModifier and TypeMethodDescriptionprivate static DataResult<NoiseSettings> NoiseSettings.guardY(NoiseSettings dimensionType) -
Uses of DataResult in net.minecraft.world.level.levelgen.blending
Methods in net.minecraft.world.level.levelgen.blending that return DataResultModifier and TypeMethodDescriptionprivate static DataResult<BlendingData.Packed> BlendingData.Packed.validateArraySize(BlendingData.Packed blendingData) -
Uses of DataResult in net.minecraft.world.level.levelgen.feature.configurations
Methods in net.minecraft.world.level.levelgen.feature.configurations that return DataResult -
Uses of DataResult in net.minecraft.world.level.levelgen.flat
Methods in net.minecraft.world.level.levelgen.flat that return DataResultModifier and TypeMethodDescriptionprivate static DataResult<FlatLevelGeneratorSettings> FlatLevelGeneratorSettings.validateHeight(FlatLevelGeneratorSettings settings) -
Uses of DataResult in net.minecraft.world.level.levelgen.presets
Methods in net.minecraft.world.level.levelgen.presets that return DataResultModifier and TypeMethodDescriptionprivate static DataResult<WorldPreset> WorldPreset.requireOverworld(WorldPreset preset) -
Uses of DataResult in net.minecraft.world.level.levelgen.structure.placement
Methods in net.minecraft.world.level.levelgen.structure.placement that return DataResultModifier and TypeMethodDescriptionprivate static DataResult<RandomSpreadStructurePlacement> RandomSpreadStructurePlacement.validate(RandomSpreadStructurePlacement c) -
Uses of DataResult in net.minecraft.world.level.levelgen.structure.pools
Methods in net.minecraft.world.level.levelgen.structure.pools that return DataResultModifier and TypeMethodDescriptionprivate static <T> DataResult<T> SinglePoolElement.encodeTemplate(Either<Identifier, StructureTemplate> template, DynamicOps<T> ops, T prefix) -
Uses of DataResult in net.minecraft.world.level.levelgen.structure.structures
Methods in net.minecraft.world.level.levelgen.structure.structures that return DataResultModifier and TypeMethodDescriptionprivate static DataResult<JigsawStructure> JigsawStructure.verifyRange(JigsawStructure structure) -
Uses of DataResult in net.minecraft.world.level.storage
Methods in net.minecraft.world.level.storage that return DataResultModifier and TypeMethodDescriptionstatic <T extends SavedData>
DataResult<T> LevelStorageSource.readExistingSavedData(LevelStorageSource.LevelStorageAccess access, HolderLookup.Provider registryAccess, SavedDataType<T> savedDataType) -
Uses of DataResult in net.minecraft.world.level.storage.loot
Methods in net.minecraft.world.level.storage.loot that return types with arguments of type DataResultModifier and TypeMethodDescriptionstatic <T extends Validatable>
Function<List<T>, DataResult<List<T>>> Validatable.listValidatorForContext(ContextKeySet params) static <T extends Validatable>
Function<T, DataResult<T>> Validatable.validatorForContext(ContextKeySet params) -
Uses of DataResult in net.minecraft.world.level.storage.loot.predicates
Methods in net.minecraft.world.level.storage.loot.predicates that return DataResultModifier and TypeMethodDescriptionprivate static DataResult<LootItemBlockStatePropertyCondition> LootItemBlockStatePropertyCondition.validate(LootItemBlockStatePropertyCondition condition) -
Uses of DataResult in net.minecraft.world.timeline
Methods in net.minecraft.world.timeline that return DataResultModifier and TypeMethodDescriptionprivate static DataResult<Timeline> Timeline.validateInternal(Timeline timeline) static DataResult<AttributeTrack<?, ?>> AttributeTrack.validatePeriod(AttributeTrack<?, ?> track, int periodTicks) -
Uses of DataResult in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common that return DataResultModifier and TypeMethodDescription<T> DataResult<Map<K, V>> LenientUnboundedMapCodec.decode(DynamicOps<T> ops, MapLike<T> input) <T> DataResult<Pair<Map<K, V>, T>> LenientUnboundedMapCodec.decode(DynamicOps<T> ops, T input) <T> DataResult<T> LenientUnboundedMapCodec.encode(Map<K, V> input, DynamicOps<T> ops, T prefix) -
Uses of DataResult in net.neoforged.neoforge.common.conditions
Methods in net.neoforged.neoforge.common.conditions that return DataResultModifier and TypeMethodDescription<T> DataResult<Pair<Optional<WithConditions<A>>, T>> ConditionalOps.ConditionalDecoder.decode(DynamicOps<T> ops, T input) <T> DataResult<T> ConditionalOps.ConditionalEncoder.encode(Optional<WithConditions<A>> input, DynamicOps<T> ops, T prefix) -
Uses of DataResult in net.neoforged.neoforge.common.util
Methods in net.neoforged.neoforge.common.util that return DataResultModifier and TypeMethodDescription<T1> DataResult<Pair<T, T1>> NeoForgeExtraCodecs.AlternativeCodec.decode(DynamicOps<T1> ops, T1 input) <T1> DataResult<T> NeoForgeExtraCodecs.AlternativeMapCodec.decode(DynamicOps<T1> ops, MapLike<T1> input) <T> DataResult<Either<F, S>> NeoForgeExtraCodecs.XorMapCodec.decode(DynamicOps<T> ops, MapLike<T> input) <T1> DataResult<T1> NeoForgeExtraCodecs.AlternativeCodec.encode(T input, DynamicOps<T1> ops, T1 prefix)