SimRework2.0 #216
@ -101,7 +101,11 @@ public class SimulatorRedstoneGui extends SimulatorScrollGui<RedstoneSetting> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SWItem[] column(RedstoneSetting redstoneSetting) {
|
public SWItem[] column(RedstoneSetting redstoneSetting) {
|
||||||
SWItem redstone = new SWItem(Material.REDSTONE_BLOCK, "§eRedstone§8:§7 " + redstoneSetting.getTickOffset(), Arrays.asList("§7Fuse§8:§e " + redstoneSetting.getLifetime(), "", "§7Order§8:§e " + redstoneSetting.getOrder()), false, clickType -> {});
|
SWItem redstone = new SWItem(Material.REDSTONE_BLOCK, "§eRedstone§8:§7 " + redstoneSetting.getTickOffset(), Arrays.asList("§7Fuse§8:§e " + redstoneSetting.getLifetime(), "", "§7Order§8:§e " + redstoneSetting.getOrder()), false, clickType -> {
|
||||||
|
//Quick remove per rightclick
|
||||||
|
if (clickType.isRightClick()) redstoneElement.getSettings().remove(redstoneSetting);
|
||||||
|
SimulatorWatcher.update(simulator);
|
||||||
|
});
|
||||||
redstone.getItemStack().setAmount(Math.max(1, Math.min(redstoneSetting.getTickOffset(), 64)));
|
redstone.getItemStack().setAmount(Math.max(1, Math.min(redstoneSetting.getTickOffset(), 64)));
|
||||||
|
|
||||||
return new SWItem[] {
|
return new SWItem[] {
|
||||||
|
@ -89,7 +89,11 @@ public class SimulatorTNTGui extends SimulatorScrollGui<TNTSetting> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SWItem[] column(TNTSetting tntSetting) {
|
public SWItem[] column(TNTSetting tntSetting) {
|
||||||
SWItem tnt = new SWItem(Material.TNT, "§eTNT§8:§7 " + tntSetting.getCount(), Arrays.asList("§7Tick§8: §e" + tntSetting.getTickOffset(), "§7Fuse§8:§e " + tntSetting.getLifetime(), "", "§7Order§8:§e " + tntSetting.getOrder(), "", "§7X-Jump§8: " + (tntSetting.isXJump() ? "§aOn" : "§cOff"), "§7Y-Jump§8: " + (tntSetting.isYJump() ? "§aOn" : "§cOff"), "§7Z-Jump§8: " + (tntSetting.isZJump() ? "§aOn" : "§cOff")), false, clickType -> {});
|
SWItem tnt = new SWItem(Material.TNT, "§eTNT§8:§7 " + tntSetting.getCount(), Arrays.asList("§7Tick§8: §e" + tntSetting.getTickOffset(), "§7Fuse§8:§e " + tntSetting.getLifetime(), "", "§7Order§8:§e " + tntSetting.getOrder(), "", "§7X-Jump§8: " + (tntSetting.isXJump() ? "§aOn" : "§cOff"), "§7Y-Jump§8: " + (tntSetting.isYJump() ? "§aOn" : "§cOff"), "§7Z-Jump§8: " + (tntSetting.isZJump() ? "§aOn" : "§cOff")), false, clickType -> {
|
||||||
|
//Quick remove per rightclick
|
||||||
|
if (clickType.isRightClick()) tntElement.getSettings().remove(tntSetting);
|
||||||
|
SimulatorWatcher.update(simulator);
|
||||||
|
});
|
||||||
tnt.getItemStack().setAmount(Math.min(tntSetting.getCount(), 64));
|
tnt.getItemStack().setAmount(Math.min(tntSetting.getCount(), 64));
|
||||||
|
|
||||||
return new SWItem[] {
|
return new SWItem[] {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren