SimRework2.0 #216
@ -1,8 +1,11 @@
|
||||
package de.steamwar.bausystem.features.simulator2.data;
|
||||
|
||||
import org.bukkit.Material;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class Simulator {
|
||||
private Material material = Material.BARREL;
|
||||
private List<SimulatorGroup> elements = new ArrayList<>();
|
||||
}
|
||||
|
@ -1,10 +1,13 @@
|
||||
package de.steamwar.bausystem.features.simulator2.data;
|
||||
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public abstract class SimulatorElement<T extends SimulatorSetting> {
|
||||
protected Material material;
|
||||
protected Vector position;
|
||||
protected List<T> settings = new ArrayList<>();
|
||||
|
||||
|
||||
}
|
||||
|
@ -1,8 +1,11 @@
|
||||
package de.steamwar.bausystem.features.simulator2.data;
|
||||
|
||||
import org.bukkit.Material;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class SimulatorGroup {
|
||||
private Material material = Material.CHEST;
|
||||
private List<SimulatorElement<?>> elements = new ArrayList<>();
|
||||
}
|
||||
|
@ -19,5 +19,8 @@
|
||||
|
||||
package de.steamwar.bausystem.features.simulator2.data;
|
||||
|
||||
public interface SimulatorSetting {
|
||||
public abstract class SimulatorSetting {
|
||||
protected int tickOffset;
|
||||
protected int lifetime = 80;
|
||||
protected int order = 1;
|
||||
}
|
||||
|
@ -2,5 +2,5 @@ package de.steamwar.bausystem.features.simulator2.data.redstone;
|
||||
|
||||
import de.steamwar.bausystem.features.simulator2.data.SimulatorSetting;
|
||||
|
||||
public class RedstoneSetting implements SimulatorSetting {
|
||||
public class RedstoneSetting extends SimulatorSetting {
|
||||
}
|
||||
|
@ -2,5 +2,10 @@ package de.steamwar.bausystem.features.simulator2.data.tnt;
|
||||
|
||||
import de.steamwar.bausystem.features.simulator2.data.SimulatorSetting;
|
||||
|
||||
public class TNTSetting implements SimulatorSetting {
|
||||
public class TNTSetting extends SimulatorSetting {
|
||||
private int count = 1;
|
||||
private boolean xJump = false;
|
||||
private boolean yJump = false;
|
||||
private boolean zJump = false;
|
||||
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren