Record Class Rule
java.lang.Object
java.lang.Record
zombie.iso.worldgen.rules.Rule
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbitmap()Returns the value of thebitmaprecord component.int[]color()Returns the value of thecolorrecord component.int[]Returns the value of theconditionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.layer()Returns the value of thelayerrecord component.static Ruleload(BufferedReader bufferedReader, String[] var1) tiles()Returns the value of thetilesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Rule
public Rule(String label, int bitmap, int[] color, List<String> tiles, String layer, int[] condition) Creates an instance of aRulerecord class.- Parameters:
label- the value for thelabelrecord componentbitmap- the value for thebitmaprecord componentcolor- the value for thecolorrecord componenttiles- the value for thetilesrecord componentlayer- the value for thelayerrecord componentcondition- the value for theconditionrecord component
-
-
Method Details
-
load
- Throws:
IOException
-
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. -
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
bitmap
public int bitmap()Returns the value of thebitmaprecord component.- Returns:
- the value of the
bitmaprecord component
-
color
public int[] color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
tiles
-
layer
Returns the value of thelayerrecord component.- Returns:
- the value of the
layerrecord component
-
condition
public int[] condition()Returns the value of theconditionrecord component.- Returns:
- the value of the
conditionrecord component
-