Package net.minecraft.client.item
Record Class TooltipType.Default
java.lang.Object
java.lang.Record
net.minecraft.client.item.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/client/item/TooltipType$Default
intermediary net/minecraft/class_1836$class_1837
official cvw$a
named advanced
intermediary comp_1152
official c
named creative
intermediary comp_1153
official d
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.item.TooltipType
TooltipType.Default
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
The field for theadvanced
record component.private final boolean
The field for thecreative
record component.Fields inherited from interface net.minecraft.client.item.TooltipType
ADVANCED, BASIC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
advanced()
Returns the value of theadvanced
record component.boolean
creative()
Returns the value of thecreative
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
boolean
final String
toString()
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:
isAdvanced
in interfaceTooltipType
- Mappings:
Namespace Name Mixin selector named isAdvanced
Lnet/minecraft/client/item/TooltipType;isAdvanced()Z
intermediary method_8035
Lnet/minecraft/class_1836;method_8035()Z
official a
Lcvw;a()Z
-
isCreative
public boolean isCreative()- Specified by:
isCreative
in interfaceTooltipType
- Mappings:
Namespace Name Mixin selector named isCreative
Lnet/minecraft/client/item/TooltipType;isCreative()Z
intermediary method_47370
Lnet/minecraft/class_1836;method_47370()Z
official b
Lcvw;b()Z
-
withCreative
- Mappings:
Namespace Name Mixin selector named withCreative
Lnet/minecraft/client/item/TooltipType$Default;withCreative()Lnet/minecraft/client/item/TooltipType$Default;
intermediary method_47371
Lnet/minecraft/class_1836$class_1837;method_47371()Lnet/minecraft/class_1836$class_1837;
official c
Lcvw$a;c()Lcvw$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 theadvanced
record component.- Returns:
- the value of the
advanced
record component
-
creative
public boolean creative()Returns the value of thecreative
record component.- Returns:
- the value of the
creative
record component
-