Skip to content

Commit b201f14

Browse files
octo-byteZidane
authored andcommitted
Fixes JavaDoc issues highlighted in #1000; removes DataSerializable from ItemStack
DataHolder already extends DataSerializable.
1 parent 9e7975e commit b201f14

File tree

18 files changed

+109
-23
lines changed

18 files changed

+109
-23
lines changed

src/main/java/org/spongepowered/api/command/args/GenericArguments.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ public static CommandFlags.Builder flags() {
252252
}
253253

254254
/**
255-
* Consumes a series of arguments. Usage is the elements concated
255+
* Consumes a series of arguments. Usage is the elements concencated
256256
*
257257
* @param elements The series of arguments to expect
258258
* @return the element to match the input
@@ -1287,7 +1287,7 @@ private double parseRelativeDouble(CommandArgs args, String arg, @Nullable Doubl
12871287
boolean relative = arg.startsWith("~");
12881288
if (relative) {
12891289
if (relativeTo == null) {
1290-
throw args.createError(t("Relative position specified but source does not have a postion"));
1290+
throw args.createError(t("Relative position specified but source does not have a position"));
12911291
}
12921292
arg = arg.substring(1);
12931293
if (arg.isEmpty()) {

src/main/java/org/spongepowered/api/command/spec/CommandSpec.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ public CommandExecutor getExecutor() {
334334
}
335335

336336
/**
337-
* Gets the active input tokenizer used for this commmand.
337+
* Gets the active input tokenizer used for this command.
338338
*
339339
* @return This command's input tokenizer
340340
*/

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
/**
3030
* Represents an object that can be represented by a {@link DataContainer}.
3131
* <p>DataContainers received from {@link DataSerializable#toContainer()}
32-
* should be considered to be copies of the original data, and therefor,
32+
* should be considered to be copies of the original data, and therefore,
3333
* thread safe.</p>
3434
*/
3535
public interface DataSerializable {
@@ -38,7 +38,7 @@ public interface DataSerializable {
3838
* Gets the content version of this {@link DataSerializable}. The version
3939
* may differ between instances of plugins and implementations such that
4040
* the {@link DataView} from {@link #toContainer()} may include different
41-
* information, or remove other information as they are no longer deemend
41+
* information, or remove other information as they are no longer deemed
4242
* necessary. The version goes hand in hand with {@link DataContentUpdater}
4343
* as it is required when there exists any {@link DataView} of this
4444
* {@link DataSerializable} with an "older" version.

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,6 @@ public final class Keys {
379379

380380
public static final Key<Value<Fish>> FISH_TYPE = KeyFactory.fake("FISH_TYPE");
381381

382-
/**
383382
/**
384383
* Represents the {@link Key} for representing the
385384
* {@link FluidStackSnapshot} contained within an item container. Item

src/main/java/org/spongepowered/api/effect/potion/PotionEffectTypes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import org.spongepowered.api.util.generator.dummy.DummyObjectProvider;
2828

2929
/**
30-
* An enumaration of all possible {@link PotionEffectType}s in vanilla minecraft.
30+
* An enumeration of all possible {@link PotionEffectType}s in vanilla Minecraft.
3131
*/
3232
public final class PotionEffectTypes {
3333

src/main/java/org/spongepowered/api/event/server/query/QueryServerEvent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ interface Full extends Basic {
229229
* Gets the map of custom keys and values to respond with.
230230
*
231231
* <p>If settings any of the keys or values causes the message
232-
* to go oer the maximum size, the message will be automatically
232+
* to go over the maximum size, the message will be automatically
233233
* truncated.</p>
234234
*
235235
* @return The map of custom keys and values to respond with

src/main/java/org/spongepowered/api/item/inventory/ItemStack.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
import org.spongepowered.api.block.BlockType;
3434
import org.spongepowered.api.block.tileentity.TileEntity;
3535
import org.spongepowered.api.data.DataHolder;
36-
import org.spongepowered.api.data.DataSerializable;
3736
import org.spongepowered.api.data.DataView;
3837
import org.spongepowered.api.data.key.Key;
3938
import org.spongepowered.api.data.manipulator.DataManipulator;
@@ -53,11 +52,11 @@
5352
* Represents a stack of a specific {@link ItemType}. Supports serialization and
5453
* can be compared using the comparators listed in {@link ItemStackComparators}.
5554
*
56-
* <p>{@link ItemStack}s have varying properties and data, it is adviseable to
57-
* use {@link DataHolder#get(Class)} to retrieve different information
58-
* regarding this item stack.</p>
55+
* <p>{@link ItemStack}s have a variety of properties and data. It is advised to
56+
* use {@link DataHolder#get(Class)} in order to retrieve information regarding
57+
* this item stack.</p>
5958
*/
60-
public interface ItemStack extends DataHolder, DataSerializable, Translatable {
59+
public interface ItemStack extends DataHolder, Translatable {
6160

6261
/**
6362
* Creates a new {@link Builder} to build an {@link ItemStack}.

src/main/java/org/spongepowered/api/item/inventory/equipment/EquipmentTypes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public final class EquipmentTypes {
3434
// SORTFIELDS:ON
3535

3636
/**
37-
* Any type, all other types should sublass this to allow instanceof checks
37+
* Any type, all other types should subclass this to allow instanceof checks
3838
* to succeed.
3939
*/
4040
public static final EquipmentType ANY = DummyObjectProvider.createFor(EquipmentType.class, "ANY");

src/main/java/org/spongepowered/api/item/inventory/property/AcceptsItems.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public int compareTo(Property<?, ?> other) {
8282

8383
/**
8484
* Returns true if <em>other</em> is also an {@link AcceptsItems} property
85-
* and <b>any</b> item appearing in the other property's collecion appears
85+
* and <b>any</b> item appearing in the other property's collection appears
8686
* in this property's collection. In formal terms, the method returns true
8787
* if the size of the intersection between the two item type collections is
8888
* greater than zero.

src/main/java/org/spongepowered/api/item/inventory/type/TileEntityInventory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* at liberty to return the TE object directly but as far as consumers are
3939
* concerned the TE instance and the inventory are separate things.
4040
*
41-
* <p>This is intented to provide a consistent way of dealing with inventories
41+
* <p>This is intended to provide a consistent way of dealing with inventories
4242
* regardless of the "owner" of the inventory. Thus, any code capable of dealing
4343
* with a {@link Carrier} is intrinsically able to deal with a TE inventory just
4444
* as they would with any Entity inventory or any other type of Carrier for that

0 commit comments

Comments
 (0)