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

@@ -892,4 +892,15 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
}
return CraftEntity.perm;
}
// Spigot start
private final org.bukkit.entity.Entity.Spigot spigot = new org.bukkit.entity.Entity.Spigot()
{
};
public org.bukkit.entity.Entity.Spigot spigot()
{
return this.spigot;
}
// Spigot end
}

View File

@@ -50,4 +50,15 @@ public class CraftLightningStrike extends CraftEntity implements LightningStrike
public String toString() {
return "CraftLightningStrike";
}
// Spigot start
private final LightningStrike.Spigot spigot = new LightningStrike.Spigot() {
};
@Override
public LightningStrike.Spigot spigot() {
return this.spigot;
}
// Spigot end
}

View File

@@ -2338,4 +2338,15 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
public boolean isAllowingServerListings() {
return this.getHandle().allowsListing();
}
// Spigot start
private final Player.Spigot spigot = new Player.Spigot()
{
};
public Player.Spigot spigot()
{
return this.spigot;
}
// Spigot end
}