Skeleton API Implementations

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2017-05-15 15:16:15 +10:00
parent 29381e2731
commit 8de3a6a15d
8 changed files with 71 additions and 0 deletions

View File

@ -2175,4 +2175,9 @@ public final class Bukkit {
public static UnsafeValues getUnsafe() { public static UnsafeValues getUnsafe() {
return server.getUnsafe(); return server.getUnsafe();
} }
@NotNull
public static Server.Spigot spigot() {
return server.spigot();
}
} }

View File

@ -1852,4 +1852,13 @@ public interface Server extends PluginMessageRecipient {
@Deprecated(since = "1.7.2") @Deprecated(since = "1.7.2")
@NotNull @NotNull
UnsafeValues getUnsafe(); UnsafeValues getUnsafe();
// Spigot start
public class Spigot {
}
@NotNull
Spigot spigot();
// Spigot end
} }

View File

@ -2828,6 +2828,15 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
@Nullable @Nullable
StructureSearchResult locateNearestStructure(@NotNull Location origin, @NotNull Structure structure, int radius, boolean findUnexplored); StructureSearchResult locateNearestStructure(@NotNull Location origin, @NotNull Structure structure, int radius, boolean findUnexplored);
// Spigot start
public class Spigot {
}
@NotNull
Spigot spigot();
// Spigot end
/** /**
* Find the closest nearby location with a biome matching the provided * Find the closest nearby location with a biome matching the provided
* {@link Biome}(s). Finding biomes can, and will, block if the world is looking * {@link Biome}(s). Finding biomes can, and will, block if the world is looking

View File

@ -53,4 +53,13 @@ public interface CommandSender extends Permissible {
*/ */
@NotNull @NotNull
public String getName(); public String getName();
// Spigot start
public class Spigot {
}
@NotNull
Spigot spigot();
// Spigot end
} }

View File

@ -766,4 +766,14 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
@NotNull @NotNull
@ApiStatus.Experimental @ApiStatus.Experimental
Entity copy(@NotNull Location to); Entity copy(@NotNull Location to);
// Spigot start
public class Spigot extends CommandSender.Spigot {
}
@NotNull
@Override
Spigot spigot();
// Spigot end
} }

View File

@ -2,6 +2,7 @@ package org.bukkit.entity;
import org.bukkit.GameEvent; import org.bukkit.GameEvent;
import org.bukkit.enchantments.Enchantment; import org.bukkit.enchantments.Enchantment;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable; import org.jetbrains.annotations.Nullable;
/** /**
@ -82,4 +83,13 @@ public interface LightningStrike extends Entity {
*/ */
public void setCausingPlayer(@Nullable Player player); public void setCausingPlayer(@Nullable Player player);
// Spigot start
public class Spigot extends Entity.Spigot {
}
@NotNull
@Override
Spigot spigot();
// Spigot end
} }

View File

@ -2287,4 +2287,14 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
* @return whether the player allows server listings * @return whether the player allows server listings
*/ */
public boolean isAllowingServerListings(); public boolean isAllowingServerListings();
// Spigot start
public class Spigot extends Entity.Spigot {
}
@NotNull
@Override
Spigot spigot();
// Spigot end
} }

View File

@ -113,4 +113,13 @@ public interface BookMeta extends WritableBookMeta {
@Override @Override
@NotNull @NotNull
BookMeta clone(); BookMeta clone();
// Spigot start
public class Spigot {
}
@NotNull
Spigot spigot();
// Spigot end
} }