Package net.minecraft.client.option
Record Class SimpleOption.PotentialValuesBasedCallbacks<T>
java.lang.Object
java.lang.Record
net.minecraft.client.option.SimpleOption.PotentialValuesBasedCallbacks<T>
- Record Components:
values-codec-
- All Implemented Interfaces:
SimpleOption.Callbacks<T>
- Enclosing class:
SimpleOption<T>
@Environment(CLIENT)
public static record SimpleOption.PotentialValuesBasedCallbacks<T>(List<T> values, com.mojang.serialization.Codec<T> codec)
extends Record
implements SimpleOption.Callbacks<T>
- Mappings:
Namespace Name official ebi$cintermediary net/minecraft/class_7172$class_7173named net/minecraft/client/option/SimpleOption$PotentialValuesBasedCallbacksofficial aintermediary comp_592named valuesofficial bintermediary comp_675named codec
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPotentialValuesBasedCallbacks(List<T> list, com.mojang.serialization.Codec<T> codec) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec<T>codec()final booleanIndicates whether some other object is "equal to" this one.getButtonCreator(SimpleOption.class_7277<T> tooltipFactory, GameOptions gameOptions, int x, int y, int width) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.values()Returns the value of thevaluesrecord component.
-
Field Details
-
Constructor Details
-
PotentialValuesBasedCallbacks
-
-
Method Details
-
getButtonCreator
public Function<SimpleOption<T>,ClickableWidget> getButtonCreator(SimpleOption.class_7277<T> tooltipFactory, GameOptions gameOptions, int x, int y, int width) - Specified by:
getButtonCreatorin interfaceSimpleOption.Callbacks<T>- Mappings:
Namespace Name Mixin selector official aLebi$k;a(Lebi$i;Lebj;III)Ljava/util/function/Function;intermediary method_41756Lnet/minecraft/class_7172$class_7178;method_41756(Lnet/minecraft/class_7172$class_7277;Lnet/minecraft/class_315;III)Ljava/util/function/Function;named getButtonCreatorLnet/minecraft/client/option/SimpleOption$Callbacks;getButtonCreator(Lnet/minecraft/client/option/SimpleOption$class_7277;Lnet/minecraft/client/option/GameOptions;III)Ljava/util/function/Function;
-
validate
- Specified by:
validatein interfaceSimpleOption.Callbacks<T>- Mappings:
Namespace Name Mixin selector official aLebi$k;a(Ljava/lang/Object;)Ljava/util/Optional;intermediary method_41758Lnet/minecraft/class_7172$class_7178;method_41758(Ljava/lang/Object;)Ljava/util/Optional;named validateLnet/minecraft/client/option/SimpleOption$Callbacks;validate(Ljava/lang/Object;)Ljava/util/Optional;
-
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. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
values
Returns the value of thevaluesrecord component.- Returns:
- the value of the
valuesrecord component
-
codec
- Specified by:
codecin interfaceSimpleOption.Callbacks<T>- Mappings:
Namespace Name Mixin selector official cLebi$k;c()Lcom/mojang/serialization/Codec;intermediary comp_675Lnet/minecraft/class_7172$class_7178;comp_675()Lcom/mojang/serialization/Codec;named codecLnet/minecraft/client/option/SimpleOption$Callbacks;codec()Lcom/mojang/serialization/Codec;
-