Skip to content

Commit bb4d583

Browse files
committed
Add Keys.WEAPON_DAMAGE_PER_ATTACK and Keys.DISABLE_BLOCKING_TICKS
1 parent 92ddc65 commit bb4d583

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
@@ -3645,6 +3645,16 @@ public final class Keys {
36453645
*/
36463646
public static final Key<Value<WorldTypeEffect>> WORLD_TYPE_EFFECT = Keys.key(ResourceKey.sponge("world_type_effect"), WorldTypeEffect.class);
36473647

3648+
/**
3649+
* The {@link #ITEM_DURABILITY} damage an {@link ItemStack} takes per attack.
3650+
*/
3651+
public static final Key<Value<Integer>> WEAPON_DAMAGE_PER_ATTACK = Keys.key(ResourceKey.sponge("weapon_damage_per_attack"), Integer.class);
3652+
3653+
/**
3654+
* The amount of {@link Ticks} this {@link ItemStack} disables blocking for on successful attack.
3655+
*/
3656+
public static final Key<Value<Ticks>> DISABLE_BLOCKING_TICKS = Keys.key(ResourceKey.sponge("disable_blocking_ticks"), Ticks.class);
3657+
36483658
// SORTFIELDS:OFF
36493659

36503660
// @formatter:on

0 commit comments

Comments
 (0)