Record Class MovementMiningCost
java.lang.Object
java.lang.Record
com.soulfiremc.server.pathfinding.graph.actions.movement.MovementMiningCost
-
Constructor Summary
ConstructorsConstructorDescriptionMovementMiningCost(@NonNull SFVec3i block, double miningCost, boolean willDropUsableBlockItem, @NonNull BlockFace blockBreakSideHint) Creates an instance of aMovementMiningCostrecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull SFVec3iblock()Returns the value of theblockrecord component.@NonNull BlockFaceReturns the value of theblockBreakSideHintrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of theminingCostrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thewillDropUsableBlockItemrecord component.
-
Constructor Details
-
MovementMiningCost
public MovementMiningCost(@NonNull @NonNull SFVec3i block, double miningCost, boolean willDropUsableBlockItem, @NonNull @NonNull BlockFace blockBreakSideHint) Creates an instance of aMovementMiningCostrecord class.- Parameters:
block- the value for theblockrecord componentminingCost- the value for theminingCostrecord componentwillDropUsableBlockItem- the value for thewillDropUsableBlockItemrecord componentblockBreakSideHint- the value for theblockBreakSideHintrecord 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. -
block
Returns the value of theblockrecord component.- Returns:
- the value of the
blockrecord component
-
miningCost
public double miningCost()Returns the value of theminingCostrecord component.- Returns:
- the value of the
miningCostrecord component
-
willDropUsableBlockItem
public boolean willDropUsableBlockItem()Returns the value of thewillDropUsableBlockItemrecord component.- Returns:
- the value of the
willDropUsableBlockItemrecord component
-
blockBreakSideHint
Returns the value of theblockBreakSideHintrecord component.- Returns:
- the value of the
blockBreakSideHintrecord component
-