Record Class Costs.TickResult
java.lang.Object
java.lang.Record
com.soulfiremc.server.pathfinding.Costs.TickResult
- Enclosing class:
Costs
-
Constructor Summary
ConstructorsConstructorDescriptionTickResult(int ticks, boolean willDropUsableBlockItem) Creates an instance of aTickResultrecord 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.intticks()Returns the value of theticksrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thewillDropUsableBlockItemrecord component.
-
Constructor Details
-
TickResult
public TickResult(int ticks, boolean willDropUsableBlockItem) Creates an instance of aTickResultrecord class.- Parameters:
ticks- the value for theticksrecord componentwillDropUsableBlockItem- the value for thewillDropUsableBlockItemrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
ticks
public int ticks()Returns the value of theticksrecord component.- Returns:
- the value of the
ticksrecord component
-
willDropUsableBlockItem
public boolean willDropUsableBlockItem()Returns the value of thewillDropUsableBlockItemrecord component.- Returns:
- the value of the
willDropUsableBlockItemrecord component
-