Record Class TooltipFlag.Default
java.lang.Object
java.lang.Record
net.minecraft.world.item.TooltipFlag.Default
- All Implemented Interfaces:
TooltipFlag
- Enclosing interface:
TooltipFlag
public static record TooltipFlag.Default(boolean advanced, boolean creative)
extends Record
implements TooltipFlag
-
Nested Class Summary
Nested classes/interfaces inherited from interface TooltipFlag
TooltipFlag.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theadvancedrecord component.private final booleanThe field for thecreativerecord component.Fields inherited from interface TooltipFlag
ADVANCED, NORMAL -
Constructor Summary
ConstructorsConstructorDescriptionDefault(boolean advanced, boolean creative) Creates an instance of aDefaultrecord class. -
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.Methods inherited from interface TooltipFlag
hasAltDown, hasControlDown, hasShiftDown
-
Field Details
-
advanced
private final boolean advancedThe field for theadvancedrecord component. -
creative
private final boolean creativeThe field for thecreativerecord component.
-
-
Constructor Details
-
Default
public Default(boolean advanced, boolean creative) Creates an instance of aDefaultrecord class.- Parameters:
advanced- the value for theadvancedrecord componentcreative- the value for thecreativerecord component
-
-
Method Details
-
isAdvanced
public boolean isAdvanced()- Specified by:
isAdvancedin interfaceTooltipFlag
-
isCreative
public boolean isCreative()- Specified by:
isCreativein interfaceTooltipFlag
-
asCreative
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
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
-