Record Class BlockDisplayProperty
java.lang.Object
java.lang.Record
de.z0rdak.yawp.util.visualization.BlockDisplayProperty
-
Constructor Summary
ConstructorsConstructorDescriptionBlockDisplayProperty(String blockName, boolean glowing, boolean persistent) Creates an instance of aBlockDisplayPropertyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockNamerecord component.final booleanIndicates whether some other object is "equal to" this one.booleanglowing()Returns the value of theglowingrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thepersistentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlockDisplayProperty
Creates an instance of aBlockDisplayPropertyrecord class.- Parameters:
blockName- the value for theblockNamerecord componentglowing- the value for theglowingrecord componentpersistent- the value for thepersistentrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
blockName
Returns the value of theblockNamerecord component.- Returns:
- the value of the
blockNamerecord component
-
glowing
public boolean glowing()Returns the value of theglowingrecord component.- Returns:
- the value of the
glowingrecord component
-
persistent
public boolean persistent()Returns the value of thepersistentrecord component.- Returns:
- the value of the
persistentrecord component
-