Skip to content

Commit 7ac71d7

Browse files
committed
Keys.TOOL_DAMAGE_PER_BLOCK + Keys.EFFICIENCY no longer readonly
1 parent 8349d1f commit 7ac71d7

File tree

1 file changed

+5
-1
lines changed
  • src/main/java/org/spongepowered/api/data

1 file changed

+5
-1
lines changed

src/main/java/org/spongepowered/api/data/Keys.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,6 @@ public final class Keys {
887887

888888
/**
889889
* The efficiency of an {@link ItemStack} tool. Affects mining speed of supported materials. {@link #CAN_HARVEST}
890-
* Readonly
891890
*/
892891
public static final Key<Value<Double>> EFFICIENCY = Keys.key(ResourceKey.sponge("efficiency"), Double.class);
893892

@@ -3115,6 +3114,11 @@ public final class Keys {
31153114
*/
31163115
public static final Key<Value<Tilt>> TILT = Keys.key(ResourceKey.sponge("tilt"), Tilt.class);
31173116

3117+
/**
3118+
* The {@link #ITEM_DURABILITY} damage an {@link ItemStack} tool takes per block.
3119+
*/
3120+
public static final Key<Value<Integer>> TOOL_DAMAGE_PER_BLOCK = Keys.key(ResourceKey.sponge("tool_damage_per_block"), Integer.class);
3121+
31183122
/**
31193123
* The {@link ItemTier} of an {@link ItemStack} tool.
31203124
* Readonly

0 commit comments

Comments
 (0)