Skip to content

Commit

Permalink
Fix some OCD issues
Browse files Browse the repository at this point in the history
ref #1000
  • Loading branch information
kashike committed Oct 1, 2017
1 parent 6cb5c97 commit f9d00ec
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public interface ListValue<E> extends CollectionValue<E, List<E>, ListValue<E>,

/**
* 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
* <p>Note: Canceling this event will halt any future actions from
* occuring.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <T> expected inventory type, specified as generic to allow easy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ default Optional<Score> 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f9d00ec

Please sign in to comment.