Package appeng.api.crafting
Record Class PatternDetailsTooltip.Property
java.lang.Object
java.lang.Record
appeng.api.crafting.PatternDetailsTooltip.Property
- Enclosing class:
PatternDetailsTooltip
public static record PatternDetailsTooltip.Property(net.minecraft.network.chat.Component name, @Nullable net.minecraft.network.chat.Component value)
extends Record
An additional property to display on the patterns tooltip, such as whether substitutions of items was enabled or
not.
-
Constructor Summary
ConstructorsConstructorDescriptionProperty
(net.minecraft.network.chat.Component name, @Nullable net.minecraft.network.chat.Component value) Creates an instance of aProperty
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.net.minecraft.network.chat.Component
name()
Returns the value of thename
record component.final String
toString()
Returns a string representation of this record class.@Nullable net.minecraft.network.chat.Component
value()
Returns the value of thevalue
record component.
-
Constructor Details
-
Property
public Property(net.minecraft.network.chat.Component name, @Nullable @Nullable net.minecraft.network.chat.Component value) Creates an instance of aProperty
record class.- Parameters:
name
- the value for thename
record componentvalue
- the value for thevalue
record component
-
-
Method Details
-
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 withObjects::equals(Object,Object)
. -
name
public net.minecraft.network.chat.Component name()Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
value
@Nullable public @Nullable net.minecraft.network.chat.Component value()Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-