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:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user