Skip to content

Commit 413e292

Browse files
committed
Add Keys.WEAPON_DAMAGE_PER_ATTACK and Keys.DISABLE_BLOCKING_TICKS
1 parent 9b0d678 commit 413e292

File tree

1 file changed

+10
-0
lines changed
  • src/main/java/org/spongepowered/api/data

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3665,6 +3665,16 @@ public final class Keys {
36653665
*/
36663666
public static final Key<Value<WorldTypeEffect>> WORLD_TYPE_EFFECT = Keys.key(ResourceKey.sponge("world_type_effect"), WorldTypeEffect.class);
36673667

3668+
/**
3669+
* The {@link #ITEM_DURABILITY} damage an {@link ItemStack} takes per attack.
3670+
*/
3671+
public static final Key<Value<Integer>> WEAPON_DAMAGE_PER_ATTACK = Keys.key(ResourceKey.sponge("weapon_damage_per_attack"), Integer.class);
3672+
3673+
/**
3674+
* The amount of {@link Ticks} this {@link ItemStack} disables blocking for on successful attack.
3675+
*/
3676+
public static final Key<Value<Ticks>> DISABLE_BLOCKING_TICKS = Keys.key(ResourceKey.sponge("disable_blocking_ticks"), Ticks.class);
3677+
36683678
// SORTFIELDS:OFF
36693679

36703680
// @formatter:on

0 commit comments

Comments
 (0)