We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb7062e commit 9cf6bd9Copy full SHA for 9cf6bd9
common/src/main/java/smartin/miapi/modules/properties/MiningSpeedProperty.java
@@ -0,0 +1,25 @@
1
+package smartin.miapi.modules.properties;
2
+
3
+import net.minecraft.item.ItemStack;
4
+import smartin.miapi.modules.properties.util.DoubleProperty;
5
6
+public class MiningSpeedProperty extends DoubleProperty {
7
+ public static MiningSpeedProperty property;
8
+ public static String KEY = "mining_speed_modifier";
9
10
+ public MiningSpeedProperty() {
11
+ super(KEY);
12
+ property = this;
13
+ this.baseValue = 1;
14
+ }
15
16
+ @Override
17
+ public Double getValue(ItemStack stack) {
18
+ return getValueRaw(stack);
19
20
21
22
+ public double getValueSafe(ItemStack stack) {
23
+ return getValueSafeRaw(stack);
24
25
+}
0 commit comments