Add Subpixel alignment to SimTNTSettingGui
Dieser Commit ist enthalten in:
Ursprung
fbe4f00ac0
Commit
148761fa63
@ -27,6 +27,7 @@ import de.steamwar.bausystem.features.simulator2.gui.utils.SimulatorMaterialGui;
|
||||
import de.steamwar.inventory.SWItem;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
@ -86,29 +87,29 @@ public class SimulatorTNTSettingsGui extends SimulatorBaseGui {
|
||||
|
||||
// Subpixel Alignment
|
||||
inventory.setItem(24, new SWItem(Material.SUNFLOWER, "§7Align§8: §eCenter", clickType -> {
|
||||
// tnt.align(new Vector()); TODO Finalize
|
||||
tnt.align(new Vector(0.5, 0, 0.5));
|
||||
SimulatorWatcher.update(simulator);
|
||||
}));
|
||||
|
||||
//z
|
||||
inventory.setItem(23, new SWItem(Material.OAK_BUTTON, "§7Align§8: §eNegativ Z", clickType -> {
|
||||
|
||||
tnt.align(new Vector(0, 0, 0.49));
|
||||
SimulatorWatcher.update(simulator);
|
||||
}));
|
||||
|
||||
inventory.setItem(25, new SWItem(Material.OAK_BUTTON, "§7Align§8: §ePositiv Z", clickType -> {
|
||||
|
||||
tnt.align(new Vector(0, 0, 0.51));
|
||||
SimulatorWatcher.update(simulator);
|
||||
}));
|
||||
|
||||
//X
|
||||
inventory.setItem(15, new SWItem(Material.OAK_BUTTON, "§7Align§8: §eNegativ Z", clickType -> {
|
||||
|
||||
inventory.setItem(15, new SWItem(Material.OAK_BUTTON, "§7Align§8: §eNegativ X", clickType -> {
|
||||
tnt.align(new Vector(0.49, 0, 0));
|
||||
SimulatorWatcher.update(simulator);
|
||||
}));
|
||||
|
||||
inventory.setItem(33, new SWItem(Material.OAK_BUTTON, "§7Align§8: §ePositiv Z", clickType -> {
|
||||
|
||||
inventory.setItem(33, new SWItem(Material.OAK_BUTTON, "§7Align§8: §ePositiv X", clickType -> {
|
||||
tnt.align(new Vector(0.51, 0, 0));
|
||||
SimulatorWatcher.update(simulator);
|
||||
}));
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren