Skip to content

Commit b70499c

Browse files
committed
[#1000]: Fix minor issues
1 parent 847fcde commit b70499c

File tree

22 files changed

+78
-64
lines changed

22 files changed

+78
-64
lines changed

src/main/java/org/spongepowered/api/GameRegistry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ <T extends CatalogType> GameRegistry registerModule(Class<T> catalogClass, Catal
418418
/**
419419
* Gets a locale for the specified locale code, e.g. {@code en_US}.
420420
*
421-
* @param locale The locale to lookup (e.g. {@code en_US}.
421+
* @param locale The locale to lookup (e.g. {@code en_US}).
422422
* @return The locale
423423
*/
424424
Locale getLocale(String locale);

src/main/java/org/spongepowered/api/Server.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ public interface Server {
273273
* Gets the 'server' scoreboard. In Vanilla, this is the scoreboard of
274274
* dimension 0 (the overworld).
275275
*
276-
* <p>The sever scoreboard is used with the Vanilla /scoreboard command,
276+
* <p>The server scoreboard is used with the Vanilla /scoreboard command,
277277
* automatic score updating through criteria, and other things.</p>
278278
*
279279
* <p>The server scoreboard may not be available if dimension 0
@@ -356,8 +356,8 @@ public interface Server {
356356
Text getMotd();
357357

358358
/**
359-
* Shuts down the server, and kicks all players with the default kic
360-
* k message.
359+
* Shuts down the server, and kicks all players with the default kick
360+
* message.
361361
*
362362
* <p>For the Sponge implementation on the client, this will trigger the
363363
* Integrated Server to shutdown a tick later.</p>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ public Builder reject(final Iterable<ImmutableValue<?>> values) {
497497

498498
/**
499499
* Adds the provided {@link ImmutableValue} to the {@link List} of
500-
* "successful" {@link ImmutableValue}s. The rejected values are always
500+
* "successful" {@link ImmutableValue}s. The successful values are always
501501
* copied for every {@link DataTransactionResult} for referencing. It is
502502
* also possible to retrieve these successful {@link ImmutableValue}s to
503503
* {@link DataHolder#undo(DataTransactionResult)} at a later point in

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2239,7 +2239,7 @@ public final class Keys {
22392239
* entities or collide with other entities.</p>
22402240
*
22412241
* <p>Vanishing an {@link Entity} ridden by other entities (see
2242-
* {@link #PASSENGERS} will cause problems.</p>
2242+
* {@link #PASSENGERS}) will cause problems.</p>
22432243
*
22442244
* @see Keys#VANISH
22452245
*/

src/main/java/org/spongepowered/api/data/manipulator/mutable/block/PortionData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
/**
3434
* An {@link VariantData} for the {@link PortionType}. This has some mechanics
3535
* with the partial bounding boxes for the actual blocks. Usually applicable
36-
* to {@link BlockTypes#DOUBLE_PLANT}, {@link BlockTypes#STONE_SLAB}
36+
* to {@link BlockTypes#DOUBLE_PLANT}, {@link BlockTypes#STONE_SLAB},
3737
* {@link BlockTypes#WOODEN_DOOR}s, etc.
3838
*
3939
* @see Keys#PORTION_TYPE

src/main/java/org/spongepowered/api/data/property/LocationBasePropertyHolder.java

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ public interface LocationBasePropertyHolder {
3838
* specific location. If the property is not applicable,
3939
* {@link Optional#empty()} is returned.
4040
*
41-
* <p>{@link Property}s can define various immutable information about a
42-
* {@link PropertyHolder} that is dependent on the instance of the holder.
43-
* As {@link Property}s cannot be changed, the {@link PropertyHolder} can
44-
* not change the information about it's own properties either.</p>
41+
* <p>{@link Property properties} can define various immutable information
42+
* about a {@link PropertyHolder} that is dependent on the instance of the
43+
* holder. As {@link Property properties} cannot be changed, the
44+
* {@link PropertyHolder} can not change the information about its own
45+
* properties either.</p>
4546
*
4647
* @param coords The coordinates
4748
* @param propertyClass The property class
@@ -57,10 +58,11 @@ public interface LocationBasePropertyHolder {
5758
* {@link PropertyHolder}. If the property is not applicable,
5859
* {@link Optional#empty()} is returned.
5960
*
60-
* <p>{@link Property}s can define various immutable information about a
61-
* {@link PropertyHolder} that is dependent on the instance of the holder.
62-
* As {@link Property}s cannot be changed, the {@link PropertyHolder} can
63-
* not change the information about it's own properties either.</p>
61+
* <p>{@link Property properties} can define various immutable information
62+
* about a {@link PropertyHolder} that is dependent on the instance of the
63+
* holder. As {@link Property properties} cannot be changed, the
64+
* {@link PropertyHolder} can not change the information about it's own
65+
* properties either.</p>
6466
*
6567
* @param x The x coordinate
6668
* @param y The y coordinate
@@ -76,10 +78,11 @@ public interface LocationBasePropertyHolder {
7678
* specific location on the given block face. If the property is not
7779
* applicable, {@link Optional#empty()} is returned.
7880
*
79-
* <p>{@link Property}s can define various immutable information about a
80-
* {@link PropertyHolder} that is dependent on the instance of the holder.
81-
* As {@link Property}s cannot be changed, the {@link PropertyHolder} can
82-
* not change the information about it's own properties either.</p>
81+
* <p>{@link Property properties} can define various immutable information
82+
* about a {@link PropertyHolder} that is dependent on the instance of the
83+
* holder. As {@link Property properties} cannot be changed, the
84+
* {@link PropertyHolder} can not change the information about it's own
85+
* properties either.</p>
8386
*
8487
* @param coords The coordinates
8588
* @param direction The face of the block
@@ -96,10 +99,11 @@ public interface LocationBasePropertyHolder {
9699
* specific location on the given block face. If the property is not
97100
* applicable, {@link Optional#empty()} is returned.
98101
*
99-
* <p>{@link Property}s can define various immutable information about a
100-
* {@link PropertyHolder} that is dependent on the instance of the holder.
101-
* As {@link Property}s cannot be changed, the {@link PropertyHolder} can
102-
* not change the information about it's own properties either.</p>
102+
* <p>{@link Property properties} can define various immutable information
103+
* about a {@link PropertyHolder} that is dependent on the instance of the
104+
* holder. As {@link Property properties} cannot be changed, the
105+
* {@link PropertyHolder} can not change the information about it's own
106+
* properties either.</p>
103107
*
104108
* @param x The x coordinate
105109
* @param y The y coordinate
@@ -115,11 +119,11 @@ public interface LocationBasePropertyHolder {
115119
* Gets an immutable collection of all known {@link Property}s pertaining to
116120
* this {@link PropertyHolder}.
117121
*
118-
* <p>{@link Property}s can not be changed such that the property is
119-
* attached to the instance of the residing {@link PropertyHolder}.</p>
122+
* <p>{@link Property properties} can not be changed such that the property
123+
* is attached to the instance of the residing {@link PropertyHolder}.</p>
120124
*
121125
* @param coords The coordinates
122-
* @return An immutable collection of all known {@link Property}s
126+
* @return An immutable collection of all known {@link Property properties}
123127
*/
124128
default Collection<Property<?, ?>> getProperties(Vector3i coords) {
125129
return getProperties(coords.getX(), coords.getY(), coords.getZ());
@@ -129,8 +133,8 @@ public interface LocationBasePropertyHolder {
129133
* Gets an immutable collection of all known {@link Property}s pertaining to
130134
* this {@link PropertyHolder}.
131135
*
132-
* <p>{@link Property}s can not be changed such that the property is
133-
* attached to the instance of the residing {@link PropertyHolder}.</p>
136+
* <p>{@link Property properties} can not be changed such that the property
137+
* is attached to the instance of the residing {@link PropertyHolder}.</p>
134138
*
135139
* @param x The x coordinate
136140
* @param y The y coordinate

src/main/java/org/spongepowered/api/data/property/PropertyHolder.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ public interface PropertyHolder {
3636
* {@link PropertyHolder}. If the property is not applicable,
3737
* {@link Optional#empty()} is returned.
3838
*
39-
* <p>{@link Property}s can define various immutable information about a
40-
* {@link PropertyHolder} that is dependent on the instance of the holder.
41-
* As {@link Property}s cannot be changed, the {@link PropertyHolder} can
42-
* not change the information about it's own properties either.</p>
39+
* <p>{@link Property properties} can define various immutable information
40+
* about a {@link PropertyHolder} that is dependent on the instance of the
41+
* holder. As {@link Property properties} cannot be changed, the
42+
* {@link PropertyHolder} can not change the information about its own
43+
* properties either.</p>
4344
*
4445
* @param propertyClass The property class
4546
* @param <T> The type of property
@@ -51,10 +52,10 @@ public interface PropertyHolder {
5152
* Gets an immutable collection of all known {@link Property}s pertaining
5253
* to this {@link PropertyHolder}.
5354
*
54-
* <p>{@link Property}s can not be changed such that the property is
55-
* attached to the instance of the residing {@link PropertyHolder}.</p>
55+
* <p>{@link Property properties} can not be changed such that the property
56+
* is attached to the instance of the residing {@link PropertyHolder}.</p>
5657
*
57-
* @return An immutable collection of all known {@link Property}s
58+
* @return An immutable collection of all known {@link Property properties}
5859
*/
5960
Collection<Property<?, ?>> getApplicableProperties();
6061

src/main/java/org/spongepowered/api/data/property/block/ReplaceableProperty.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
/**
3030
* Gets if a block type can be replaced by other block types when other
3131
* blocks are being placed. In short, the case where the value is
32-
* <code>true</code>,
32+
* <code>true</code>, it can be replaced.
3333
*/
3434
public class ReplaceableProperty extends BooleanProperty {
3535

@@ -46,8 +46,8 @@ public ReplaceableProperty(boolean value) {
4646
/**
4747
* Creates a new {@link ReplaceableProperty} with the provided
4848
* {@code value} and
49-
* {@link org.spongepowered.api.data.Property.Operator operator} for
50-
* comparisons.
49+
* {@link org.spongepowered.api.data.Property.Operator operator}
50+
* for comparisons.
5151
*
5252
* @param value The value
5353
* @param operator The operator

src/main/java/org/spongepowered/api/data/value/BoundedValue.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public interface BoundedValue<E> extends BaseValue<E> {
4444
/**
4545
* Gets the required "minimum" value such that the value is only valid if
4646
* the following is true:
47-
* <pre>{@code if (getComparator().compare(getValue(), getMinValue()) <= 0)
47+
* <pre>{@code if (getComparator().compare(getValue(), getMinValue()) >= 0)
4848
* }</pre>.
4949
*
5050
* @return The supposed minimum value
@@ -54,7 +54,7 @@ public interface BoundedValue<E> extends BaseValue<E> {
5454
/**
5555
* Gets the required "maximum" value such that the value is only valid if
5656
* the following is true:
57-
* <pre>{@code if (getComparator().compare(getValue(), getMaxValue()) >= 0)
57+
* <pre>{@code if (getComparator().compare(getValue(), getMaxValue()) <= 0)
5858
* }</pre>.
5959
*
6060
* @return The supposed maximum value

src/main/java/org/spongepowered/api/entity/Entity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ default boolean transferToWorld(UUID uuid, Vector3d position) {
381381
boolean hasPassenger(Entity entity);
382382

383383
/**
384-
* Sets the passenger entity(the entity that rides this one).
384+
* Sets the passenger entity (the entity that rides this one).
385385
*
386386
* @param entity The entity passenger, or null to eject
387387
* @return If adding the passenger succeeded
@@ -408,7 +408,7 @@ default boolean transferToWorld(UUID uuid, Vector3d position) {
408408
Optional<Entity> getVehicle();
409409

410410
/**
411-
* Sets the vehicle entity(the entity that is ridden by this one).
411+
* Sets the vehicle entity (the entity that is ridden by this one).
412412
*
413413
* @param entity The entity vehicle, or null to dismount
414414
* @return True if the set was successful

0 commit comments

Comments
 (0)