21 lines
659 B
Java
21 lines
659 B
Java
package eu.univento.core.api.gui;
|
|
|
|
import eu.univento.core.api.player.CustomPlayer;
|
|
import net.minecraft.server.v1_11_R1.BlockPosition;
|
|
import net.minecraft.server.v1_11_R1.EntityPlayer;
|
|
import net.minecraft.server.v1_11_R1.PacketPlayOutOpenSignEditor;
|
|
|
|
/**
|
|
* @author joethei
|
|
* @version 0.1
|
|
*/
|
|
class SignInput {
|
|
|
|
public static void openSignInput(CustomPlayer p) {
|
|
EntityPlayer player = p.getHandle();
|
|
BlockPosition bp = new BlockPosition(p.getHandle());
|
|
PacketPlayOutOpenSignEditor packet = new PacketPlayOutOpenSignEditor(bp);
|
|
player.playerConnection.sendPacket(packet);
|
|
SignInputHandler.injectNetty(p);
|
|
}
|
|
} |