Package net.minecraft.util.dynamic
Class Codecs.StrictOptionalField<A>
java.lang.Object
com.mojang.serialization.CompressorHolder
com.mojang.serialization.MapCodec<Optional<A>>
net.minecraft.util.dynamic.Codecs.StrictOptionalField<A>
- All Implemented Interfaces:
com.mojang.serialization.Compressable
,com.mojang.serialization.Keyable
,com.mojang.serialization.MapDecoder<Optional<A>>
,com.mojang.serialization.MapEncoder<Optional<A>>
- Enclosing class:
Codecs
private static final class Codecs.StrictOptionalField<A>
extends com.mojang.serialization.MapCodec<Optional<A>>
- Mappings:
Namespace Name official arf$d
intermediary net/minecraft/class_5699$class_8742
named net/minecraft/util/dynamic/Codecs$StrictOptionalField
-
Nested Class Summary
Nested classes/interfaces inherited from class com.mojang.serialization.MapCodec
com.mojang.serialization.MapCodec.MapCodecCodec<A>, com.mojang.serialization.MapCodec.ResultFunction<A>
Nested classes/interfaces inherited from interface com.mojang.serialization.MapDecoder
com.mojang.serialization.MapDecoder.Implementation<A>
Nested classes/interfaces inherited from interface com.mojang.serialization.MapEncoder
com.mojang.serialization.MapEncoder.Implementation<A>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondecode
(com.mojang.serialization.DynamicOps<T> ops, com.mojang.serialization.MapLike<T> input) <T> com.mojang.serialization.RecordBuilder<T>
encode
(Optional<A> optional, com.mojang.serialization.DynamicOps<T> dynamicOps, com.mojang.serialization.RecordBuilder<T> recordBuilder) boolean
int
hashCode()
<T> Stream<T>
keys
(com.mojang.serialization.DynamicOps<T> ops) toString()
Methods inherited from class com.mojang.serialization.MapCodec
codec, dependent, deprecated, fieldOf, flatXmap, forGetter, mapResult, of, of, orElse, orElse, orElse, orElseGet, orElseGet, orElseGet, setPartial, stable, unit, unit, withLifecycle, xmap
Methods inherited from class com.mojang.serialization.CompressorHolder
compressor
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.mojang.serialization.MapDecoder
ap, compressedDecode, compressor, decoder, flatMap, map
Methods inherited from interface com.mojang.serialization.MapEncoder
comap, compressedBuilder, compressor, encoder, flatComap
-
Field Details
-
field
- Mappings:
Namespace Name Mixin selector official a
Larf$d;a:Ljava/lang/String;
intermediary field_45717
Lnet/minecraft/class_5699$class_8742;field_45717:Ljava/lang/String;
named field
Lnet/minecraft/util/dynamic/Codecs$StrictOptionalField;field:Ljava/lang/String;
-
codec
- Mappings:
Namespace Name Mixin selector official b
Larf$d;b:Lcom/mojang/serialization/Codec;
intermediary field_45718
Lnet/minecraft/class_5699$class_8742;field_45718:Lcom/mojang/serialization/Codec;
named codec
Lnet/minecraft/util/dynamic/Codecs$StrictOptionalField;codec:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
StrictOptionalField
- Mappings:
Namespace Name Mixin selector official <init>
Larf$d;<init>(Ljava/lang/String;Lcom/mojang/serialization/Codec;)V
intermediary <init>
Lnet/minecraft/class_5699$class_8742;<init>(Ljava/lang/String;Lcom/mojang/serialization/Codec;)V
named <init>
Lnet/minecraft/util/dynamic/Codecs$StrictOptionalField;<init>(Ljava/lang/String;Lcom/mojang/serialization/Codec;)V
-
-
Method Details
-
decode
public <T> com.mojang.serialization.DataResult<Optional<A>> decode(com.mojang.serialization.DynamicOps<T> ops, com.mojang.serialization.MapLike<T> input) - Mappings:
Namespace Name Mixin selector official decode
Larf$d;decode(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/MapLike;)Lcom/mojang/serialization/DataResult;
intermediary decode
Lnet/minecraft/class_5699$class_8742;decode(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/MapLike;)Lcom/mojang/serialization/DataResult;
named decode
Lnet/minecraft/util/dynamic/Codecs$StrictOptionalField;decode(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/MapLike;)Lcom/mojang/serialization/DataResult;
-
encode
public <T> com.mojang.serialization.RecordBuilder<T> encode(Optional<A> optional, com.mojang.serialization.DynamicOps<T> dynamicOps, com.mojang.serialization.RecordBuilder<T> recordBuilder) - Mappings:
Namespace Name Mixin selector official a
Larf$d;a(Ljava/util/Optional;Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/RecordBuilder;)Lcom/mojang/serialization/RecordBuilder;
intermediary method_53060
Lnet/minecraft/class_5699$class_8742;method_53060(Ljava/util/Optional;Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/RecordBuilder;)Lcom/mojang/serialization/RecordBuilder;
named encode
Lnet/minecraft/util/dynamic/Codecs$StrictOptionalField;encode(Ljava/util/Optional;Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/RecordBuilder;)Lcom/mojang/serialization/RecordBuilder;
-
keys
- Specified by:
keys
in interfacecom.mojang.serialization.Keyable
- Specified by:
keys
in classcom.mojang.serialization.MapCodec<Optional<A>>
- Mappings:
Namespace Name Mixin selector official keys
Larf$d;keys(Lcom/mojang/serialization/DynamicOps;)Ljava/util/stream/Stream;
intermediary keys
Lnet/minecraft/class_5699$class_8742;keys(Lcom/mojang/serialization/DynamicOps;)Ljava/util/stream/Stream;
named keys
Lnet/minecraft/util/dynamic/Codecs$StrictOptionalField;keys(Lcom/mojang/serialization/DynamicOps;)Ljava/util/stream/Stream;
-
equals
- Overrides:
equals
in classObject
- Mappings:
Namespace Name Mixin selector official equals
Larf$d;equals(Ljava/lang/Object;)Z
intermediary equals
Lnet/minecraft/class_5699$class_8742;equals(Ljava/lang/Object;)Z
named equals
Lnet/minecraft/util/dynamic/Codecs$StrictOptionalField;equals(Ljava/lang/Object;)Z
-
hashCode
public int hashCode() -
toString
-