Class CyclicButtonInputType
java.lang.Object
com.pixelmonmod.pixelmon.api.ui.type.CyclicButtonInputType
This input type represents a cyclic button input
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCyclicButtonInputType(String value, List<String> values, net.minecraft.network.chat.Component label) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<? extends InputType<?>> codec()The codec used for encoding and decoding the data when transferring between the client and serverList<net.minecraft.client.gui.layouts.Layout> static CyclicButtonInputTypeCreates a new text input typevoidSets the value of the inputInputElementType<? extends InputType<?>> type()value()The current value of the input
-
Field Details
-
CODEC
-
label
protected net.minecraft.network.chat.Component label -
value
-
values
-
-
Constructor Details
-
CyclicButtonInputType
-
-
Method Details
-
of
public static CyclicButtonInputType of(String value, List<String> values, net.minecraft.network.chat.Component label) Creates a new text input type- Parameters:
value- The current valuelabel- The label to display- Returns:
- The new text input type
-
codec
Description copied from interface:InputTypeThe codec used for encoding and decoding the data when transferring between the client and server -
type
-
value
Description copied from interface:InputTypeThe current value of the input -
setValue
Description copied from interface:InputTypeSets the value of the input -
getWidget
-