Whitespace + general cleanup

By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
Bukkit/Spigot
2011-05-14 23:22:54 +02:00
parent 8217ff1836
commit 855f4133b6
216 changed files with 1649 additions and 1637 deletions

View File

@@ -1,5 +1,3 @@
package org.bukkit.entity;
public interface AnimalTamer {
}
public interface AnimalTamer {}

View File

@@ -2,10 +2,8 @@ package org.bukkit.entity;
/**
* Represents an Animal.
*
*
* @author Cogito
*
*/
public interface Animals extends Creature{
}
public interface Animals extends Creature {}

View File

@@ -2,8 +2,7 @@ package org.bukkit.entity;
/**
* Represents an arrow.
*
*
* @author sk89q
*/
public interface Arrow extends Entity {
}
public interface Arrow extends Entity {}

View File

@@ -2,10 +2,11 @@ package org.bukkit.entity;
/**
* Represents a boat entity.
*
*
* @author sk89q
*/
public interface Boat extends Vehicle {
/**
* Gets the maximum speed of a boat. The speed is unrelated to the velocity.
*

View File

@@ -1,14 +1,12 @@
/**
*
*
*/
package org.bukkit.entity;
/**
* Represents a Chicken.
*
*
* @author Cogito
*
*/
public interface Chicken extends Animals {
}
public interface Chicken extends Animals {}

View File

@@ -1,14 +1,12 @@
/**
*
*
*/
package org.bukkit.entity;
/**
* Represents a Cow.
*
*
* @author Cogito
*
*/
public interface Cow extends Animals {
}
public interface Cow extends Animals {}

View File

@@ -5,6 +5,7 @@ package org.bukkit.entity;
* have very simple abilities.
*/
public interface Creature extends LivingEntity {
/**
* Instructs this Creature to set the specified LivingEntity as its target.
* Hostile creatures may attack their target, and friendly creatures may

View File

@@ -1,10 +1,10 @@
package org.bukkit.entity;
/**
* Represents a Creeper
*/
public interface Creeper extends Monster {
/**
* Checks if this Creeper is powered (Electrocuted)
*

View File

@@ -2,8 +2,7 @@ package org.bukkit.entity;
/**
* Represents an egg.
*
*
* @author sk89q
*/
public interface Egg extends Entity {
}
public interface Egg extends Entity {}

View File

@@ -1,4 +1,3 @@
package org.bukkit.entity;
import org.bukkit.Location;
@@ -12,6 +11,7 @@ import java.util.List;
* Represents a base entity in the world
*/
public interface Entity {
/**
* Gets the entity's current position
*
@@ -109,7 +109,7 @@ public interface Entity {
* @param ticks
*/
public void setFireTicks(int ticks);
/**
* Mark the entity's removal.
*/
@@ -130,14 +130,14 @@ public interface Entity {
/**
* Gets the primary passenger of a vehicle. For vehicles that could have
* multiple passengers, this will only return the primary passenger.
*
*
* @return an entity
*/
public abstract Entity getPassenger();
/**
* Set the passenger of a vehicle.
*
*
* @param passenger
* @return false if it could not be done for whatever reason
*/
@@ -145,27 +145,27 @@ public interface Entity {
/**
* Returns true if the vehicle has no passengers.
*
*
* @return
*/
public abstract boolean isEmpty();
/**
* Eject any passenger. True if there was a passenger.
*
*
* @return
*/
public abstract boolean eject();
/**
* Returns the distance this entity has fallen
* @return
* @return
*/
public float getFallDistance();
/**
* Sets the fall distance for this entity
* @param distance
* @param distance
*/
public void setFallDistance(float distance);

View File

@@ -1,14 +1,12 @@
/**
*
*
*/
package org.bukkit.entity;
/**
* Represents Falling Sand.
*
*
* @author Cogito
*
*/
public interface FallingSand extends Entity {
}
public interface FallingSand extends Entity {}

View File

@@ -2,8 +2,7 @@ package org.bukkit.entity;
/**
* Represents a Fireball.
*
*
* @author Cogito
*/
public interface Fireball extends Entity {
}
public interface Fireball extends Entity {}

View File

@@ -2,8 +2,7 @@ package org.bukkit.entity;
/**
* Represents a Fish.
*
*
* @author Cogito
*/
public interface Fish extends Entity {
}
public interface Fish extends Entity {}

View File

@@ -1,14 +1,12 @@
/**
*
*
*/
package org.bukkit.entity;
/**
* Represents a Flying Entity.
*
*
* @author Cogito
*
*/
public interface Flying extends LivingEntity {
}
public interface Flying extends LivingEntity {}

View File

@@ -1,14 +1,12 @@
/**
*
*
*/
package org.bukkit.entity;
/**
* Represents a Ghast.
*
*
* @author Cogito
*
*/
public interface Ghast extends Flying {
}
public interface Ghast extends Flying {}

View File

@@ -1,14 +1,12 @@
/**
*
*
*/
package org.bukkit.entity;
/**
* Represents a Giant.
*
*
* @author Cogito
*
*/
public interface Giant extends Monster {
}
public interface Giant extends Monster {}

View File

@@ -1,4 +1,3 @@
package org.bukkit.entity;
import org.bukkit.inventory.ItemStack;
@@ -8,6 +7,7 @@ import org.bukkit.inventory.PlayerInventory;
* Represents a human entity, such as an NPC or a player
*/
public interface HumanEntity extends LivingEntity, AnimalTamer {
/**
* Returns the name of this player
*
@@ -43,19 +43,19 @@ public interface HumanEntity extends LivingEntity, AnimalTamer {
*
* @param index The new index to use, only valid ones are 0-8.
*
public void selectItemInHand( int index );
*/
public void selectItemInHand(int index);
*/
/**
* Returns whether this player is slumbering.
*
*
* @return slumber state
*/
public boolean isSleeping();
/**
* Get the sleep ticks of the player. This value may be capped.
*
*
* @return slumber ticks
*/
public int getSleepTicks();

View File

@@ -4,7 +4,7 @@ import org.bukkit.inventory.ItemStack;
/**
* Represents an Item.
*
*
* @author Cogito
*
*/
@@ -12,15 +12,15 @@ public interface Item extends Entity {
/**
* Gets the item stack associated with this item drop.
*
*
* @return
*/
public ItemStack getItemStack();
/**
* Sets the item stack associated with this item drop.
*
* @param stack
*
* @param stack
*/
public void setItemStack(ItemStack stack);
}

View File

@@ -1,18 +1,17 @@
package org.bukkit.entity;
/**
* Represents an instance of a lightning strike. May or may not do damage.
*
*
* @author sk89q
*/
public interface LightningStrike extends Weather {
/**
* Returns whether the strike is an effect that does no damage.
*
*
* @return whether the strike is an effect
*/
public boolean isEffect();
}

View File

@@ -1,4 +1,3 @@
package org.bukkit.entity;
import java.util.HashSet;
@@ -11,6 +10,7 @@ import org.bukkit.block.Block;
* Represents a living entity, such as a monster or player
*/
public interface LivingEntity extends Entity {
/**
* Gets the entity's health from 0-20, where 0 is dead and 20 is full
*
@@ -57,7 +57,7 @@ public interface LivingEntity extends Entity {
*/
public List<Block> getLineOfSight(HashSet<Byte> transparent, int maxDistance);
/**
/**
* Gets the block that the player has targeted
*
* @param HashSet<Byte> HashSet containing all transparent block IDs. If set to null only air is considered transparent.
@@ -66,7 +66,7 @@ public interface LivingEntity extends Entity {
*/
public Block getTargetBlock(HashSet<Byte> transparent, int maxDistance);
/**
/**
* Gets the last two blocks along the player's line of sight.
* The target block will be the last block in the list.
*
@@ -164,14 +164,14 @@ public interface LivingEntity extends Entity {
* Returns the entities current maximum noDamageTicks
* This is the time in ticks the entity will become unable to take
* equal or less damage than the lastDamage
*
*
* @return noDamageTicks
*/
public int getMaximumNoDamageTicks();
/**
* Sets the entities current maximum noDamageTicks
*
*
* @param ticks maximumNoDamageTicks
*/
public void setMaximumNoDamageTicks(int ticks);
@@ -179,31 +179,30 @@ public interface LivingEntity extends Entity {
/**
* Returns the entities lastDamage taken in the current noDamageTicks time.
* Only damage higher than this amount will further damage the entity.
*
*
* @return lastDamage
*/
public int getLastDamage();
/**
* Sets the entities current maximum noDamageTicks
*
*
* @param damage last damage
*/
public void setLastDamage(int damage);
/**
* Returns the entities current noDamageTicks
*
*
* @return noDamageTicks
*/
public int getNoDamageTicks();
/**
* Sets the entities current noDamageTicks
*
*
* @param ticks NoDamageTicks
*/
public void setNoDamageTicks(int ticks);
}

View File

@@ -4,20 +4,21 @@ import org.bukkit.util.Vector;
/**
* Represents a minecart entity.
*
*
* @author sk89q
*/
public interface Minecart extends Vehicle {
/**
* Sets a minecart's damage.
*
*
* @param damage over 40 to "kill" a minecart
*/
public void setDamage(int damage);
/**
* Gets a minecart's damage.
*
*
* @param damage
*/
public int getDamage();

View File

@@ -1,14 +1,12 @@
/**
*
*
*/
package org.bukkit.entity;
/**
* Represents a Monster.
*
*
* @author Cogito
*
*/
public interface Monster extends Creature {
}
public interface Monster extends Creature {}

View File

@@ -1,14 +1,12 @@
/**
*
*
*/
package org.bukkit.entity;
/**
* Represents a Painting.
*
*
* @author Cogito
*
*/
public interface Painting extends Entity {
}
public interface Painting extends Entity {}

View File

@@ -2,17 +2,18 @@ package org.bukkit.entity;
/**
* Represents a Pig.
*
*
* @author Cogito
*
*/
public interface Pig extends Animals {
/**
* @author xPaw
* @return if the pig has been saddled.
*/
public boolean hasSaddle();
/**
* @author xPaw
* @param saddled set if the pig has a saddle or not.

View File

@@ -1,14 +1,12 @@
/**
*
*
*/
package org.bukkit.entity;
/**
* Represents a Pig Zombie.
*
*
* @author Cogito
*
*/
public interface PigZombie extends Zombie {
}
public interface PigZombie extends Zombie {}

View File

@@ -1,4 +1,3 @@
package org.bukkit.entity;
import java.net.InetSocketAddress;
@@ -13,6 +12,7 @@ import org.bukkit.command.CommandSender;
*
*/
public interface Player extends HumanEntity, CommandSender {
/**
* Checks if this player is currently online
*
@@ -59,7 +59,7 @@ public interface Player extends HumanEntity, CommandSender {
* @return the player's address
*/
public InetSocketAddress getAddress();
/**
* Sends this sender a message raw
*
@@ -112,53 +112,53 @@ public interface Player extends HumanEntity, CommandSender {
* Note: This will overwrite the players current inventory, health, motion, etc, with the state from the saved dat file.
*/
public void loadData();
/**
* Sets whether the player is ignored as not sleeping. If everyone is
* either sleeping or has this flag set, then time will advance to the
* next day. If everyone has this flag set but no one is actually in bed,
* then nothing will happen.
*
*
* @param isSleeping
*/
public void setSleepingIgnored(boolean isSleeping);
/**
* Returns whether the player is sleeping ignored.
*
*
* @return
*/
public boolean isSleepingIgnored();
/**
* Play a note for a player at a location. This requires a note block
* at the particular location (as far as the client is concerned). This
* will not work without a note block. This will not work with cake.
*
*
* @param loc
* @param instrument
* @param note
* @return
*/
public void playNote(Location loc, byte instrument, byte note);
/**
* Send a block change. This fakes a block change packet for a user at
* a certain location. This will not actually change the world in any way.
*
*
* @param loc
* @param material
* @param data
* @param data
*/
public void sendBlockChange(Location loc, Material material, byte data);
/**
* Send a block change. This fakes a block change packet for a user at
* a certain location. This will not actually change the world in any way.
*
*
* @param loc
* @param material
* @param data
* @param data
*/
public void sendBlockChange(Location loc, int material, byte data);

View File

@@ -2,9 +2,7 @@ package org.bukkit.entity;
/**
* Represents a powered minecart.
*
*
* @author sk89q
*/
public interface PoweredMinecart extends Minecart {
}
public interface PoweredMinecart extends Minecart {}

View File

@@ -1,21 +1,24 @@
/**
*
*
*/
package org.bukkit.entity;
import org.bukkit.material.Colorable;
/**
* Represents a Sheep.
*
*
* @author Cogito
*
*/
public interface Sheep extends Animals, Colorable {
/**
* @author Celtic Minstrel
* @return Whether the sheep is sheared.
*/
public boolean isSheared();
/**
* @author Celtic Minstrel
* @param flag Whether to shear the sheep

View File

@@ -1,14 +1,12 @@
/**
*
*
*/
package org.bukkit.entity;
/**
* Represents a Skeleton.
*
*
* @author Cogito
*
*/
public interface Skeleton extends Monster {
}
public interface Skeleton extends Monster {}

View File

@@ -1,20 +1,22 @@
/**
*
*
*/
package org.bukkit.entity;
/**
* Represents a Slime.
*
*
* @author Cogito
*
*/
public interface Slime extends LivingEntity {
/**
* @author Celtic Minstrel
* @return The size of the slime
*/
public int getSize();
/**
* @author Celtic Minstrel
* @param sz The new size of the slime.

View File

@@ -2,8 +2,7 @@ package org.bukkit.entity;
/**
* Implements a snowball.
*
*
* @author sk89q
*/
public interface Snowball extends Entity {
}
public interface Snowball extends Entity {}

View File

@@ -1,14 +1,12 @@
/**
*
*
*/
package org.bukkit.entity;
/**
* Represents a Spider.
*
*
* @author Cogito
*
*/
public interface Spider extends Monster {
}
public interface Spider extends Monster {}

View File

@@ -1,14 +1,12 @@
/**
*
*
*/
package org.bukkit.entity;
/**
* Represents a Squid.
*
*
* @author Cogito
*
*/
public interface Squid extends WaterMob {
}
public interface Squid extends WaterMob {}

View File

@@ -4,13 +4,14 @@ import org.bukkit.inventory.Inventory;
/**
* Represents a storage minecart.
*
*
* @author sk89q
*/
public interface StorageMinecart extends Minecart {
/**
* Return the inventory object for this StorageMinecart.
*
*
* @return The inventory for this Minecart
*/
public Inventory getInventory();

View File

@@ -1,14 +1,12 @@
/**
*
*
*/
package org.bukkit.entity;
/**
* Represents a Primed TNT.
*
*
* @author Cogito
*
*/
public interface TNTPrimed extends Entity {
}
public interface TNTPrimed extends Entity {}

View File

@@ -4,20 +4,21 @@ import org.bukkit.util.Vector;
/**
* Represents a vehicle entity.
*
*
* @author sk89q
*/
public interface Vehicle extends Entity {
/**
* Gets the vehicle's velocity.
*
*
* @return velocity vector
*/
public Vector getVelocity();
/**
* Sets the vehicle's velocity.
*
*
* @param vel velocity vector
*/
public void setVelocity(Vector vel);

View File

@@ -1,5 +1,5 @@
/**
*
*
*/
package org.bukkit.entity;
@@ -8,6 +8,4 @@ package org.bukkit.entity;
* @author Cogito
*
*/
public interface WaterMob extends Creature {
}
public interface WaterMob extends Creature {}

View File

@@ -1,9 +1,6 @@
package org.bukkit.entity;
/**
* Represents a Weather related entity, such as a storm
*/
public interface Weather extends Entity {
}
public interface Weather extends Entity {}

View File

@@ -1,10 +1,10 @@
package org.bukkit.entity;
/**
* Represents a Wolf
*/
public interface Wolf extends Animals, Tameable {
/**
* Checks if this wolf is angry
*

View File

@@ -2,10 +2,8 @@ package org.bukkit.entity;
/**
* Represents a Zombie.
*
*
* @author Cogito
*
*/
public interface Zombie extends Monster{
}
public interface Zombie extends Monster {}