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
ConstructorsConstructorDescriptionCreates a MaterialValueManager using the data from the resource filebuiltin/materialValues.ymlin the Glowstone jar. -
Method Summary
Modifier and TypeMethodDescriptiongetValues(org.bukkit.Material material) Returns theMaterialValueManager.ValueCollectionfor the given material.
-
Constructor Details
-
BuiltinMaterialValueManager
public BuiltinMaterialValueManager()Creates a MaterialValueManager using the data from the resource filebuiltin/materialValues.ymlin the Glowstone jar.
-
-
Method Details
-
getValues
Description copied from interface:MaterialValueManagerReturns theMaterialValueManager.ValueCollectionfor the given material. If there aren't concrete values for this material, aMaterialValueManager.ValueCollectionwith default values will be returned.- Specified by:
getValuesin interfaceMaterialValueManager- Parameters:
material- The material to look for- Returns:
- a
MaterialValueManager.ValueCollectionobject with values for the given material or default values
-