Record Class SelectProperty.Type<P extends SelectProperty<T>,T>
java.lang.Object
java.lang.Record
net.minecraft.client.render.item.property.select.SelectProperty.Type<P,T>
- Record Components:
switchCodec-
- Enclosing interface:
SelectProperty<T>
@Environment(CLIENT)
public static record SelectProperty.Type<P extends SelectProperty<T>,T> (com.mojang.serialization.MapCodec<SelectItemModel.UnbakedSwitch<P extends SelectProperty<T>,T>> switchCodec)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/item/property/select/SelectProperty$Typeintermediary net/minecraft/class_10494$class_10495official hdj$anamed switchCodecintermediary comp_3417official a
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.mojang.serialization.MapCodec<SelectItemModel.UnbakedSwitch<P, T>> The field for theswitchCodecrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionType(com.mojang.serialization.MapCodec<SelectItemModel.UnbakedSwitch<P, T>> mapCodec) -
Method Summary
Modifier and TypeMethodDescriptionstatic <P extends SelectProperty<T>,T>
SelectProperty.Type<P, T> create(com.mojang.serialization.MapCodec<P> propertyCodec, com.mojang.serialization.Codec<T> valueCodec) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.mojang.serialization.MapCodec<SelectItemModel.UnbakedSwitch<P, T>> Returns the value of theswitchCodecrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
switchCodec
private final com.mojang.serialization.MapCodec<SelectItemModel.UnbakedSwitch<P extends SelectProperty<T>,T>> switchCodecThe field for theswitchCodecrecord component.
-
-
Constructor Details
-
Type
-
-
Method Details
-
create
public static <P extends SelectProperty<T>,T> SelectProperty.Type<P,T> create(com.mojang.serialization.MapCodec<P> propertyCodec, com.mojang.serialization.Codec<T> valueCodec) - Mappings:
Namespace Name Mixin selector named createLnet/minecraft/client/render/item/property/select/SelectProperty$Type;create(Lcom/mojang/serialization/MapCodec;Lcom/mojang/serialization/Codec;)Lnet/minecraft/client/render/item/property/select/SelectProperty$Type;intermediary method_65686Lnet/minecraft/class_10494$class_10495;method_65686(Lcom/mojang/serialization/MapCodec;Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_10494$class_10495;official aLhdj$a;a(Lcom/mojang/serialization/MapCodec;Lcom/mojang/serialization/Codec;)Lhdj$a;
-
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). -
switchCodec
Returns the value of theswitchCodecrecord component.- Returns:
- the value of the
switchCodecrecord component
-