Record Class ItemAsset.Properties

java.lang.Object
java.lang.Record
net.minecraft.client.item.ItemAsset.Properties
Record Components:
handAnimationOnSwap -
Enclosing class:
ItemAsset

@Environment(CLIENT) public static record ItemAsset.Properties(boolean handAnimationOnSwap) extends Record
Mappings:
Namespace Name
named net/minecraft/client/item/ItemAsset$Properties
intermediary net/minecraft/class_10434$class_10543
official hbi$a
named handAnimationOnSwap
intermediary comp_3466
official c
  • Field Details Link icon

    • handAnimationOnSwap Link icon

      private final boolean handAnimationOnSwap
      The field for the handAnimationOnSwap record component.
    • DEFAULT Link icon

      public static final ItemAsset.Properties DEFAULT
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT Lnet/minecraft/client/item/ItemAsset$Properties;DEFAULT:Lnet/minecraft/client/item/ItemAsset$Properties;
      intermediary field_55549 Lnet/minecraft/class_10434$class_10543;field_55549:Lnet/minecraft/class_10434$class_10543;
      official a Lhbi$a;a:Lhbi$a;
    • CODEC Link icon

      public static final com.mojang.serialization.MapCodec<ItemAsset.Properties> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/client/item/ItemAsset$Properties;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_55550 Lnet/minecraft/class_10434$class_10543;field_55550:Lcom/mojang/serialization/MapCodec;
      official b Lhbi$a;b:Lcom/mojang/serialization/MapCodec;
  • Constructor Details Link icon

    • Properties Link icon

      public Properties(boolean bool)
  • Method Details Link icon

    • toString Link icon

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode Link icon

      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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object object)
      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 with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • handAnimationOnSwap Link icon

      public boolean handAnimationOnSwap()
      Returns the value of the handAnimationOnSwap record component.
      Returns:
      the value of the handAnimationOnSwap record component