Skip to content

Commit ef134d6

Browse files
committed
Rename Keys to be consistent & improve their Javadocs
1 parent 8c6096d commit ef134d6

File tree

1 file changed

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

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3674,21 +3674,21 @@ public final class Keys {
36743674
public static final Key<Value<Integer>> WEAPON_DAMAGE_PER_ATTACK = Keys.key(ResourceKey.sponge("weapon_damage_per_attack"), Integer.class);
36753675

36763676
/**
3677-
* The amount of {@link Ticks} this {@link ItemStack} disables blocking for on successful attack.
3677+
* The amount of {@link Ticks} this {@link ItemStack} disables blocking with a shield-like {@link ItemStack} on a successful attack.
36783678
*/
3679-
public static final Key<Value<Ticks>> DISABLE_BLOCKING_TICKS = Keys.key(ResourceKey.sponge("disable_blocking_ticks"), Ticks.class);
3679+
public static final Key<Value<Ticks>> DISABLE_SHIELD_TICKS = Keys.key(ResourceKey.sponge("disable_shield_ticks"), Ticks.class);
36803680

36813681
/**
3682-
* The amount of {@link Ticks} player must use this {@link ItemStack} for to block attacks successfully.
3682+
* The amount of {@link Ticks} player must use this shield-like {@link ItemStack} for to block attacks successfully.
36833683
*/
3684-
public static final Key<Value<Ticks>> BLOCK_DEPLOY_TICKS = Keys.key(ResourceKey.sponge("block_deploy_ticks"), Ticks.class);
3684+
public static final Key<Value<Ticks>> SHIELD_DEPLOY_TICKS = Keys.key(ResourceKey.sponge("shield_deploy_ticks"), Ticks.class);
36853685

36863686
/**
3687-
* Multiplier applied to the cooldown during which blocking using this item is disabled.
3687+
* Multiplier applied to the cooldown during which blocking using this shield-like {@link ItemStack} is disabled.
36883688
*
36893689
* @see <a href="https://minecraft.wiki/w/Data_component_format#blocks_attacks">blocks_attacks</a>
36903690
*/
3691-
public static final Key<Value<Double>> DISABLED_BLOCKING_COOLDOWN_SCALE = Keys.key(ResourceKey.sponge("disabled_blocking_cooldown_scale"), Double.class);
3691+
public static final Key<Value<Double>> DISABLE_SHIELD_TICKS_SCALE = Keys.key(ResourceKey.sponge("disable_shield_ticks_scale"), Double.class);
36923692

36933693
/**
36943694
* The amount of attack damage a shield-like {@link ItemStack} reduces for certain {@link DamageType}s

0 commit comments

Comments
 (0)