Package net.minecraft
Record Class class_10741<T extends PersistentState>
java.lang.Object
java.lang.Record
net.minecraft.class_10741<T>
- Record Components:
comp_3641-comp_3642-comp_3643-comp_3644-
public record class_10741<T extends PersistentState>(String comp_3641, Function<PersistentState.class_10740,T extends PersistentState> comp_3642, Function<PersistentState.class_10740,com.mojang.serialization.Codec<T extends PersistentState>> comp_3643, DataFixTypes comp_3644)
extends Record
- Mappings:
Namespace Name named net/minecraft/class_10741intermediary net/minecraft/class_10741official extnamed comp_3641intermediary comp_3641official anamed comp_3642intermediary comp_3642official bnamed comp_3643intermediary comp_3643official cnamed comp_3644intermediary comp_3644official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thecomp_3641record component.private final Function<PersistentState.class_10740, T> The field for thecomp_3642record component.private final Function<PersistentState.class_10740, com.mojang.serialization.Codec<T>> The field for thecomp_3643record component.private final DataFixTypesThe field for thecomp_3644record component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_10741(String string, Function<PersistentState.class_10740, T> function, Function<PersistentState.class_10740, com.mojang.serialization.Codec<T>> function2, DataFixTypes dataFixTypes) class_10741(String string, Supplier<T> supplier, com.mojang.serialization.Codec<T> codec, DataFixTypes dataFixTypes) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomp_3641record component.Returns the value of thecomp_3642record component.Function<PersistentState.class_10740, com.mojang.serialization.Codec<T>> Returns the value of thecomp_3643record component.Returns the value of thecomp_3644record component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.
-
Field Details
-
comp_3641
The field for thecomp_3641record component. -
comp_3642
The field for thecomp_3642record component. -
comp_3643
private final Function<PersistentState.class_10740,com.mojang.serialization.Codec<T extends PersistentState>> comp_3643The field for thecomp_3643record component. -
comp_3644
The field for thecomp_3644record component.
-
-
Constructor Details
-
class_10741
public class_10741(String string, Supplier<T> supplier, com.mojang.serialization.Codec<T> codec, DataFixTypes dataFixTypes) -
class_10741
public class_10741(String string, Function<PersistentState.class_10740, T> function, Function<PersistentState.class_10740, com.mojang.serialization.Codec<T>> function2, DataFixTypes dataFixTypes)
-
-
Method Details
-
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). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
comp_3641
Returns the value of thecomp_3641record component.- Returns:
- the value of the
comp_3641record component
-
comp_3642
Returns the value of thecomp_3642record component.- Returns:
- the value of the
comp_3642record component
-
comp_3643
Returns the value of thecomp_3643record component.- Returns:
- the value of the
comp_3643record component
-
comp_3644
Returns the value of thecomp_3644record component.- Returns:
- the value of the
comp_3644record component
-