Skip to content

Commit f233d98

Browse files
committed
Sort keys
1 parent 36b13d7 commit f233d98

File tree

1 file changed

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

1 file changed

+46
-45
lines changed

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

Lines changed: 46 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,11 @@ public final class Keys {
642642
*/
643643
public static final Key<Value<Integer>> BURN_TIME = Keys.key(ResourceKey.sponge("burn_time"), Integer.class);
644644

645+
/**
646+
* The {@link DamageType} tag that bypasses a shield-like {@link ItemStack}.
647+
*/
648+
public static final Key<Value<Tag<DamageType>>> BYPASS_DAMAGE_TAG = Keys.key(ResourceKey.sponge("bypass_damage_tag"), new TypeToken<>() {});
649+
645650
/**
646651
* Whether an {@link ItemStack} can always be eaten.
647652
*/
@@ -979,6 +984,17 @@ public final class Keys {
979984
*/
980985
public static final Key<Value<Direction>> DIRECTION = Keys.key(ResourceKey.sponge("direction"), Direction.class);
981986

987+
/**
988+
* The amount of {@link Ticks} this {@link ItemStack} disables blocking with a shield-like {@link ItemStack} on a successful attack.
989+
*/
990+
public static final Key<Value<Ticks>> DISABLE_SHIELD_TICKS = Keys.key(ResourceKey.sponge("disable_shield_ticks"), Ticks.class);
991+
992+
/**
993+
* The multiplier applied to the cooldown time during which blocking using this shield-like {@link ItemStack} is disabled.
994+
* If set to 0, this item can never be disabled by attacks.
995+
*/
996+
public static final Key<Value<Double>> DISABLE_SHIELD_TICKS_SCALE = Keys.key(ResourceKey.sponge("disable_shield_ticks_scale"), Double.class);
997+
982998
/**
983999
* The display name of an {@link Entity}, {@link ItemStack} or {@link BlockEntity}.
9841000
*
@@ -3049,6 +3065,31 @@ public final class Keys {
30493065
*/
30503066
public static final Key<Value<Double>> SHADOW_STRENGTH = Keys.key(ResourceKey.sponge("shadow_strength"), Double.class);
30513067

3068+
/**
3069+
* The sound played when blocking an attack with a shield-like {@link ItemStack}.
3070+
*/
3071+
public static final Key<Value<SoundType>> SHIELD_BLOCK_SOUND = Keys.key(ResourceKey.sponge("shield_block_sound"), SoundType.class);
3072+
3073+
/**
3074+
* The amount of attack damage a shield-like {@link ItemStack} reduces for certain {@link DamageType}s
3075+
*/
3076+
public static final Key<ListValue<ShieldDamageReduction>> SHIELD_DAMAGE_REDUCTIONS = Keys.listKey(ResourceKey.sponge("shield_damage_reductions"), ShieldDamageReduction.class);
3077+
3078+
/**
3079+
* The amount of {@link Ticks} player must use this shield-like {@link ItemStack} for to block attacks successfully.
3080+
*/
3081+
public static final Key<Value<Ticks>> SHIELD_DEPLOY_TICKS = Keys.key(ResourceKey.sponge("shield_deploy_ticks"), Ticks.class);
3082+
3083+
/**
3084+
* The sound played when a shield-like {@link ItemStack} is disabled.
3085+
*/
3086+
public static final Key<Value<SoundType>> SHIELD_DISABLE_SOUND = Keys.key(ResourceKey.sponge("shield_disable_sound"), SoundType.class);
3087+
3088+
/**
3089+
* Function for the amount of {@link Keys#ITEM_DURABILITY} damage a shield-like {@link ItemStack} takes when blocking an attack.
3090+
*/
3091+
public static final Key<Value<ShieldItemDamageFunction>> SHIELD_ITEM_DAMAGE_FUNCTION = Keys.key(ResourceKey.sponge("shield_item_damage_function"), ShieldItemDamageFunction.class);
3092+
30523093
/**
30533094
* The shooter of a {@link Projectile}.
30543095
*/
@@ -3537,6 +3578,11 @@ public final class Keys {
35373578
*/
35383579
public static final Key<Value<Color>> WATER_FOG_COLOR = Keys.key(ResourceKey.sponge("water_fog_color"), Color.class);
35393580

3581+
/**
3582+
* The {@link #ITEM_DURABILITY} damage an {@link ItemStack} takes per attack.
3583+
*/
3584+
public static final Key<Value<Integer>> WEAPON_DAMAGE_PER_ATTACK = Keys.key(ResourceKey.sponge("weapon_damage_per_attack"), Integer.class);
3585+
35403586
/**
35413587
* The weather of a {@link ServerWorldProperties}.
35423588
*/
@@ -3668,51 +3714,6 @@ public final class Keys {
36683714
*/
36693715
public static final Key<Value<WorldTypeEffect>> WORLD_TYPE_EFFECT = Keys.key(ResourceKey.sponge("world_type_effect"), WorldTypeEffect.class);
36703716

3671-
/**
3672-
* The {@link #ITEM_DURABILITY} damage an {@link ItemStack} takes per attack.
3673-
*/
3674-
public static final Key<Value<Integer>> WEAPON_DAMAGE_PER_ATTACK = Keys.key(ResourceKey.sponge("weapon_damage_per_attack"), Integer.class);
3675-
3676-
/**
3677-
* The amount of {@link Ticks} this {@link ItemStack} disables blocking with a shield-like {@link ItemStack} on a successful attack.
3678-
*/
3679-
public static final Key<Value<Ticks>> DISABLE_SHIELD_TICKS = Keys.key(ResourceKey.sponge("disable_shield_ticks"), Ticks.class);
3680-
3681-
/**
3682-
* The amount of {@link Ticks} player must use this shield-like {@link ItemStack} for to block attacks successfully.
3683-
*/
3684-
public static final Key<Value<Ticks>> SHIELD_DEPLOY_TICKS = Keys.key(ResourceKey.sponge("shield_deploy_ticks"), Ticks.class);
3685-
3686-
/**
3687-
* The multiplier applied to the cooldown time during which blocking using this shield-like {@link ItemStack} is disabled.
3688-
* If set to 0, this item can never be disabled by attacks.
3689-
*/
3690-
public static final Key<Value<Double>> DISABLE_SHIELD_TICKS_SCALE = Keys.key(ResourceKey.sponge("disable_shield_ticks_scale"), Double.class);
3691-
3692-
/**
3693-
* The amount of attack damage a shield-like {@link ItemStack} reduces for certain {@link DamageType}s
3694-
*/
3695-
public static final Key<ListValue<ShieldDamageReduction>> SHIELD_DAMAGE_REDUCTIONS = Keys.listKey(ResourceKey.sponge("shield_damage_reductions"), ShieldDamageReduction.class);
3696-
3697-
/**
3698-
* Function for the amount of {@link Keys#ITEM_DURABILITY} damage a shield-like {@link ItemStack} takes when blocking an attack.
3699-
*/
3700-
public static final Key<Value<ShieldItemDamageFunction>> SHIELD_ITEM_DAMAGE_FUNCTION = Keys.key(ResourceKey.sponge("shield_item_damage_function"), ShieldItemDamageFunction.class);
3701-
3702-
/**
3703-
* The {@link DamageType} tag that bypasses a shield-like {@link ItemStack}.
3704-
*/
3705-
public static final Key<Value<Tag<DamageType>>> BYPASS_DAMAGE_TAG = Keys.key(ResourceKey.sponge("bypass_damage_tag"), new TypeToken<>() {});
3706-
3707-
/**
3708-
* The sound played when blocking an attack with a shield-like {@link ItemStack}.
3709-
*/
3710-
public static final Key<Value<SoundType>> SHIELD_BLOCK_SOUND = Keys.key(ResourceKey.sponge("shield_block_sound"), SoundType.class);
3711-
3712-
/**
3713-
* The sound played when a shield-like {@link ItemStack} is disabled.
3714-
*/
3715-
public static final Key<Value<SoundType>> SHIELD_DISABLE_SOUND = Keys.key(ResourceKey.sponge("shield_disable_sound"), SoundType.class);
37163717

37173718
// SORTFIELDS:OFF
37183719

0 commit comments

Comments
 (0)