Package ch.njol.skript.entity
Record Class WolfData.WolfStates
java.lang.Object
java.lang.Record
ch.njol.skript.entity.WolfData.WolfStates
- Enclosing class:
- WolfData
- 
Constructor SummaryConstructorsConstructorDescriptionWolfStates(Kleenean angry, Kleenean tamed) Creates an instance of aWolfStatesrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionangry()Returns the value of theangryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.tamed()Returns the value of thetamedrecord component.final StringtoString()Returns a string representation of this record class.
- 
Constructor Details- 
WolfStatesCreates an instance of aWolfStatesrecord class.- Parameters:
- angry- the value for the- angryrecord component
- tamed- the value for the- tamedrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
angryReturns the value of theangryrecord component.- Returns:
- the value of the angryrecord component
 
- 
tamedReturns the value of thetamedrecord component.- Returns:
- the value of the tamedrecord component
 
 
-