Package net.minecraft.client.option
Record Class SimpleOption.class_7273<T>
java.lang.Object
java.lang.Record
net.minecraft.client.option.SimpleOption.class_7273<T>
- Record Components:
values-altValues-altCondition-altSetter-codec-
- All Implemented Interfaces:
SimpleOption.Callbacks<T>
- Enclosing class:
SimpleOption<T>
@Environment(CLIENT)
public static record SimpleOption.class_7273<T>(List<T> values, List<T> altValues, BooleanSupplier altCondition, SimpleOption.class_7274<T> altSetter, com.mojang.serialization.Codec<T> codec)
extends Record
implements SimpleOption.Callbacks<T>
- Mappings:
Namespace Name official ebi$aintermediary net/minecraft/class_7172$class_7273named net/minecraft/client/option/SimpleOption$class_7273official aintermediary comp_671named valuesofficial bintermediary comp_672named altValuesofficial cintermediary comp_673named altConditionofficial dintermediary comp_674named altSetterofficial eintermediary comp_675named codec
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BooleanSupplierThe field for thealtConditionrecord component.private final SimpleOption.class_7274<T>The field for thealtSetterrecord component.The field for thealtValuesrecord component.private final com.mojang.serialization.Codec<T>The field for thecodecrecord component.The field for thevaluesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_7273(List<T> list, List<T> list2, BooleanSupplier booleanSupplier, SimpleOption.class_7274<T> class_7274, com.mojang.serialization.Codec<T> codec) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealtConditionrecord component.Returns the value of thealtSetterrecord component.Returns the value of thealtValuesrecord component.com.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
-
values
The field for thevaluesrecord component. -
altValues
The field for thealtValuesrecord component. -
altCondition
The field for thealtConditionrecord component. -
altSetter
The field for thealtSetterrecord component. -
codec
The field for thecodecrecord component.
-
-
Constructor Details
-
class_7273
public class_7273(List<T> list, List<T> list2, BooleanSupplier booleanSupplier, SimpleOption.class_7274<T> class_7274, com.mojang.serialization.Codec<T> codec)
-
-
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
-
altValues
Returns the value of thealtValuesrecord component.- Returns:
- the value of the
altValuesrecord component
-
altCondition
Returns the value of thealtConditionrecord component.- Returns:
- the value of the
altConditionrecord component
-
altSetter
Returns the value of thealtSetterrecord component.- Returns:
- the value of the
altSetterrecord 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;
-