public class Paste
extends java.lang.Object
PasteEndEvent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CURRENT_MC_VERSION |
java.lang.String |
prefix |
org.bukkit.command.CommandSender |
sender |
static int |
VERSION |
Constructor and Description |
---|
Paste(int x,
int y,
int z,
org.bukkit.World world,
java.lang.String fileName,
java.util.ArrayList<Paste> pastes,
org.bukkit.command.CommandSender sender)
The legacy constructor for backwards compatibility.
|
Paste(org.bukkit.Location min,
java.lang.String fileName,
org.bukkit.command.CommandSender sender,
boolean clearEntities,
boolean ignoreAir,
java.lang.String prefix)
Used to create a new paste operation instance that can be used to paste the
file.
|
Modifier and Type | Method and Description |
---|---|
static int |
cancelAll() |
java.lang.String |
getFileName() |
org.bukkit.Location |
getMin() |
void |
kill()
Ends the paste task if it is done or not.
|
void |
run()
Runs the paste operation.
|
public static final java.lang.String CURRENT_MC_VERSION
public org.bukkit.command.CommandSender sender
public java.lang.String prefix
public static final int VERSION
public Paste(int x, int y, int z, org.bukkit.World world, java.lang.String fileName, java.util.ArrayList<Paste> pastes, org.bukkit.command.CommandSender sender)
x
- Where the min-x of the paste will be pasted.y
- Where the min-y of the paste will be pasted.z
- Where the min-z of the paste will be pasted.world
- What world the paste will be pasted in.fileName
- The directory of the files.pastes
- An optional ArrayList of pastes that will run after this one,
allowing them to be distributed. Set to null if you don't
want a paste to follow.sender
- The person who will get status messages. Use null for no
messages, and consoleSender for console.public Paste(org.bukkit.Location min, java.lang.String fileName, org.bukkit.command.CommandSender sender, boolean clearEntities, boolean ignoreAir, java.lang.String prefix)
min
- Where the min coordinates and world of the paste that
will be pasted.fileName
- The path of the filesender
- The person who will get status messages. Use null for no
messages, and consoleSender for console.clearEntities
- Used to specify if the paste operation will schedule the
removal of the entities.prefix
- Used for the prefix shown in the messages.ignoreAir
- Not check blocks that are air in the file. May be useful
for some plugins.public static int cancelAll()
public void run()
public final void kill()
public org.bukkit.Location getMin()
public java.lang.String getFileName()