diff --git a/src/main/java/org/spongepowered/api/block/BlockSoundGroup.java b/src/main/java/org/spongepowered/api/block/BlockSoundGroup.java index c3d2c229d5c..85d7965c32d 100644 --- a/src/main/java/org/spongepowered/api/block/BlockSoundGroup.java +++ b/src/main/java/org/spongepowered/api/block/BlockSoundGroup.java @@ -33,16 +33,16 @@ public interface BlockSoundGroup { /** - * Gets the pitch used when playing sounds. + * Gets the volume used when playing sounds. * - * @return The pitch + * @return The volume */ double getVolume(); /** - * Gets the volume used when playing sounds. + * Gets the pitch used when playing sounds. * - * @return The volume + * @return The pitch */ double getPitch(); diff --git a/src/main/java/org/spongepowered/api/boss/BossBarOverlays.java b/src/main/java/org/spongepowered/api/boss/BossBarOverlays.java index 22e5d59c95f..9b7c0c497fd 100644 --- a/src/main/java/org/spongepowered/api/boss/BossBarOverlays.java +++ b/src/main/java/org/spongepowered/api/boss/BossBarOverlays.java @@ -39,7 +39,7 @@ public final class BossBarOverlays { public static final BossBarOverlay NOTCHED_10 = DummyObjectProvider.createFor(BossBarOverlay.class, "NOTCHED_10"); /** - * An overlay with 10 segments. + * An overlay with 12 segments. */ public static final BossBarOverlay NOTCHED_12 = DummyObjectProvider.createFor(BossBarOverlay.class, "NOTCHED_12"); diff --git a/src/main/java/org/spongepowered/api/data/value/mutable/ListValue.java b/src/main/java/org/spongepowered/api/data/value/mutable/ListValue.java index a3f7aab1b2d..6f33bd82a82 100644 --- a/src/main/java/org/spongepowered/api/data/value/mutable/ListValue.java +++ b/src/main/java/org/spongepowered/api/data/value/mutable/ListValue.java @@ -71,7 +71,7 @@ public interface ListValue extends CollectionValue, ListValue, /** * Removes the element at the specified position in this list (optional - * operation). Shifts any subsequent elements to the left, subtracts + * operation). Shifts any subsequent elements to the left, subtracts * one from their indices. * * @param index The index of the element to remove diff --git a/src/main/java/org/spongepowered/api/event/cause/entity/damage/DamageModifierTypes.java b/src/main/java/org/spongepowered/api/event/cause/entity/damage/DamageModifierTypes.java index 77244fab33c..7288b0451e5 100644 --- a/src/main/java/org/spongepowered/api/event/cause/entity/damage/DamageModifierTypes.java +++ b/src/main/java/org/spongepowered/api/event/cause/entity/damage/DamageModifierTypes.java @@ -141,11 +141,20 @@ public final class DamageModifierTypes { */ public static final DamageModifierType SHIELD = DummyObjectProvider.createFor(DamageModifierType.class, "SHIELD"); + /** + * Represents a {@link DamageModifier} that is applied for a sweeping + * attack. + */ + public static final DamageModifierType SWEEPING = DummyObjectProvider.createFor(DamageModifierType.class, "SWEEPING"); + /** * Represents a {@link DamageModifier} that is applied for a sweaping * attack. + * + * @deprecated use {@link #SWEEPING} */ - public static final DamageModifierType SWEAPING = DummyObjectProvider.createFor(DamageModifierType.class, "SWEAPING"); + @Deprecated + public static final DamageModifierType SWEAPING = SWEEPING; /** * Represents the {@link DamageModifier} that will modify damage from diff --git a/src/main/java/org/spongepowered/api/event/item/inventory/InteractItemEvent.java b/src/main/java/org/spongepowered/api/event/item/inventory/InteractItemEvent.java index 196de3bb41b..a42887b2017 100644 --- a/src/main/java/org/spongepowered/api/event/item/inventory/InteractItemEvent.java +++ b/src/main/java/org/spongepowered/api/event/item/inventory/InteractItemEvent.java @@ -26,10 +26,11 @@ import org.spongepowered.api.event.action.InteractEvent; import org.spongepowered.api.event.entity.living.humanoid.HandInteractEvent; +import org.spongepowered.api.item.inventory.ItemStack; import org.spongepowered.api.item.inventory.ItemStackSnapshot; /** - * Base event for all interactions with an @{link ItemStack} in hand. + * Base event for all interactions with an {@link ItemStack} in hand. * *

Note: Canceling this event will halt any future actions from * occuring.

diff --git a/src/main/java/org/spongepowered/api/extra/fluid/data/property/FluidViscosityProperty.java b/src/main/java/org/spongepowered/api/extra/fluid/data/property/FluidViscosityProperty.java index f456294300c..dcde98e90ff 100644 --- a/src/main/java/org/spongepowered/api/extra/fluid/data/property/FluidViscosityProperty.java +++ b/src/main/java/org/spongepowered/api/extra/fluid/data/property/FluidViscosityProperty.java @@ -45,7 +45,7 @@ public class FluidViscosityProperty extends IntProperty { */ public FluidViscosityProperty(int value) { super(value); - checkArgument(value >= 0, "Temperature of a fluid cannot be less than zero!"); + checkArgument(value >= 0, "Viscosity of a fluid cannot be less than zero!"); } /** diff --git a/src/main/java/org/spongepowered/api/item/inventory/Inventory.java b/src/main/java/org/spongepowered/api/item/inventory/Inventory.java index 9ad33828a8b..dbf2b324538 100644 --- a/src/main/java/org/spongepowered/api/item/inventory/Inventory.java +++ b/src/main/java/org/spongepowered/api/item/inventory/Inventory.java @@ -95,7 +95,7 @@ static Inventory.Builder builder() { /** * Return the next sibling inventory, allows traversing the inventory - * hierarchy without using an iterator. If no more children, returns an + * hierarchy without using an iterator. If no more siblings, returns an * {@link EmptyInventory}. * * @param expected inventory type, specified as generic to allow easy diff --git a/src/main/java/org/spongepowered/api/scoreboard/objective/Objective.java b/src/main/java/org/spongepowered/api/scoreboard/objective/Objective.java index 3760642b703..a254b32aae2 100644 --- a/src/main/java/org/spongepowered/api/scoreboard/objective/Objective.java +++ b/src/main/java/org/spongepowered/api/scoreboard/objective/Objective.java @@ -152,7 +152,7 @@ default Optional getScore(Text name) { boolean removeScore(Score score); /** - * Removes the {@link Score} with the specified name from this objectie, if present. + * Removes the {@link Score} with the specified name from this objective, if present. * * @param name The name of the {@link Score} to remove. * @return Whether the score existed on this objective diff --git a/src/main/java/org/spongepowered/api/world/BlockChangeFlag.java b/src/main/java/org/spongepowered/api/world/BlockChangeFlag.java index 45dca7f5e6b..998d41e599e 100644 --- a/src/main/java/org/spongepowered/api/world/BlockChangeFlag.java +++ b/src/main/java/org/spongepowered/api/world/BlockChangeFlag.java @@ -28,7 +28,7 @@ /** * A flag of sorts that determines whether a block change will perform various - * interactions, such as notifying neighboring blocks, performing block phsyics + * interactions, such as notifying neighboring blocks, performing block physics * on placement, etc. */ public enum BlockChangeFlag {