Record Class Selector.Special.ShulkerBox
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.server.resource.asset.definition.Selector.Special.ShulkerBox
- All Implemented Interfaces:
Selector.Special.Type
- Enclosing class:
Selector.Special
public static record Selector.Special.ShulkerBox(Texture texture, int openness)
extends Record
implements Selector.Special.Type
-
Constructor Summary
ConstructorsConstructorDescriptionShulkerBox(Texture texture, int openness) Creates an instance of aShulkerBoxrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()intopenness()Returns the value of theopennessrecord component.texture()Returns the value of thetexturerecord component.toJson()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ShulkerBox
Creates an instance of aShulkerBoxrecord class.- Parameters:
texture- the value for thetexturerecord componentopenness- the value for theopennessrecord component
-
-
Method Details
-
id
- Specified by:
idin interfaceSelector.Special.Type
-
toJson
- Specified by:
toJsonin interfaceSelector.Special.Type
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
texture
Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
openness
public int openness()Returns the value of theopennessrecord component.- Returns:
- the value of the
opennessrecord component
-