Interface SelectProperty<T>
- All Known Implementing Classes:
ChargeTypeProperty,ComponentSelectProperty,ContextDimensionProperty,ContextEntityTypeProperty,CustomModelDataStringProperty,DisplayContextProperty,ItemBlockStateProperty,LocalTimeProperty,MainHandProperty,TrimMaterialProperty
@Environment(CLIENT)
public interface SelectProperty<T>
- Mappings:
Namespace Name named net/minecraft/client/render/item/property/select/SelectPropertyintermediary net/minecraft/class_10494official iew
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordSelectProperty.Type<P extends SelectProperty<T>,T> -
Method Summary
Modifier and TypeMethodDescriptionSelectProperty.Type<? extends SelectProperty<T>, T> getType()@Nullable TgetValue(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity user, int seed, ItemDisplayContext displayContext) com.mojang.serialization.Codec<T>
-
Method Details
-
getValue
@Nullable T getValue(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity user, int seed, ItemDisplayContext displayContext) - Mappings:
Namespace Name Mixin selector named getValueLnet/minecraft/client/render/item/property/select/SelectProperty;getValue(Lnet/minecraft/item/ItemStack;Lnet/minecraft/client/world/ClientWorld;Lnet/minecraft/entity/LivingEntity;ILnet/minecraft/item/ItemDisplayContext;)Ljava/lang/Object;intermediary method_65676Lnet/minecraft/class_10494;method_65676(Lnet/minecraft/class_1799;Lnet/minecraft/class_638;Lnet/minecraft/class_1309;ILnet/minecraft/class_811;)Ljava/lang/Object;official bLiew;b(Ldkg;Lhdr;Lchc;ILdke;)Ljava/lang/Object;
-
valueCodec
com.mojang.serialization.Codec<T> valueCodec()- Mappings:
Namespace Name Mixin selector named valueCodecLnet/minecraft/client/render/item/property/select/SelectProperty;valueCodec()Lcom/mojang/serialization/Codec;intermediary method_67287Lnet/minecraft/class_10494;method_67287()Lcom/mojang/serialization/Codec;official bLiew;b()Lcom/mojang/serialization/Codec;
-
getType
SelectProperty.Type<? extends SelectProperty<T>,T> getType()- Mappings:
Namespace Name Mixin selector named getTypeLnet/minecraft/client/render/item/property/select/SelectProperty;getType()Lnet/minecraft/client/render/item/property/select/SelectProperty$Type;intermediary method_65674Lnet/minecraft/class_10494;method_65674()Lnet/minecraft/class_10494$class_10495;official aLiew;a()Liew$a;
-