Package net.glowstone.block
Class BuiltinMaterialValueManager
java.lang.Object
net.glowstone.block.BuiltinMaterialValueManager
- All Implemented Interfaces:
MaterialValueManager
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.glowstone.block.MaterialValueManager
MaterialValueManager.ValueCollection
-
Constructor Summary
ConstructorDescriptionCreates a MaterialValueManager using the data from the resource filebuiltin/materialValues.yml
in the Glowstone jar. -
Method Summary
Modifier and TypeMethodDescriptiongetValues
(org.bukkit.Material material) Returns theMaterialValueManager.ValueCollection
for the given material.
-
Constructor Details
-
BuiltinMaterialValueManager
public BuiltinMaterialValueManager()Creates a MaterialValueManager using the data from the resource filebuiltin/materialValues.yml
in the Glowstone jar.
-
-
Method Details
-
getValues
Description copied from interface:MaterialValueManager
Returns theMaterialValueManager.ValueCollection
for the given material. If there aren't concrete values for this material, aMaterialValueManager.ValueCollection
with default values will be returned.- Specified by:
getValues
in interfaceMaterialValueManager
- Parameters:
material
- The material to look for- Returns:
- a
MaterialValueManager.ValueCollection
object with values for the given material or default values
-