mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 03:48:01 +01:00
Skeleton API Implementations
By: md_5 <git@md-5.net>
This commit is contained in:
parent
29381e2731
commit
8de3a6a15d
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user