Skeleton API Implementations

This contains the basic, empty implementations for some Spigot-API extensions. They are included early in the patching progress so that compilation will still succeed midway despite the APIs only being provided by subsequent patches.

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2013-06-02 15:10:56 +10:00
parent 02380b2f27
commit 6b0bae2fb6
9 changed files with 99 additions and 0 deletions

View File

@@ -132,4 +132,11 @@ public class ProxiedNativeCommandSender implements ProxiedCommandSender {
this.getCaller().setOp(value);
}
// Spigot start
@Override
public org.bukkit.command.CommandSender.Spigot spigot()
{
return this.getCaller().spigot();
}
// Spigot end
}

View File

@@ -95,4 +95,16 @@ public abstract class ServerCommandSender implements CommandSender {
public void sendMessage(UUID uuid, String... messages) {
this.sendMessage(messages); // ServerCommandSenders have no use for senders
}
// Spigot start
private final org.bukkit.command.CommandSender.Spigot spigot = new org.bukkit.command.CommandSender.Spigot()
{
};
@Override
public org.bukkit.command.CommandSender.Spigot spigot()
{
return this.spigot;
}
// Spigot end
}