geforkt von Mirrors/Paper
Small javadoc cleanup
By: Nathan Adams <dinnerbone@dinnerbone.com>
Dieser Commit ist enthalten in:
Ursprung
96063a2b4d
Commit
429eb80d6e
@ -4,8 +4,6 @@ package org.bukkit;
|
||||
* A delegate for handling block changes. This serves as a direct interface
|
||||
* between generation algorithms in the server implementation and utilizing
|
||||
* code.
|
||||
*
|
||||
* @author sk89q
|
||||
*/
|
||||
public interface BlockChangeDelegate {
|
||||
|
||||
|
@ -5,7 +5,6 @@ import java.util.Map;
|
||||
|
||||
/**
|
||||
* Represents the two types of coal
|
||||
* @author sunkid
|
||||
*/
|
||||
public enum CoalType {
|
||||
COAL((byte) 0x0),
|
||||
|
@ -5,7 +5,6 @@ import java.util.Map;
|
||||
|
||||
/**
|
||||
* Represents the different growth states of crops
|
||||
* @author sunkid
|
||||
*/
|
||||
public enum CropState {
|
||||
|
||||
|
@ -5,7 +5,6 @@ import java.util.Map;
|
||||
|
||||
/**
|
||||
* Represents the different species of trees regardless of size.
|
||||
* @author sunkid
|
||||
*/
|
||||
public enum TreeSpecies {
|
||||
|
||||
|
@ -2,8 +2,6 @@ package org.bukkit;
|
||||
|
||||
/**
|
||||
* Tree type.
|
||||
*
|
||||
* @author sk89q
|
||||
*/
|
||||
public enum TreeType {
|
||||
TREE,
|
||||
|
@ -2,7 +2,5 @@ package org.bukkit.block;
|
||||
|
||||
/**
|
||||
* Represents a chest.
|
||||
*
|
||||
* @author sk89q
|
||||
*/
|
||||
public interface Chest extends BlockState, ContainerBlock {}
|
||||
|
@ -4,8 +4,6 @@ import org.bukkit.inventory.Inventory;
|
||||
|
||||
/**
|
||||
* Indicates a block type that has inventory.
|
||||
*
|
||||
* @author sk89q
|
||||
*/
|
||||
public interface ContainerBlock {
|
||||
|
||||
|
@ -4,9 +4,6 @@ import org.bukkit.entity.CreatureType;
|
||||
|
||||
/**
|
||||
* Represents a creature spawner.
|
||||
*
|
||||
* @author sk89q
|
||||
* @author Cogito
|
||||
*/
|
||||
public interface CreatureSpawner extends BlockState {
|
||||
|
||||
|
@ -2,8 +2,6 @@ package org.bukkit.block;
|
||||
|
||||
/**
|
||||
* Represents a dispenser.
|
||||
*
|
||||
* @author sk89q
|
||||
*/
|
||||
public interface Dispenser extends BlockState, ContainerBlock {
|
||||
|
||||
|
@ -2,8 +2,6 @@ package org.bukkit.block;
|
||||
|
||||
/**
|
||||
* Represents a furnace.
|
||||
*
|
||||
* @author sk89q
|
||||
*/
|
||||
public interface Furnace extends BlockState, ContainerBlock {
|
||||
|
||||
|
@ -8,11 +8,8 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.regex.Pattern;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.OfflinePlayer;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.material.MaterialData;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
/**
|
||||
|
@ -6,7 +6,6 @@ import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileReader;
|
||||
import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
@ -3,7 +3,5 @@ package org.bukkit.entity;
|
||||
/**
|
||||
* Represents an Animal.
|
||||
*
|
||||
* @author Cogito
|
||||
*
|
||||
*/
|
||||
public interface Animals extends Creature {}
|
||||
|
@ -2,8 +2,6 @@ package org.bukkit.entity;
|
||||
|
||||
/**
|
||||
* Represents a boat entity.
|
||||
*
|
||||
* @author sk89q
|
||||
*/
|
||||
public interface Boat extends Vehicle {
|
||||
|
||||
|
@ -1,12 +1,6 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.bukkit.entity;
|
||||
|
||||
/**
|
||||
* Represents a Chicken.
|
||||
*
|
||||
* @author Cogito
|
||||
*
|
||||
*/
|
||||
public interface Chicken extends Animals {}
|
||||
|
@ -1,12 +1,6 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.bukkit.entity;
|
||||
|
||||
/**
|
||||
* Represents a Cow.
|
||||
*
|
||||
* @author Cogito
|
||||
*
|
||||
*/
|
||||
public interface Cow extends Animals {}
|
||||
|
@ -1,12 +1,6 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.bukkit.entity;
|
||||
|
||||
/**
|
||||
* Represents Falling Sand.
|
||||
*
|
||||
* @author Cogito
|
||||
*
|
||||
*/
|
||||
public interface FallingSand extends Entity {}
|
||||
|
@ -1,12 +1,6 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.bukkit.entity;
|
||||
|
||||
/**
|
||||
* Represents a Flying Entity.
|
||||
*
|
||||
* @author Cogito
|
||||
*
|
||||
*/
|
||||
public interface Flying extends LivingEntity {}
|
||||
|
@ -1,12 +1,6 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.bukkit.entity;
|
||||
|
||||
/**
|
||||
* Represents a Ghast.
|
||||
*
|
||||
* @author Cogito
|
||||
*
|
||||
*/
|
||||
public interface Ghast extends Flying {}
|
||||
|
@ -1,12 +1,6 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.bukkit.entity;
|
||||
|
||||
/**
|
||||
* Represents a Giant.
|
||||
*
|
||||
* @author Cogito
|
||||
*
|
||||
*/
|
||||
public interface Giant extends Monster {}
|
||||
|
@ -4,9 +4,6 @@ import org.bukkit.inventory.ItemStack;
|
||||
|
||||
/**
|
||||
* Represents an Item.
|
||||
*
|
||||
* @author Cogito
|
||||
*
|
||||
*/
|
||||
public interface Item extends Entity {
|
||||
|
||||
|
@ -2,8 +2,6 @@ package org.bukkit.entity;
|
||||
|
||||
/**
|
||||
* Represents an instance of a lightning strike. May or may not do damage.
|
||||
*
|
||||
* @author sk89q
|
||||
*/
|
||||
public interface LightningStrike extends Weather {
|
||||
|
||||
|
@ -4,8 +4,6 @@ import org.bukkit.util.Vector;
|
||||
|
||||
/**
|
||||
* Represents a minecart entity.
|
||||
*
|
||||
* @author sk89q
|
||||
*/
|
||||
public interface Minecart extends Vehicle {
|
||||
|
||||
|
@ -1,12 +1,6 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.bukkit.entity;
|
||||
|
||||
/**
|
||||
* Represents a Monster.
|
||||
*
|
||||
* @author Cogito
|
||||
*
|
||||
*/
|
||||
public interface Monster extends Creature {}
|
||||
|
@ -2,7 +2,5 @@ package org.bukkit.entity;
|
||||
|
||||
/**
|
||||
* Represents a powered minecart.
|
||||
*
|
||||
* @author sk89q
|
||||
*/
|
||||
public interface PoweredMinecart extends Minecart {}
|
||||
|
@ -1,15 +1,9 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.bukkit.entity;
|
||||
|
||||
import org.bukkit.material.Colorable;
|
||||
|
||||
/**
|
||||
* Represents a Sheep.
|
||||
*
|
||||
* @author Cogito
|
||||
*
|
||||
*/
|
||||
public interface Sheep extends Animals, Colorable {
|
||||
|
||||
|
@ -1,12 +1,6 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.bukkit.entity;
|
||||
|
||||
/**
|
||||
* Represents a Skeleton.
|
||||
*
|
||||
* @author Cogito
|
||||
*
|
||||
*/
|
||||
public interface Skeleton extends Monster {}
|
||||
|
@ -1,13 +1,7 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.bukkit.entity;
|
||||
|
||||
/**
|
||||
* Represents a Slime.
|
||||
*
|
||||
* @author Cogito
|
||||
*
|
||||
*/
|
||||
public interface Slime extends LivingEntity {
|
||||
|
||||
|
@ -1,12 +1,6 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.bukkit.entity;
|
||||
|
||||
/**
|
||||
* Represents a Squid.
|
||||
*
|
||||
* @author Cogito
|
||||
*
|
||||
*/
|
||||
public interface Squid extends WaterMob {}
|
||||
|
@ -4,8 +4,6 @@ import org.bukkit.inventory.Inventory;
|
||||
|
||||
/**
|
||||
* Represents a storage minecart.
|
||||
*
|
||||
* @author sk89q
|
||||
*/
|
||||
public interface StorageMinecart extends Minecart {
|
||||
|
||||
|
@ -4,8 +4,6 @@ import org.bukkit.util.Vector;
|
||||
|
||||
/**
|
||||
* Represents a vehicle entity.
|
||||
*
|
||||
* @author sk89q
|
||||
*/
|
||||
public interface Vehicle extends Entity {
|
||||
|
||||
|
@ -1,11 +1,6 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.bukkit.entity;
|
||||
|
||||
/**
|
||||
* Represents a Water Mob
|
||||
* @author Cogito
|
||||
*
|
||||
*/
|
||||
public interface WaterMob extends Creature {}
|
||||
|
@ -2,8 +2,5 @@ package org.bukkit.entity;
|
||||
|
||||
/**
|
||||
* Represents a Zombie.
|
||||
*
|
||||
* @author Cogito
|
||||
*
|
||||
*/
|
||||
public interface Zombie extends Monster {}
|
||||
|
@ -6,8 +6,6 @@ import org.bukkit.event.Event;
|
||||
|
||||
/**
|
||||
* Called when a server list ping is coming in.
|
||||
*
|
||||
* @author sk89q
|
||||
*/
|
||||
public class ServerListPingEvent extends ServerEvent {
|
||||
|
||||
|
@ -4,8 +4,6 @@ import org.bukkit.entity.Vehicle;
|
||||
|
||||
/**
|
||||
* Raised when a vehicle is created.
|
||||
*
|
||||
* @author sk89q
|
||||
*/
|
||||
public class VehicleCreateEvent extends VehicleEvent {
|
||||
public VehicleCreateEvent(Vehicle vehicle) {
|
||||
|
@ -6,8 +6,6 @@ import org.bukkit.event.Cancellable;
|
||||
|
||||
/**
|
||||
* Raised when a vehicle collides with an entity.
|
||||
*
|
||||
* @author sk89q
|
||||
*/
|
||||
public class VehicleEntityCollisionEvent extends VehicleCollisionEvent implements Cancellable {
|
||||
private Entity entity;
|
||||
|
@ -5,8 +5,6 @@ import org.bukkit.event.Event;
|
||||
|
||||
/**
|
||||
* Represents a vehicle-related event.
|
||||
*
|
||||
* @author sk89q
|
||||
*/
|
||||
public class VehicleEvent extends Event {
|
||||
protected Vehicle vehicle;
|
||||
|
@ -4,8 +4,6 @@ import org.bukkit.event.Listener;
|
||||
|
||||
/**
|
||||
* Listener for vehicle events.
|
||||
*
|
||||
* @author sk89q
|
||||
*/
|
||||
public class VehicleListener implements Listener {
|
||||
public VehicleListener() {}
|
||||
|
@ -5,8 +5,6 @@ import org.bukkit.entity.Vehicle;
|
||||
|
||||
/**
|
||||
* Raised when a vehicle moves.
|
||||
*
|
||||
* @author sk89q
|
||||
*/
|
||||
public class VehicleMoveEvent extends VehicleEvent {
|
||||
private Location from;
|
||||
|
@ -5,8 +5,6 @@ import org.bukkit.DyeColor;
|
||||
/**
|
||||
* An object that can be colored.
|
||||
*
|
||||
* @author Cogito
|
||||
*
|
||||
*/
|
||||
public interface Colorable {
|
||||
|
||||
|
@ -3,7 +3,6 @@ package org.bukkit.plugin;
|
||||
/**
|
||||
* A registered service provider.
|
||||
*
|
||||
* @author sk89q
|
||||
* @param <T> Service
|
||||
*/
|
||||
public class RegisteredServiceProvider<T> implements Comparable<RegisteredServiceProvider<?>> {
|
||||
|
@ -10,8 +10,6 @@ import java.util.List;
|
||||
* services manager in order to use a service (if one is available). If
|
||||
* multiple plugins register a service, then the service with the highest
|
||||
* priority takes precedence.
|
||||
*
|
||||
* @author sk89q
|
||||
*/
|
||||
public interface ServicesManager {
|
||||
|
||||
|
@ -11,8 +11,6 @@ import java.util.NoSuchElementException;
|
||||
|
||||
/**
|
||||
* A simple services manager.
|
||||
*
|
||||
* @author sk89q
|
||||
*/
|
||||
public class SimpleServicesManager implements ServicesManager {
|
||||
|
||||
|
@ -8,12 +8,9 @@ import org.bukkit.entity.LivingEntity;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.NoSuchElementException;
|
||||
import java.lang.IllegalStateException;
|
||||
|
||||
/**
|
||||
* This class performs ray tracing and iterates along blocks on a line
|
||||
*
|
||||
* @author raphfrk
|
||||
*/
|
||||
|
||||
public class BlockIterator implements Iterator<Block> {
|
||||
|
@ -2,8 +2,6 @@ package org.bukkit.util.config;
|
||||
|
||||
/**
|
||||
* Configuration exception.
|
||||
*
|
||||
* @author sk89q
|
||||
*/
|
||||
public class ConfigurationException extends Exception {
|
||||
private static final long serialVersionUID = -2442886939908724203L;
|
||||
|
@ -55,8 +55,6 @@ public class YamlConfigurationTest extends FileConfigurationTest {
|
||||
String result = config.saveToString();
|
||||
String expected = "section:\n key: 1\n";
|
||||
|
||||
System.out.println(result);
|
||||
|
||||
assertEquals(expected, result);
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren