47 lines
1.1 KiB
Java
47 lines
1.1 KiB
Java
package com.sekwah.advancedportals.core.connector.container;
|
|
|
|
import com.sekwah.advancedportals.core.data.PlayerLocation;
|
|
import com.sekwah.advancedportals.core.data.PortalLocation;
|
|
|
|
import java.util.UUID;
|
|
|
|
/**
|
|
* Just a temporary container for whenever advanced portals needs to get data from a player
|
|
*/
|
|
public interface PlayerContainer {
|
|
|
|
UUID getUUID();
|
|
|
|
public void sendMessage(String message);
|
|
|
|
boolean isOp();
|
|
|
|
PlayerLocation getLoc();
|
|
|
|
double getEyeHeight();
|
|
|
|
void teleport(PlayerLocation location);
|
|
|
|
boolean hasPermission(String permission);
|
|
|
|
WorldContainer getWorld();
|
|
|
|
/**
|
|
* @param blockPos
|
|
* @param material
|
|
*/
|
|
void sendFakeBlock(PortalLocation blockPos, String material);
|
|
|
|
/**
|
|
* Only 1.12 and below supported
|
|
* @param blockPos
|
|
* @param material
|
|
* @param data
|
|
*/
|
|
void sendFakeBlockWithData(PortalLocation blockPos, String material, byte data);
|
|
|
|
void giveWool(String dyeColor, String itemName, String... itemDescription);
|
|
|
|
void giveItem(String material, String itemName, String... itemDescription);
|
|
}
|