Package com.ewyboy.worldstripper.json
Record Class WSConfigLoader.WSBlockStates
java.lang.Object
java.lang.Record
com.ewyboy.worldstripper.json.WSConfigLoader.WSBlockStates
- Enclosing class:
WSConfigLoader
public static record WSConfigLoader.WSBlockStates(boolean notifyNeighbors, boolean updateBlock, boolean noRender, boolean renderMainThread, boolean updateNeighbors)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionWSBlockStates(boolean notifyNeighbors, boolean updateBlock, boolean noRender, boolean renderMainThread, boolean updateNeighbors) Creates an instance of aWSBlockStatesrecord 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.booleannoRender()Returns the value of thenoRenderrecord component.booleanReturns the value of thenotifyNeighborsrecord component.booleanReturns the value of therenderMainThreadrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theupdateBlockrecord component.booleanReturns the value of theupdateNeighborsrecord component.
-
Constructor Details
-
WSBlockStates
public WSBlockStates() -
WSBlockStates
public WSBlockStates(boolean notifyNeighbors, boolean updateBlock, boolean noRender, boolean renderMainThread, boolean updateNeighbors) Creates an instance of aWSBlockStatesrecord class.- Parameters:
notifyNeighbors- the value for thenotifyNeighborsrecord componentupdateBlock- the value for theupdateBlockrecord componentnoRender- the value for thenoRenderrecord componentrenderMainThread- the value for therenderMainThreadrecord componentupdateNeighbors- the value for theupdateNeighborsrecord 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 with '=='. -
notifyNeighbors
public boolean notifyNeighbors()Returns the value of thenotifyNeighborsrecord component.- Returns:
- the value of the
notifyNeighborsrecord component
-
updateBlock
public boolean updateBlock()Returns the value of theupdateBlockrecord component.- Returns:
- the value of the
updateBlockrecord component
-
noRender
public boolean noRender()Returns the value of thenoRenderrecord component.- Returns:
- the value of the
noRenderrecord component
-
renderMainThread
public boolean renderMainThread()Returns the value of therenderMainThreadrecord component.- Returns:
- the value of the
renderMainThreadrecord component
-
updateNeighbors
public boolean updateNeighbors()Returns the value of theupdateNeighborsrecord component.- Returns:
- the value of the
updateNeighborsrecord component
-