1
0
mirror of https://github.com/LOOHP/Limbo.git synced 2026-06-08 05:51:43 +00:00

Reorganize sources to maven project standard

This commit is contained in:
LOOHP
2020-12-29 01:50:43 +08:00
parent 7bc2bf6d88
commit c77c700fac
106 changed files with 4 additions and 9 deletions
+32
View File
@@ -0,0 +1,32 @@
package com.loohp.limbo;
import java.lang.reflect.Constructor;
import com.loohp.limbo.Player.Player;
import com.loohp.limbo.Utils.GameMode;
@Deprecated
public class Unsafe {
private com.loohp.limbo.Player.Unsafe playerUnsafe;
protected Unsafe() {
try {
Constructor<com.loohp.limbo.Player.Unsafe> playerConstructor = com.loohp.limbo.Player.Unsafe.class.getDeclaredConstructor();
playerConstructor.setAccessible(true);
playerUnsafe = playerConstructor.newInstance();
playerConstructor.setAccessible(false);
} catch (Exception e) {e.printStackTrace();}
}
@Deprecated
public void setPlayerGameModeSilently(Player player, GameMode mode) {
playerUnsafe.a(player, mode);
}
@Deprecated
public void setPlayerEntityId(Player player, int entityId) {
playerUnsafe.a(player, entityId);
}
}