Package net.minecraft.item.tooltip
Record Class TooltipType.Default
java.lang.Object
java.lang.Record
net.minecraft.item.tooltip.TooltipType.Default
- Record Components:
advanced-creative-
- All Implemented Interfaces:
TooltipType
- Enclosing interface:
TooltipType
public static record TooltipType.Default(boolean advanced, boolean creative)
extends Record
implements TooltipType
- Mappings:
Namespace Name named net/minecraft/item/tooltip/TooltipType$Defaultintermediary net/minecraft/class_1836$class_1837official cwm$anamed advancedintermediary comp_1152official cnamed creativeintermediary comp_1153official d
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.item.tooltip.TooltipType
TooltipType.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theadvancedrecord component.private final booleanThe field for thecreativerecord component.Fields inherited from interface net.minecraft.item.tooltip.TooltipType
ADVANCED, BASIC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadvanced()Returns the value of theadvancedrecord component.booleancreative()Returns the value of thecreativerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanbooleanfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Default
public Default(boolean bool, boolean bool2)
-
-
Method Details
-
isAdvanced
public boolean isAdvanced()- Specified by:
isAdvancedin interfaceTooltipType- Mappings:
Namespace Name Mixin selector named isAdvancedLnet/minecraft/item/tooltip/TooltipType;isAdvanced()Zintermediary method_8035Lnet/minecraft/class_1836;method_8035()Zofficial aLcwm;a()Z
-
isCreative
public boolean isCreative()- Specified by:
isCreativein interfaceTooltipType- Mappings:
Namespace Name Mixin selector named isCreativeLnet/minecraft/item/tooltip/TooltipType;isCreative()Zintermediary method_47370Lnet/minecraft/class_1836;method_47370()Zofficial bLcwm;b()Z
-
withCreative
- Mappings:
Namespace Name Mixin selector named withCreativeLnet/minecraft/item/tooltip/TooltipType$Default;withCreative()Lnet/minecraft/item/tooltip/TooltipType$Default;intermediary method_47371Lnet/minecraft/class_1836$class_1837;method_47371()Lnet/minecraft/class_1836$class_1837;official cLcwm$a;c()Lcwm$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 with '=='. -
advanced
public boolean advanced()Returns the value of theadvancedrecord component.- Returns:
- the value of the
advancedrecord component
-
creative
public boolean creative()Returns the value of thecreativerecord component.- Returns:
- the value of the
creativerecord component
-