Class LocalTimeProperty

java.lang.Object
net.minecraft.client.render.item.property.select.LocalTimeProperty
All Implemented Interfaces:
SelectProperty<String>

@Environment(CLIENT) public class LocalTimeProperty extends Object implements SelectProperty<String>
Mappings:
Namespace Name
named net/minecraft/client/render/item/property/select/LocalTimeProperty
intermediary net/minecraft/class_10532
official hdg
  • Field Details Link icon

    • DEFAULT_FORMATTED_TIME Link icon

      public static final String DEFAULT_FORMATTED_TIME
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_FORMATTED_TIME Lnet/minecraft/client/render/item/property/select/LocalTimeProperty;DEFAULT_FORMATTED_TIME:Ljava/lang/String;
      intermediary field_55512 Lnet/minecraft/class_10532;field_55512:Ljava/lang/String;
      official a Lhdg;a:Ljava/lang/String;
    • MILLIS_PER_SECOND Link icon

      private static final long MILLIS_PER_SECOND
      Mappings:
      Namespace Name Mixin selector
      named MILLIS_PER_SECOND Lnet/minecraft/client/render/item/property/select/LocalTimeProperty;MILLIS_PER_SECOND:J
      intermediary field_55514 Lnet/minecraft/class_10532;field_55514:J
      official c Lhdg;c:J
    • TIME_ZONE_CODEC Link icon

      private static final com.mojang.serialization.Codec<TimeZone> TIME_ZONE_CODEC
      Mappings:
      Namespace Name Mixin selector
      named TIME_ZONE_CODEC Lnet/minecraft/client/render/item/property/select/LocalTimeProperty;TIME_ZONE_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_55515 Lnet/minecraft/class_10532;field_55515:Lcom/mojang/serialization/Codec;
      official d Lhdg;d:Lcom/mojang/serialization/Codec;
    • DATA_CODEC Link icon

      private static final com.mojang.serialization.MapCodec<LocalTimeProperty.Data> DATA_CODEC
      Mappings:
      Namespace Name Mixin selector
      named DATA_CODEC Lnet/minecraft/client/render/item/property/select/LocalTimeProperty;DATA_CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_55564 Lnet/minecraft/class_10532;field_55564:Lcom/mojang/serialization/MapCodec;
      official e Lhdg;e:Lcom/mojang/serialization/MapCodec;
    • TYPE Link icon

      public static final SelectProperty.Type<LocalTimeProperty,String> TYPE
      Mappings:
      Namespace Name Mixin selector
      named TYPE Lnet/minecraft/client/render/item/property/select/LocalTimeProperty;TYPE:Lnet/minecraft/client/render/item/property/select/SelectProperty$Type;
      intermediary field_55513 Lnet/minecraft/class_10532;field_55513:Lnet/minecraft/class_10494$class_10495;
      official b Lhdg;b:Lhdj$a;
    • data Link icon

      private final LocalTimeProperty.Data data
      Mappings:
      Namespace Name Mixin selector
      named data Lnet/minecraft/client/render/item/property/select/LocalTimeProperty;data:Lnet/minecraft/client/render/item/property/select/LocalTimeProperty$Data;
      intermediary field_55565 Lnet/minecraft/class_10532;field_55565:Lnet/minecraft/class_10532$class_10549;
      official f Lhdg;f:Lhdg$a;
    • dateFormat Link icon

      private final DateFormat dateFormat
      Mappings:
      Namespace Name Mixin selector
      named dateFormat Lnet/minecraft/client/render/item/property/select/LocalTimeProperty;dateFormat:Lcom/ibm/icu/text/DateFormat;
      intermediary field_55519 Lnet/minecraft/class_10532;field_55519:Lcom/ibm/icu/text/DateFormat;
      official g Lhdg;g:Lcom/ibm/icu/text/DateFormat;
    • nextUpdateTime Link icon

      private long nextUpdateTime
      Mappings:
      Namespace Name Mixin selector
      named nextUpdateTime Lnet/minecraft/client/render/item/property/select/LocalTimeProperty;nextUpdateTime:J
      intermediary field_55520 Lnet/minecraft/class_10532;field_55520:J
      official h Lhdg;h:J
    • currentTimeFormatted Link icon

      private String currentTimeFormatted
      Mappings:
      Namespace Name Mixin selector
      named currentTimeFormatted Lnet/minecraft/client/render/item/property/select/LocalTimeProperty;currentTimeFormatted:Ljava/lang/String;
      intermediary field_55521 Lnet/minecraft/class_10532;field_55521:Ljava/lang/String;
      official i Lhdg;i:Ljava/lang/String;
  • Constructor Details Link icon

    • LocalTimeProperty Link icon

      private LocalTimeProperty(LocalTimeProperty.Data data, DateFormat dateFormat)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/item/property/select/LocalTimeProperty;<init>(Lnet/minecraft/client/render/item/property/select/LocalTimeProperty$Data;Lcom/ibm/icu/text/DateFormat;)V
      intermediary <init> Lnet/minecraft/class_10532;<init>(Lnet/minecraft/class_10532$class_10549;Lcom/ibm/icu/text/DateFormat;)V
      official <init> Lhdg;<init>(Lhdg$a;Lcom/ibm/icu/text/DateFormat;)V
  • Method Details Link icon

    • create Link icon

      public static LocalTimeProperty create(String pattern, String locale, Optional<TimeZone> timeZone)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/client/render/item/property/select/LocalTimeProperty;create(Ljava/lang/String;Ljava/lang/String;Ljava/util/Optional;)Lnet/minecraft/client/render/item/property/select/LocalTimeProperty;
      intermediary method_65844 Lnet/minecraft/class_10532;method_65844(Ljava/lang/String;Ljava/lang/String;Ljava/util/Optional;)Lnet/minecraft/class_10532;
      official a Lhdg;a(Ljava/lang/String;Ljava/lang/String;Ljava/util/Optional;)Lhdg;
    • validate Link icon

      private static com.mojang.serialization.DataResult<LocalTimeProperty> validate(LocalTimeProperty.Data data)
      Mappings:
      Namespace Name Mixin selector
      named validate Lnet/minecraft/client/render/item/property/select/LocalTimeProperty;validate(Lnet/minecraft/client/render/item/property/select/LocalTimeProperty$Data;)Lcom/mojang/serialization/DataResult;
      intermediary method_65917 Lnet/minecraft/class_10532;method_65917(Lnet/minecraft/class_10532$class_10549;)Lcom/mojang/serialization/DataResult;
      official a Lhdg;a(Lhdg$a;)Lcom/mojang/serialization/DataResult;
    • getValue Link icon

      @Nullable public @Nullable String getValue(ItemStack itemStack, @Nullable @Nullable ClientWorld clientWorld, @Nullable @Nullable LivingEntity livingEntity, int int2, ModelTransformationMode modelTransformationMode)
      Specified by:
      getValue in interface SelectProperty<String>
      Mappings:
      Namespace Name Mixin selector
      named getValue Lnet/minecraft/client/render/item/property/select/LocalTimeProperty;getValue(Lnet/minecraft/item/ItemStack;Lnet/minecraft/client/world/ClientWorld;Lnet/minecraft/entity/LivingEntity;ILnet/minecraft/item/ModelTransformationMode;)Ljava/lang/String;
      intermediary method_65841 Lnet/minecraft/class_10532;method_65841(Lnet/minecraft/class_1799;Lnet/minecraft/class_638;Lnet/minecraft/class_1309;ILnet/minecraft/class_811;)Ljava/lang/String;
      official a Lhdg;a(Lcwq;Lgga;Lbvi;ILcwo;)Ljava/lang/String;
    • formatCurrentTime Link icon

      private String formatCurrentTime()
      Mappings:
      Namespace Name Mixin selector
      named formatCurrentTime Lnet/minecraft/client/render/item/property/select/LocalTimeProperty;formatCurrentTime()Ljava/lang/String;
      intermediary method_65845 Lnet/minecraft/class_10532;method_65845()Ljava/lang/String;
      official b Lhdg;b()Ljava/lang/String;
    • getType Link icon

      Specified by:
      getType in interface SelectProperty<String>
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/client/render/item/property/select/SelectProperty;getType()Lnet/minecraft/client/render/item/property/select/SelectProperty$Type;
      intermediary method_65674 Lnet/minecraft/class_10494;method_65674()Lnet/minecraft/class_10494$class_10495;
      official a Lhdj;a()Lhdj$a;