Skip to content

Commit

Permalink
Keys.INACCURACY api/impl
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsDoot committed Jul 11, 2021
1 parent ea2484a commit 468ecf3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/org/spongepowered/api/data/Keys.java
Original file line number Diff line number Diff line change
Expand Up @@ -1116,6 +1116,13 @@ public final class Keys {
*/
public static final Key<Value<HorseStyle>> HORSE_STYLE = Keys.key(ResourceKey.sponge("horse_style"), HorseStyle.class);

/**
* The inaccuracy of an {@link ItemStack} that launches {@link Projectile}s.
*
* <p>An inaccuracy of 0 means perfect accuracy. Inaccuracy of 1 is the default for most vanilla items.</p>
*/
public static final Key<Value<Double>> INACCURACY = Keys.key(ResourceKey.sponge("inaccuracy"), Double.class);

/**
* Whether an {@link Item} will not despawn for an infinite time.
*/
Expand Down

0 comments on commit 468ecf3

Please sign in to comment.