Skip to content

Commit 89ca014

Browse files
authored
add Keys.INACCURACY (#2370)
1 parent 3a35612 commit 89ca014

File tree

1 file changed

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

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,6 +1116,13 @@ public final class Keys {
11161116
*/
11171117
public static final Key<Value<HorseStyle>> HORSE_STYLE = Keys.key(ResourceKey.sponge("horse_style"), HorseStyle.class);
11181118

1119+
/**
1120+
* The inaccuracy of an {@link ItemStack} that launches {@link Projectile}s.
1121+
*
1122+
* <p>An inaccuracy of 0 means perfect accuracy. Inaccuracy of 1 is the default for most vanilla items.</p>
1123+
*/
1124+
public static final Key<Value<Double>> INACCURACY = Keys.key(ResourceKey.sponge("inaccuracy"), Double.class);
1125+
11191126
/**
11201127
* Whether an {@link Item} will not despawn for an infinite time.
11211128
*/

0 commit comments

Comments
 (0)