generated from srnyx/plugin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
RefPlayer.java
49 lines (40 loc) · 1.69 KB
/
RefPlayer.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package xyz.srnyx.annoyingapi.reflection.org.bukkit.entity;
import net.md_5.bungee.api.ChatMessageType;
import net.md_5.bungee.api.chat.BaseComponent;
import org.jetbrains.annotations.Nullable;
import xyz.srnyx.annoyingapi.utility.ReflectionUtility;
import java.lang.reflect.Method;
/**
* org.bukkit.entity.Player
*/
public class RefPlayer {
/**
* 1.11+ org.bukkit.entity.Player#sendTitle(String, String, int, int, int)
*/
@Nullable public static final Method PLAYER_SEND_TITLE_METHOD = ReflectionUtility.getMethod(10110, org.bukkit.entity.Player.class, "sendTitle", String.class, String.class, int.class, int.class, int.class);
/**
* This class cannot be instantiated
*
* @throws UnsupportedOperationException if this class is instantiated
*/
private RefPlayer() {
throw new UnsupportedOperationException("This is a reflected class and cannot be instantiated");
}
/**
* org.bukkit.entity.Player.Spigot
*/
public static class RefSpigot {
/**
* 1.11+ org.bukkit.entity.Player.Spigot#sendMessage(net.md_5.bungee.api.ChatMessageType, net.md_5.bungee.api.chat.BaseComponent...)
*/
@Nullable public static final Method PLAYER_SPIGOT_SEND_MESSAGE_METHOD = ReflectionUtility.getMethod(10110, org.bukkit.entity.Player.Spigot.class, "sendMessage", ChatMessageType.class, BaseComponent[].class);
/**
* This class cannot be instantiated
*
* @throws UnsupportedOperationException if this class is instantiated
*/
private RefSpigot() {
throw new UnsupportedOperationException("This is a reflected class and cannot be instantiated");
}
}
}