示例#1
0
文件: DreamPlayer.java 项目: ISUE/MoC
 public void removeThought(String name) {
   for (Thought t : thoughts)
     if (t.getName().equalsIgnoreCase(name)) {
       thoughts.remove(t);
       plugin.getConfiguration().removeDreamPlayerThought(playerName, t.getName());
       break;
     }
 }
示例#2
0
文件: DreamPlayer.java 项目: ISUE/MoC
  public void setWakeInformation(Location wakeLocation, Inventory wakeInventory) {
    this.wakeLocation = wakeLocation;
    if (wakeInventory == null) this.wakeInventory = null;
    else {
      this.wakeInventory = Bukkit.getServer().createInventory(null, InventoryType.PLAYER);
      this.wakeInventory.setContents(wakeInventory.getContents());
    }

    plugin
        .getConfiguration()
        .setDreamPlayerWakeInfo(playerName, this.wakeInventory, this.wakeLocation);
  }
示例#3
0
文件: DreamPlayer.java 项目: ISUE/MoC
 public void setDream(Dream dream) {
   this.dream = dream;
   plugin.getConfiguration().setDreamPlayerDream(dream, playerName);
 }
示例#4
0
文件: DreamPlayer.java 项目: ISUE/MoC
 public void addThought(Thought thought) {
   thoughts.add(thought);
   plugin.getConfiguration().setDreamPlayerThought(playerName, thought);
 }
示例#5
0
文件: DreamPlayer.java 项目: ISUE/MoC
 public void setState(PlayerState state) {
   this.state = state;
   plugin.getConfiguration().setDreamPlayerState(playerName, state);
 }
示例#6
0
文件: DreamPlayer.java 项目: ISUE/MoC
 public void clearDream() {
   dream = null;
   plugin.getConfiguration().removeDreamPlayerDream(playerName);
 }