Record Class TooltipContext.Default

java.lang.Object
java.lang.Record
net.minecraft.client.item.TooltipContext.Default
Record Components:
advanced -
creative -
All Implemented Interfaces:
TooltipContext
Enclosing interface:
TooltipContext

public static record TooltipContext.Default(boolean advanced, boolean creative) extends Record implements TooltipContext
Mappings:
Namespace Name
official ckw$a
intermediary net/minecraft/class_1836$class_1837
named net/minecraft/client/item/TooltipContext$Default
official c
intermediary comp_1152
named advanced
official d
intermediary comp_1153
named creative
  • Field Details

    • advanced

      private final boolean advanced
      The field for the advanced record component.
    • creative

      private final boolean creative
      The field for the creative record component.
  • Constructor Details

    • Default

      public Default(boolean bool, boolean bool2)
  • Method Details

    • isAdvanced

      public boolean isAdvanced()
      Specified by:
      isAdvanced in interface TooltipContext
      Mappings:
      Namespace Name Mixin selector
      official a Lckw;a()Z
      intermediary method_8035 Lnet/minecraft/class_1836;method_8035()Z
      named isAdvanced Lnet/minecraft/client/item/TooltipContext;isAdvanced()Z
    • isCreative

      public boolean isCreative()
      Specified by:
      isCreative in interface TooltipContext
      Mappings:
      Namespace Name Mixin selector
      official b Lckw;b()Z
      intermediary method_47370 Lnet/minecraft/class_1836;method_47370()Z
      named isCreative Lnet/minecraft/client/item/TooltipContext;isCreative()Z
    • withCreative

      public TooltipContext.Default withCreative()
      Mappings:
      Namespace Name Mixin selector
      official c Lckw$a;c()Lckw$a;
      intermediary method_47371 Lnet/minecraft/class_1836$class_1837;method_47371()Lnet/minecraft/class_1836$class_1837;
      named withCreative Lnet/minecraft/client/item/TooltipContext$Default;withCreative()Lnet/minecraft/client/item/TooltipContext$Default;
    • toString

      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

      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

      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.
    • advanced

      public boolean advanced()
      Returns the value of the advanced record component.
      Returns:
      the value of the advanced record component
    • creative

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