@ -30,6 +30,7 @@ import lombok.Getter;
|
|||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.util.Vector;
|
import org.bukkit.util.Vector;
|
||||||
|
import yapion.hierarchy.types.YAPIONObject;
|
||||||
|
|
||||||
public final class TNTElement extends SimulatorElement<TNTPhase> {
|
public final class TNTElement extends SimulatorElement<TNTPhase> {
|
||||||
|
|
||||||
@ -97,4 +98,16 @@ public final class TNTElement extends SimulatorElement<TNTPhase> {
|
|||||||
public String getType() {
|
public String getType() {
|
||||||
return "TNT";
|
return "TNT";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void saveExtra(YAPIONObject elementObject) {
|
||||||
|
elementObject.add("alignmentX", alignment.getX());
|
||||||
|
elementObject.add("alignmentZ", alignment.getZ());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void loadExtra(YAPIONObject elementObject) {
|
||||||
|
alignment.setX(elementObject.getDoubleOrSetDefault("alignmentX", 0));
|
||||||
|
alignment.setZ(elementObject.getDoubleOrSetDefault("alignmentZ", 0));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren