Interface AnvilCost
-
- All Superinterfaces:
DataSerializable
public interface AnvilCost extends DataSerializable
The level and material costs for an anvil usage.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
levelCost()
Returns the level cost.int
materialCost()
Returns the material cost.AnvilCost
withLevelCost(int levelCost)
Returns a modified copy of the CostsAnvilCost
withMaterialCost(int materialCost)
Returns a modified copy of the Costs-
Methods inherited from interface org.spongepowered.api.data.persistence.DataSerializable
contentVersion, toContainer
-
-
-
-
Method Detail
-
levelCost
int levelCost()
Returns the level cost.- Returns:
- The level cost
-
materialCost
int materialCost()
Returns the material cost.- Returns:
- The material cost
-
withLevelCost
AnvilCost withLevelCost(int levelCost)
Returns a modified copy of the Costs- Parameters:
levelCost
- The new level cost- Returns:
- A modified copy of the Costs
-
withMaterialCost
AnvilCost withMaterialCost(int materialCost)
Returns a modified copy of the Costs- Parameters:
materialCost
- The new material cost- Returns:
- A modified copy of the Costs
-
-