Package com.ewyboy.worldstripper.json
Record Class WSConfigLoader.WSConfig
java.lang.Object
java.lang.Record
com.ewyboy.worldstripper.json.WSConfigLoader.WSConfig
- Enclosing class:
WSConfigLoader
public static record WSConfigLoader.WSConfig(String replacementBlock, int stripRadiusX, int stripRadiusZ, int stripStartY, int stripEndY, WSConfigLoader.WSBlockStates blockStates)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionWSConfig()WSConfig(String replacementBlock, int stripRadiusX, int stripRadiusZ, int stripStartY, int stripEndY, WSConfigLoader.WSBlockStates blockStates) Creates an instance of aWSConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockStatesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thereplacementBlockrecord component.intReturns the value of thestripEndYrecord component.intReturns the value of thestripRadiusXrecord component.intReturns the value of thestripRadiusZrecord component.intReturns the value of thestripStartYrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WSConfig
public WSConfig() -
WSConfig
public WSConfig(String replacementBlock, int stripRadiusX, int stripRadiusZ, int stripStartY, int stripEndY, WSConfigLoader.WSBlockStates blockStates) Creates an instance of aWSConfigrecord class.- Parameters:
replacementBlock- the value for thereplacementBlockrecord componentstripRadiusX- the value for thestripRadiusXrecord componentstripRadiusZ- the value for thestripRadiusZrecord componentstripStartY- the value for thestripStartYrecord componentstripEndY- the value for thestripEndYrecord componentblockStates- the value for theblockStatesrecord 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 '=='. -
replacementBlock
Returns the value of thereplacementBlockrecord component.- Returns:
- the value of the
replacementBlockrecord component
-
stripRadiusX
public int stripRadiusX()Returns the value of thestripRadiusXrecord component.- Returns:
- the value of the
stripRadiusXrecord component
-
stripRadiusZ
public int stripRadiusZ()Returns the value of thestripRadiusZrecord component.- Returns:
- the value of the
stripRadiusZrecord component
-
stripStartY
public int stripStartY()Returns the value of thestripStartYrecord component.- Returns:
- the value of the
stripStartYrecord component
-
stripEndY
public int stripEndY()Returns the value of thestripEndYrecord component.- Returns:
- the value of the
stripEndYrecord component
-
blockStates
Returns the value of theblockStatesrecord component.- Returns:
- the value of the
blockStatesrecord component
-