@ -69,24 +69,6 @@ public final class SimulatorGroup {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void moveToX(double x) {
|
|
||||||
elements.forEach(simulatorElement -> {
|
|
||||||
simulatorElement.getPosition().setX(x);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
public void moveToY(double y) {
|
|
||||||
elements.forEach(simulatorElement -> {
|
|
||||||
simulatorElement.getPosition().setX(y);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
public void moveToZ(double z) {
|
|
||||||
elements.forEach(simulatorElement -> {
|
|
||||||
simulatorElement.getPosition().setX(z);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
public SWItem toItem(Player player, InvCallback groupCallback, InvCallback itemCallback) {
|
public SWItem toItem(Player player, InvCallback groupCallback, InvCallback itemCallback) {
|
||||||
if (elements.size() == 1) {
|
if (elements.size() == 1) {
|
||||||
return elements.get(0).toItem(player, itemCallback);
|
return elements.get(0).toItem(player, itemCallback);
|
||||||
|
@ -172,7 +172,7 @@ public class SimulatorGroupSettingsGui extends SimulatorBaseGui {
|
|||||||
if(!allTNT){
|
if(!allTNT){
|
||||||
number = (double) Math.round(number);
|
number = (double) Math.round(number);
|
||||||
}
|
}
|
||||||
simulatorGroup.moveToX(number);
|
simulatorGroup.move(number, 0, 0);
|
||||||
SimulatorWatcher.update(simulator);
|
SimulatorWatcher.update(simulator);
|
||||||
return true;
|
return true;
|
||||||
}, this).setItem(Material.PAPER).open();
|
}, this).setItem(Material.PAPER).open();
|
||||||
@ -192,7 +192,7 @@ public class SimulatorGroupSettingsGui extends SimulatorBaseGui {
|
|||||||
if(!allTNT){
|
if(!allTNT){
|
||||||
number = (double) Math.round(number);
|
number = (double) Math.round(number);
|
||||||
}
|
}
|
||||||
simulatorGroup.moveToY(number);
|
simulatorGroup.move(0, number, 0);
|
||||||
SimulatorWatcher.update(simulator);
|
SimulatorWatcher.update(simulator);
|
||||||
return true;
|
return true;
|
||||||
}, this).setItem(Material.PAPER).open();
|
}, this).setItem(Material.PAPER).open();
|
||||||
@ -212,7 +212,7 @@ public class SimulatorGroupSettingsGui extends SimulatorBaseGui {
|
|||||||
if(!allTNT){
|
if(!allTNT){
|
||||||
number = (double) Math.round(number);
|
number = (double) Math.round(number);
|
||||||
}
|
}
|
||||||
simulatorGroup.moveToZ(number);
|
simulatorGroup.move(0, 0, number);
|
||||||
SimulatorWatcher.update(simulator);
|
SimulatorWatcher.update(simulator);
|
||||||
return true;
|
return true;
|
||||||
}, this).setItem(Material.PAPER).open();
|
}, this).setItem(Material.PAPER).open();
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren