Record Class CodecRequest
java.lang.Object
java.lang.Record
net.rebel459.unified.impl.codec.CodecRequest
public record CodecRequest(String path, BiFunction<net.minecraft.core.HolderLookup.Provider, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement>, com.google.gson.JsonElement> encoder)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCodecRequest(String path, BiFunction<net.minecraft.core.HolderLookup.Provider, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement>, com.google.gson.JsonElement> encoder) Creates an instance of aCodecRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionBiFunction<net.minecraft.core.HolderLookup.Provider, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement>, com.google.gson.JsonElement> encoder()Returns the value of theencoderrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
FILES
-
-
Constructor Details
-
CodecRequest
public CodecRequest(String path, BiFunction<net.minecraft.core.HolderLookup.Provider, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement>, com.google.gson.JsonElement> encoder) Creates an instance of aCodecRequestrecord class.- Parameters:
path- the value for thepathrecord componentencoder- the value for theencoderrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
encoder
public BiFunction<net.minecraft.core.HolderLookup.Provider, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement>, com.google.gson.JsonElement> encoder()Returns the value of theencoderrecord component.- Returns:
- the value of the
encoderrecord component
-