geforkt von Mirrors/Paper
Line endings. This is getting very annoying.
By: Dinnerbone <dinnerbone@dinnerbone.com>
Dieser Commit ist enthalten in:
Ursprung
871953413c
Commit
b6e68ee5e5
@ -1,24 +1,24 @@
|
|||||||
package org.bukkit.entity;
|
package org.bukkit.entity;
|
||||||
|
|
||||||
import org.bukkit.util.Vector;
|
import org.bukkit.util.Vector;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a vehicle entity.
|
* Represents a vehicle entity.
|
||||||
*
|
*
|
||||||
* @author sk89q
|
* @author sk89q
|
||||||
*/
|
*/
|
||||||
public interface Vehicle extends Entity {
|
public interface Vehicle extends Entity {
|
||||||
/**
|
/**
|
||||||
* Gets the vehicle's velocity.
|
* Gets the vehicle's velocity.
|
||||||
*
|
*
|
||||||
* @return velocity vector
|
* @return velocity vector
|
||||||
*/
|
*/
|
||||||
public Vector getVelocity();
|
public Vector getVelocity();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the vehicle's velocity.
|
* Sets the vehicle's velocity.
|
||||||
*
|
*
|
||||||
* @param vel velocity vector
|
* @param vel velocity vector
|
||||||
*/
|
*/
|
||||||
public void setVelocity(Vector vel);
|
public void setVelocity(Vector vel);
|
||||||
}
|
}
|
||||||
|
@ -1,51 +1,51 @@
|
|||||||
package org.bukkit.event.player;
|
package org.bukkit.event.player;
|
||||||
|
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
import org.bukkit.block.BlockFace;
|
import org.bukkit.block.BlockFace;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
|
||||||
public class PlayerBucketFillEvent extends PlayerEvent {
|
public class PlayerBucketFillEvent extends PlayerEvent {
|
||||||
ItemStack itemStack;
|
ItemStack itemStack;
|
||||||
boolean cancelled = false;
|
boolean cancelled = false;
|
||||||
Block blockClicked;
|
Block blockClicked;
|
||||||
BlockFace blockFace;
|
BlockFace blockFace;
|
||||||
Material bucket;
|
Material bucket;
|
||||||
|
|
||||||
public PlayerBucketFillEvent(Player who, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand) {
|
public PlayerBucketFillEvent(Player who, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand) {
|
||||||
super(Type.PLAYER_BUCKET_FILL, who);
|
super(Type.PLAYER_BUCKET_FILL, who);
|
||||||
this.blockClicked = blockClicked;
|
this.blockClicked = blockClicked;
|
||||||
this.blockFace = blockFace;
|
this.blockFace = blockFace;
|
||||||
this.itemStack = itemInHand;
|
this.itemStack = itemInHand;
|
||||||
this.bucket = bucket;
|
this.bucket = bucket;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Material getBucket() {
|
public Material getBucket() {
|
||||||
return bucket;
|
return bucket;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ItemStack getItemStack() {
|
public ItemStack getItemStack() {
|
||||||
return itemStack;
|
return itemStack;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Block getBlockClicked() {
|
public Block getBlockClicked() {
|
||||||
return blockClicked;
|
return blockClicked;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockFace getBlockFace() {
|
public BlockFace getBlockFace() {
|
||||||
return blockFace;
|
return blockFace;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setItemStack(ItemStack itemStack) {
|
public void setItemStack(ItemStack itemStack) {
|
||||||
this.itemStack = itemStack;
|
this.itemStack = itemStack;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
return cancelled;
|
return cancelled;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCancelled(boolean cancel) {
|
public void setCancelled(boolean cancel) {
|
||||||
this.cancelled = cancel;
|
this.cancelled = cancel;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren