本文整理匯總了Java中org.itxtech.synapseapi.SynapsePlayer類的典型用法代碼示例。如果您正苦於以下問題:Java SynapsePlayer類的具體用法?Java SynapsePlayer怎麽用?Java SynapsePlayer使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
SynapsePlayer類屬於org.itxtech.synapseapi包,在下文中一共展示了SynapsePlayer類的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onCommand
import org.itxtech.synapseapi.SynapsePlayer; //導入依賴的package包/類
@Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if (command.getLabel().equalsIgnoreCase("transfer")) {
Player p = getServer().getPlayer(args[0]);
String hash = args[1];
((SynapsePlayer) p).transfer(((SynapsePlayer) p).getSynapseEntry().getClientData().getHashByDescription(hash));
}
return true;
}
示例2: SynapsePlayerCreationEvent
import org.itxtech.synapseapi.SynapsePlayer; //導入依賴的package包/類
public SynapsePlayerCreationEvent(SourceInterface interfaz, Class<? extends SynapsePlayer> baseClass, Class<? extends SynapsePlayer> playerClass, Long clientId, String address, int port) {
this.interfaz = interfaz;
this.clientId = clientId;
this.address = address;
this.port = port;
this.baseClass = baseClass;
this.playerClass = playerClass;
}
示例3: getBaseClass
import org.itxtech.synapseapi.SynapsePlayer; //導入依賴的package包/類
public Class<? extends SynapsePlayer> getBaseClass() {
return baseClass;
}
示例4: setBaseClass
import org.itxtech.synapseapi.SynapsePlayer; //導入依賴的package包/類
public void setBaseClass(Class<? extends SynapsePlayer> baseClass) {
this.baseClass = baseClass;
}
示例5: getPlayerClass
import org.itxtech.synapseapi.SynapsePlayer; //導入依賴的package包/類
public Class<? extends SynapsePlayer> getPlayerClass() {
return playerClass;
}
示例6: setPlayerClass
import org.itxtech.synapseapi.SynapsePlayer; //導入依賴的package包/類
public void setPlayerClass(Class<? extends SynapsePlayer> playerClass) {
this.playerClass = playerClass;
}
示例7: SynapsePlayerConnectEvent
import org.itxtech.synapseapi.SynapsePlayer; //導入依賴的package包/類
public SynapsePlayerConnectEvent(SynapsePlayer player) {
this(player, true);
}
示例8: SynapsePlayerEvent
import org.itxtech.synapseapi.SynapsePlayer; //導入依賴的package包/類
public SynapsePlayerEvent(SynapsePlayer player) {
this.player = player;
}
示例9: getPlayer
import org.itxtech.synapseapi.SynapsePlayer; //導入依賴的package包/類
public SynapsePlayer getPlayer() {
return player;
}
示例10: SendPlayerSpawnRunnable
import org.itxtech.synapseapi.SynapsePlayer; //導入依賴的package包/類
public SendPlayerSpawnRunnable(SynapsePlayer player) {
this.player = player;
}
示例11: TransferRunnable
import org.itxtech.synapseapi.SynapsePlayer; //導入依賴的package包/類
public TransferRunnable(SynapsePlayer player, String hash) {
this.player = player;
this.hash = hash;
}
示例12: SendChangeDimensionRunnable
import org.itxtech.synapseapi.SynapsePlayer; //導入依賴的package包/類
public SendChangeDimensionRunnable(SynapsePlayer player, int dimension) {
this.player = player;
this.dimension = dimension;
}
示例13: SynapsePlayerTransferEvent
import org.itxtech.synapseapi.SynapsePlayer; //導入依賴的package包/類
public SynapsePlayerTransferEvent(SynapsePlayer player, Entry data) {
super(player);
this.clientData = data;
}