Record Class BlockAssets.Crop
java.lang.Object
java.lang.Record
net.rebel459.unified.api.asset.BlockAssets.Crop
- Enclosing class:
BlockAssets
-
Constructor Summary
Constructors -
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.net.minecraft.world.level.block.state.properties.Property<Integer> property()Returns the value of thepropertyrecord component.intstages()Returns the value of thestagesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Crop
public Crop(net.minecraft.world.level.block.state.properties.Property<Integer> property, int stages) Creates an instance of aCroprecord class.- Parameters:
property- the value for thepropertyrecord componentstages- the value for thestagesrecord component
-
-
Method Details
-
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. -
property
Returns the value of thepropertyrecord component.- Returns:
- the value of the
propertyrecord component
-
stages
public int stages()Returns the value of thestagesrecord component.- Returns:
- the value of the
stagesrecord component
-