Interface AnvilCost
- All Superinterfaces:
DataSerializable
The level and material costs for an anvil usage.
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the level cost.int
Returns the material cost.withLevelCost
(int levelCost) Returns a modified copy of the CostswithMaterialCost
(int materialCost) Returns a modified copy of the CostsMethods inherited from interface org.spongepowered.api.data.persistence.DataSerializable
contentVersion, toContainer
-
Method Details
-
levelCost
int levelCost()Returns the level cost.- Returns:
- The level cost
-
materialCost
int materialCost()Returns the material cost.- Returns:
- The material cost
-
withLevelCost
Returns a modified copy of the Costs- Parameters:
levelCost
- The new level cost- Returns:
- A modified copy of the Costs
-
withMaterialCost
Returns a modified copy of the Costs- Parameters:
materialCost
- The new material cost- Returns:
- A modified copy of the Costs
-