Begin implementation of CheckStyle style checking

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2019-04-23 14:00:20 +10:00
parent 30a442aef7
commit c240b58f66
88 changed files with 246 additions and 192 deletions

View File

@@ -3,7 +3,7 @@ package org.bukkit.entity;
/**
* Represents an entity that can age and breed.
*/
public interface Ageable extends Creature {
public interface Ageable extends Creature {
/**
* Gets the age of this animal.
*
@@ -49,7 +49,7 @@ public interface Ageable extends Creature {
* @return return true if the animal is an adult
*/
public boolean isAdult();
/**
* Return the ability to breed of the animal.
*

View File

@@ -226,7 +226,7 @@ public interface AreaEffectCloud extends Entity {
/**
* Retrieve the original source of this cloud.
*
*
* @return the {@link ProjectileSource} that threw the LingeringPotion
*/
@Nullable

View File

@@ -10,7 +10,7 @@ public interface Boat extends Vehicle {
/**
* Gets the wood type of the boat.
*
*
* @return the wood type
*/
@NotNull
@@ -18,7 +18,7 @@ public interface Boat extends Vehicle {
/**
* Sets the wood type of the boat.
*
*
* @param species the new wood type
*/
void setWoodType(@NotNull TreeSpecies species);

View File

@@ -20,8 +20,8 @@ public interface Creeper extends Monster {
public void setPowered(boolean value);
/**
* Set the maximum fuse ticks for this Creeper, where the maximum ticks
* is the amount of time in which a creeper is allowed to be in the
* Set the maximum fuse ticks for this Creeper, where the maximum ticks
* is the amount of time in which a creeper is allowed to be in the
* primed state before exploding.
*
* @param ticks the new maximum fuse ticks
@@ -29,8 +29,8 @@ public interface Creeper extends Monster {
public void setMaxFuseTicks(int ticks);
/**
* Get the maximum fuse ticks for this Creeper, where the maximum ticks
* is the amount of time in which a creeper is allowed to be in the
* Get the maximum fuse ticks for this Creeper, where the maximum ticks
* is the amount of time in which a creeper is allowed to be in the
* primed state before exploding.
*
* @return the maximum fuse ticks

View File

@@ -41,8 +41,8 @@ public interface EnderDragon extends ComplexLivingEntity, Boss {
BREATH_ATTACK,
/**
* The dragon will search for a player to attack with dragon breath.
* If no player is close enough to the dragon for 5 seconds, the
* dragon will charge at a player within 150 blocks or will take off
* If no player is close enough to the dragon for 5 seconds, the
* dragon will charge at a player within 150 blocks or will take off
* and begin circling if no player is found.
*/
SEARCH_FOR_BREATH_ATTACK_TARGET,

View File

@@ -350,7 +350,7 @@ public enum EntityType implements Keyed {
/**
*
* @return the raw type id
* @return the raw type id
* @deprecated Magic value
*/
@Deprecated

View File

@@ -4,5 +4,5 @@ package org.bukkit.entity;
* A mechanical creature that may harm enemies.
*/
public interface Golem extends Creature {
}

View File

@@ -4,7 +4,7 @@ public interface Guardian extends Monster {
/**
* Check if the Guardian is an elder Guardian
*
*
* @return true if the Guardian is an Elder Guardian, false if not
* @deprecated should check if instance of {@link ElderGuardian}.
*/

View File

@@ -139,7 +139,7 @@ public interface Minecart extends Vehicle {
/**
* Gets the offset of the display block.
*
*
* @return the current block offset for this minecart.
*/
public int getDisplayBlockOffset();

View File

@@ -8,14 +8,14 @@ public interface SpectralArrow extends Arrow {
/**
* Returns the amount of time that this arrow will apply
* the glowing effect for.
*
*
* @return the glowing effect ticks
*/
int getGlowingTicks();
/**
* Sets the amount of time to apply the glowing effect for.
*
*
* @param duration the glowing effect ticks
*/
void setGlowingTicks(int duration);

View File

@@ -10,16 +10,16 @@ import org.bukkit.loot.Lootable;
public interface HopperMinecart extends Minecart, InventoryHolder, Lootable {
/**
* Checks whether or not this Minecart will pick up
* Checks whether or not this Minecart will pick up
* items into its inventory.
*
*
* @return true if the Minecart will pick up items
*/
boolean isEnabled();
/**
* Sets whether this Minecart will pick up items.
*
*
* @param enabled new enabled state
*/
void setEnabled(boolean enabled);