mirror of
https://github.com/songoda/EpicBosses.git
synced 2024-09-28 21:37:33 +02:00
1.0.0-SNAPSHOT-U187
+ Completed the CustomSettingsEditorPanel
This commit is contained in:
parent
8ab23d96e8
commit
45a0877378
@ -76,9 +76,15 @@ public class IntervalSpawnHandler {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ClickAction getSpawnAfterLastBossIsKilledAction(IntervalSpawnElement intervalSpawnElement) {
|
public ClickAction getSpawnAfterLastBossIsKilledAction(IntervalSpawnElement intervalSpawnElement, AutoSpawn autoSpawn, VariablePanelHandler<AutoSpawn> panelHandler) {
|
||||||
return event -> {
|
return event -> {
|
||||||
|
Player player = (Player) event.getWhoClicked();
|
||||||
|
|
||||||
|
intervalSpawnElement.setSpawnAfterLastBossIsKilled(!ObjectUtils.getValue(intervalSpawnElement.getSpawnAfterLastBossIsKilled(), false));
|
||||||
|
autoSpawn.setCustomData(BossAPI.convertObjectToJsonObject(intervalSpawnElement));
|
||||||
|
CustomBosses.get().getAutoSpawnFileManager().save();
|
||||||
|
|
||||||
|
panelHandler.openFor(player, autoSpawn);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,7 +85,9 @@ public class DropsEditorPanel extends VariablePanelHandler<BossEntity> {
|
|||||||
PanelBuilderCounter counter = panel.getPanelBuilderCounter();
|
PanelBuilderCounter counter = panel.getPanelBuilderCounter();
|
||||||
|
|
||||||
fillPanel(panel, bossEntity);
|
fillPanel(panel, bossEntity);
|
||||||
counter.getSlotsWith("Selected").forEach(slot -> panel.setOnClick(slot, event -> {/* TODO: GO TO EDIT PANEL FOR DROP TABLE */}));
|
counter.getSlotsWith("Selected").forEach(slot -> panel.setOnClick(slot, event -> {
|
||||||
|
/* TODO: GO TO EDIT PANEL FOR DROP TABLE */
|
||||||
|
}));
|
||||||
counter.getSlotsWith("CreateDropTable").forEach(slot -> panel.setOnClick(slot, event -> {
|
counter.getSlotsWith("CreateDropTable").forEach(slot -> panel.setOnClick(slot, event -> {
|
||||||
player.closeInventory();
|
player.closeInventory();
|
||||||
Message.Boss_New_CreateArgumentsDropTable.msg(event.getWhoClicked());
|
Message.Boss_New_CreateArgumentsDropTable.msg(event.getWhoClicked());
|
||||||
|
2
pom.xml
2
pom.xml
@ -19,7 +19,7 @@
|
|||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<plugin.version>1.0.0-U186</plugin.version>
|
<plugin.version>1.0.0-U187</plugin.version>
|
||||||
<plugin.name>EpicBosses</plugin.name>
|
<plugin.name>EpicBosses</plugin.name>
|
||||||
<plugin.main>com.songoda.epicbosses.CustomBosses</plugin.main>
|
<plugin.main>com.songoda.epicbosses.CustomBosses</plugin.main>
|
||||||
<plugin.author>AMinecraftDev</plugin.author>
|
<plugin.author>AMinecraftDev</plugin.author>
|
||||||
|
Loading…
Reference in New Issue
Block a user