13
0
geforkt von Mirrors/Paper

Line endings. This is getting very annoying.

By: Dinnerbone <dinnerbone@dinnerbone.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2011-04-05 16:35:57 +01:00
Ursprung 871953413c
Commit b6e68ee5e5
2 geänderte Dateien mit 75 neuen und 75 gelöschten Zeilen

Datei anzeigen

@ -1,24 +1,24 @@
package org.bukkit.entity;
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);
}
package org.bukkit.entity;
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);
}

Datei anzeigen

@ -1,51 +1,51 @@
package org.bukkit.event.player;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
public class PlayerBucketFillEvent extends PlayerEvent {
ItemStack itemStack;
boolean cancelled = false;
Block blockClicked;
BlockFace blockFace;
Material bucket;
public PlayerBucketFillEvent(Player who, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand) {
super(Type.PLAYER_BUCKET_FILL, who);
this.blockClicked = blockClicked;
this.blockFace = blockFace;
this.itemStack = itemInHand;
this.bucket = bucket;
}
public Material getBucket() {
return bucket;
}
public ItemStack getItemStack() {
return itemStack;
}
public Block getBlockClicked() {
return blockClicked;
}
public BlockFace getBlockFace() {
return blockFace;
}
public void setItemStack(ItemStack itemStack) {
this.itemStack = itemStack;
}
public boolean isCancelled() {
return cancelled;
}
public void setCancelled(boolean cancel) {
this.cancelled = cancel;
}
}
package org.bukkit.event.player;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
public class PlayerBucketFillEvent extends PlayerEvent {
ItemStack itemStack;
boolean cancelled = false;
Block blockClicked;
BlockFace blockFace;
Material bucket;
public PlayerBucketFillEvent(Player who, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand) {
super(Type.PLAYER_BUCKET_FILL, who);
this.blockClicked = blockClicked;
this.blockFace = blockFace;
this.itemStack = itemInHand;
this.bucket = bucket;
}
public Material getBucket() {
return bucket;
}
public ItemStack getItemStack() {
return itemStack;
}
public Block getBlockClicked() {
return blockClicked;
}
public BlockFace getBlockFace() {
return blockFace;
}
public void setItemStack(ItemStack itemStack) {
this.itemStack = itemStack;
}
public boolean isCancelled() {
return cancelled;
}
public void setCancelled(boolean cancel) {
this.cancelled = cancel;
}
}