Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
c227a67635
Commit
b8adf7fb08
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
package de.steamwar.bausystem.features.slaves.laufbau;
|
package de.steamwar.bausystem.features.slaves.laufbau;
|
||||||
|
|
||||||
|
import de.steamwar.bausystem.linkage.LinkageUtils;
|
||||||
import de.steamwar.bausystem.utils.NMSWrapper;
|
import de.steamwar.bausystem.utils.NMSWrapper;
|
||||||
import de.steamwar.core.Core;
|
import de.steamwar.core.Core;
|
||||||
import de.steamwar.inventory.SWItem;
|
import de.steamwar.inventory.SWItem;
|
||||||
@ -264,7 +265,7 @@ public class BlockBoundingBox {
|
|||||||
eastTrapDoor.setOpen(true);
|
eastTrapDoor.setOpen(true);
|
||||||
addPixel(eastTrapDoor, 0, 0, 0, 3, 16, 16, createItem("LAUFBAU_BLOCK_IRON_TRAPDOOR", Material.IRON_TRAPDOOR, "LAUFBAU_FACING_EAST", "LAUFBAU_OPEN"));
|
addPixel(eastTrapDoor, 0, 0, 0, 3, 16, 16, createItem("LAUFBAU_BLOCK_IRON_TRAPDOOR", Material.IRON_TRAPDOOR, "LAUFBAU_FACING_EAST", "LAUFBAU_OPEN"));
|
||||||
|
|
||||||
LaufbauLazyInit.init();
|
LinkageUtils.linkBoundingBox();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void addPixel(BlockData blockData, double xPixel, double yPixel, double zPixel, double dxPixel, double dyPixel, double dzPixel, SWItem swItem) {
|
private static void addPixel(BlockData blockData, double xPixel, double yPixel, double zPixel, double dxPixel, double dyPixel, double dzPixel, SWItem swItem) {
|
||||||
|
@ -1,35 +0,0 @@
|
|||||||
package de.steamwar.bausystem.features.slaves.laufbau;
|
|
||||||
|
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.boundingboxes.*;
|
|
||||||
import de.steamwar.core.Core;
|
|
||||||
import lombok.experimental.UtilityClass;
|
|
||||||
|
|
||||||
@UtilityClass
|
|
||||||
public class LaufbauLazyInit {
|
|
||||||
|
|
||||||
public static void init() {
|
|
||||||
}
|
|
||||||
|
|
||||||
static {
|
|
||||||
new BellBoundingBox().enable();
|
|
||||||
new BrewingStandBoundingBox().enable();
|
|
||||||
new ChorusPlantBoundingBox().enable();
|
|
||||||
new FencesBoundingBox().enable();
|
|
||||||
new GrindstoneBoundingBox().enable();
|
|
||||||
new HopperBoundingBox().enable();
|
|
||||||
new IronBarBoundingBox().enable();
|
|
||||||
new LanternBoundingBox().enable();
|
|
||||||
new StairBoundingBox().enable();
|
|
||||||
new WallBoundingBox().enable();
|
|
||||||
new LecternBoundingBox().enable();
|
|
||||||
|
|
||||||
if (Core.getVersion() >= 19) {
|
|
||||||
new AmethystBoundingBox().enable();
|
|
||||||
new ChainBoundingBox().enable();
|
|
||||||
new DripLeafBoundingBox().enable();
|
|
||||||
new DragonEggBoundingBox().enable();
|
|
||||||
new AzaleaBoundingBox().enable();
|
|
||||||
new CandleBoundingBox().enable();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -20,8 +20,10 @@
|
|||||||
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
||||||
|
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
||||||
|
import de.steamwar.bausystem.features.slaves.laufbau.BoundingBoxLoader;
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
||||||
import de.steamwar.bausystem.linkage.Enable;
|
import de.steamwar.linkage.Linked;
|
||||||
|
import de.steamwar.linkage.MinVersion;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.BlockFace;
|
import org.bukkit.block.BlockFace;
|
||||||
import org.bukkit.block.data.type.AmethystCluster;
|
import org.bukkit.block.data.type.AmethystCluster;
|
||||||
@ -32,10 +34,12 @@ import java.util.List;
|
|||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
||||||
|
|
||||||
public class AmethystBoundingBox implements Enable {
|
@Linked
|
||||||
|
@MinVersion(19)
|
||||||
|
public class AmethystBoundingBox implements BoundingBoxLoader {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void enable() {
|
public void load() {
|
||||||
floorSmallAmethystBud();
|
floorSmallAmethystBud();
|
||||||
ceilingSmallAmethystBud();
|
ceilingSmallAmethystBud();
|
||||||
northSmallAmethystBud();
|
northSmallAmethystBud();
|
||||||
|
@ -20,8 +20,10 @@
|
|||||||
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
||||||
|
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
||||||
|
import de.steamwar.bausystem.features.slaves.laufbau.BoundingBoxLoader;
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
||||||
import de.steamwar.bausystem.linkage.Enable;
|
import de.steamwar.linkage.Linked;
|
||||||
|
import de.steamwar.linkage.MinVersion;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.data.BlockData;
|
import org.bukkit.block.data.BlockData;
|
||||||
|
|
||||||
@ -31,10 +33,12 @@ import java.util.List;
|
|||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
||||||
|
|
||||||
public class AzaleaBoundingBox implements Enable {
|
@Linked
|
||||||
|
@MinVersion(19)
|
||||||
|
public class AzaleaBoundingBox implements BoundingBoxLoader {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void enable() {
|
public void load() {
|
||||||
BlockData blockData = Material.FLOWERING_AZALEA.createBlockData();
|
BlockData blockData = Material.FLOWERING_AZALEA.createBlockData();
|
||||||
List<Cuboid> cuboidList = new ArrayList<>();
|
List<Cuboid> cuboidList = new ArrayList<>();
|
||||||
cuboidList.add(pixelCuboid(0, 8, 0, 16, 8, 16));
|
cuboidList.add(pixelCuboid(0, 8, 0, 16, 8, 16));
|
||||||
|
@ -20,8 +20,9 @@
|
|||||||
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
||||||
|
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
||||||
|
import de.steamwar.bausystem.features.slaves.laufbau.BoundingBoxLoader;
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
||||||
import de.steamwar.bausystem.linkage.Enable;
|
import de.steamwar.linkage.Linked;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.BlockFace;
|
import org.bukkit.block.BlockFace;
|
||||||
import org.bukkit.block.data.type.Bell;
|
import org.bukkit.block.data.type.Bell;
|
||||||
@ -32,10 +33,11 @@ import java.util.List;
|
|||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
||||||
|
|
||||||
public class BellBoundingBox implements Enable {
|
@Linked
|
||||||
|
public class BellBoundingBox implements BoundingBoxLoader {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void enable() {
|
public void load() {
|
||||||
ceilingBell();
|
ceilingBell();
|
||||||
|
|
||||||
floorNorthBell();
|
floorNorthBell();
|
||||||
|
@ -20,8 +20,9 @@
|
|||||||
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
||||||
|
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
||||||
|
import de.steamwar.bausystem.features.slaves.laufbau.BoundingBoxLoader;
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
||||||
import de.steamwar.bausystem.linkage.Enable;
|
import de.steamwar.linkage.Linked;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.data.type.BrewingStand;
|
import org.bukkit.block.data.type.BrewingStand;
|
||||||
|
|
||||||
@ -31,10 +32,11 @@ import java.util.List;
|
|||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
||||||
|
|
||||||
public class BrewingStandBoundingBox implements Enable {
|
@Linked
|
||||||
|
public class BrewingStandBoundingBox implements BoundingBoxLoader {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void enable() {
|
public void load() {
|
||||||
BrewingStand brewingStand = (BrewingStand) Material.BREWING_STAND.createBlockData();
|
BrewingStand brewingStand = (BrewingStand) Material.BREWING_STAND.createBlockData();
|
||||||
List<Cuboid> cuboids = new ArrayList<>();
|
List<Cuboid> cuboids = new ArrayList<>();
|
||||||
cuboids.add(pixelCuboid(1, 0, 1, 14, 2, 14));
|
cuboids.add(pixelCuboid(1, 0, 1, 14, 2, 14));
|
||||||
|
@ -20,8 +20,10 @@
|
|||||||
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
||||||
|
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
||||||
|
import de.steamwar.bausystem.features.slaves.laufbau.BoundingBoxLoader;
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
||||||
import de.steamwar.bausystem.linkage.Enable;
|
import de.steamwar.linkage.Linked;
|
||||||
|
import de.steamwar.linkage.MinVersion;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.data.Lightable;
|
import org.bukkit.block.data.Lightable;
|
||||||
import org.bukkit.block.data.type.Candle;
|
import org.bukkit.block.data.type.Candle;
|
||||||
@ -32,10 +34,12 @@ import java.util.List;
|
|||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
||||||
|
|
||||||
public class CandleBoundingBox implements Enable {
|
@Linked
|
||||||
|
@MinVersion(19)
|
||||||
|
public class CandleBoundingBox implements BoundingBoxLoader {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void enable() {
|
public void load() {
|
||||||
caked();
|
caked();
|
||||||
|
|
||||||
single();
|
single();
|
||||||
|
@ -20,8 +20,10 @@
|
|||||||
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
||||||
|
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
||||||
|
import de.steamwar.bausystem.features.slaves.laufbau.BoundingBoxLoader;
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
||||||
import de.steamwar.bausystem.linkage.Enable;
|
import de.steamwar.linkage.Linked;
|
||||||
|
import de.steamwar.linkage.MinVersion;
|
||||||
import org.bukkit.Axis;
|
import org.bukkit.Axis;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.data.Orientable;
|
import org.bukkit.block.data.Orientable;
|
||||||
@ -32,10 +34,12 @@ import java.util.List;
|
|||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
||||||
|
|
||||||
public class ChainBoundingBox implements Enable {
|
@Linked
|
||||||
|
@MinVersion(19)
|
||||||
|
public class ChainBoundingBox implements BoundingBoxLoader {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void enable() {
|
public void load() {
|
||||||
bottomTopChain();
|
bottomTopChain();
|
||||||
northSouthChain();
|
northSouthChain();
|
||||||
eastWestChain();
|
eastWestChain();
|
||||||
|
@ -20,8 +20,9 @@
|
|||||||
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
||||||
|
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
||||||
|
import de.steamwar.bausystem.features.slaves.laufbau.BoundingBoxLoader;
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
||||||
import de.steamwar.bausystem.linkage.Enable;
|
import de.steamwar.linkage.Linked;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.BlockFace;
|
import org.bukkit.block.BlockFace;
|
||||||
import org.bukkit.block.data.MultipleFacing;
|
import org.bukkit.block.data.MultipleFacing;
|
||||||
@ -32,10 +33,11 @@ import java.util.List;
|
|||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
||||||
|
|
||||||
public class ChorusPlantBoundingBox implements Enable {
|
@Linked
|
||||||
|
public class ChorusPlantBoundingBox implements BoundingBoxLoader {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void enable() {
|
public void load() {
|
||||||
for (int nx = 0; nx < 2; nx++) {
|
for (int nx = 0; nx < 2; nx++) {
|
||||||
for (int ny = 0; ny < 2; ny++) {
|
for (int ny = 0; ny < 2; ny++) {
|
||||||
for (int nz = 0; nz < 2; nz++) {
|
for (int nz = 0; nz < 2; nz++) {
|
||||||
|
@ -20,8 +20,10 @@
|
|||||||
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
||||||
|
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
||||||
|
import de.steamwar.bausystem.features.slaves.laufbau.BoundingBoxLoader;
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
||||||
import de.steamwar.bausystem.linkage.Enable;
|
import de.steamwar.linkage.Linked;
|
||||||
|
import de.steamwar.linkage.MinVersion;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.data.BlockData;
|
import org.bukkit.block.data.BlockData;
|
||||||
|
|
||||||
@ -31,10 +33,12 @@ import java.util.List;
|
|||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
||||||
|
|
||||||
public class DragonEggBoundingBox implements Enable {
|
@Linked
|
||||||
|
@MinVersion(19)
|
||||||
|
public class DragonEggBoundingBox implements BoundingBoxLoader {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void enable() {
|
public void load() {
|
||||||
BlockData blockData = Material.DRAGON_EGG.createBlockData();
|
BlockData blockData = Material.DRAGON_EGG.createBlockData();
|
||||||
List<Cuboid> cuboidList = new ArrayList<>();
|
List<Cuboid> cuboidList = new ArrayList<>();
|
||||||
cuboidList.add(pixelCuboid(1, 0, 1, 14, 16, 14));
|
cuboidList.add(pixelCuboid(1, 0, 1, 14, 16, 14));
|
||||||
|
@ -20,8 +20,10 @@
|
|||||||
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
||||||
|
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
||||||
|
import de.steamwar.bausystem.features.slaves.laufbau.BoundingBoxLoader;
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
||||||
import de.steamwar.bausystem.linkage.Enable;
|
import de.steamwar.linkage.Linked;
|
||||||
|
import de.steamwar.linkage.MinVersion;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.data.type.BigDripleaf;
|
import org.bukkit.block.data.type.BigDripleaf;
|
||||||
|
|
||||||
@ -31,10 +33,12 @@ import java.util.List;
|
|||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
||||||
|
|
||||||
public class DripLeafBoundingBox implements Enable {
|
@Linked
|
||||||
|
@MinVersion(19)
|
||||||
|
public class DripLeafBoundingBox implements BoundingBoxLoader {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void enable() {
|
public void load() {
|
||||||
tiltNone();
|
tiltNone();
|
||||||
tiltPartial();
|
tiltPartial();
|
||||||
}
|
}
|
||||||
|
@ -20,8 +20,9 @@
|
|||||||
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
||||||
|
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
||||||
|
import de.steamwar.bausystem.features.slaves.laufbau.BoundingBoxLoader;
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
||||||
import de.steamwar.bausystem.linkage.Enable;
|
import de.steamwar.linkage.Linked;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.BlockFace;
|
import org.bukkit.block.BlockFace;
|
||||||
import org.bukkit.block.data.type.Fence;
|
import org.bukkit.block.data.type.Fence;
|
||||||
@ -32,10 +33,11 @@ import java.util.List;
|
|||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
||||||
|
|
||||||
public class FencesBoundingBox implements Enable {
|
@Linked
|
||||||
|
public class FencesBoundingBox implements BoundingBoxLoader {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void enable() {
|
public void load() {
|
||||||
for (int nx = 0; nx < 2; nx++) {
|
for (int nx = 0; nx < 2; nx++) {
|
||||||
for (int nz = 0; nz < 2; nz++) {
|
for (int nz = 0; nz < 2; nz++) {
|
||||||
for (int px = 0; px < 2; px++) {
|
for (int px = 0; px < 2; px++) {
|
||||||
|
@ -20,8 +20,9 @@
|
|||||||
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
||||||
|
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
||||||
|
import de.steamwar.bausystem.features.slaves.laufbau.BoundingBoxLoader;
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
||||||
import de.steamwar.bausystem.linkage.Enable;
|
import de.steamwar.linkage.Linked;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.BlockFace;
|
import org.bukkit.block.BlockFace;
|
||||||
import org.bukkit.block.data.FaceAttachable;
|
import org.bukkit.block.data.FaceAttachable;
|
||||||
@ -33,10 +34,11 @@ import java.util.List;
|
|||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
||||||
|
|
||||||
public class GrindstoneBoundingBox implements Enable {
|
@Linked
|
||||||
|
public class GrindstoneBoundingBox implements BoundingBoxLoader {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void enable() {
|
public void load() {
|
||||||
floorNorthGrindstone();
|
floorNorthGrindstone();
|
||||||
floorEastGrindstone();
|
floorEastGrindstone();
|
||||||
|
|
||||||
|
@ -20,8 +20,9 @@
|
|||||||
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
||||||
|
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
||||||
|
import de.steamwar.bausystem.features.slaves.laufbau.BoundingBoxLoader;
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
||||||
import de.steamwar.bausystem.linkage.Enable;
|
import de.steamwar.linkage.Linked;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.BlockFace;
|
import org.bukkit.block.BlockFace;
|
||||||
import org.bukkit.block.data.type.Hopper;
|
import org.bukkit.block.data.type.Hopper;
|
||||||
@ -32,10 +33,11 @@ import java.util.List;
|
|||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
||||||
|
|
||||||
public class HopperBoundingBox implements Enable {
|
@Linked
|
||||||
|
public class HopperBoundingBox implements BoundingBoxLoader {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void enable() {
|
public void load() {
|
||||||
downHopper();
|
downHopper();
|
||||||
northHopper();
|
northHopper();
|
||||||
southHopper();
|
southHopper();
|
||||||
|
@ -20,8 +20,9 @@
|
|||||||
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
||||||
|
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
||||||
|
import de.steamwar.bausystem.features.slaves.laufbau.BoundingBoxLoader;
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
||||||
import de.steamwar.bausystem.linkage.Enable;
|
import de.steamwar.linkage.Linked;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.BlockFace;
|
import org.bukkit.block.BlockFace;
|
||||||
import org.bukkit.block.data.type.Fence;
|
import org.bukkit.block.data.type.Fence;
|
||||||
@ -32,10 +33,11 @@ import java.util.List;
|
|||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
||||||
|
|
||||||
public class IronBarBoundingBox implements Enable {
|
@Linked
|
||||||
|
public class IronBarBoundingBox implements BoundingBoxLoader {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void enable() {
|
public void load() {
|
||||||
for (int nx = 0; nx < 2; nx++) {
|
for (int nx = 0; nx < 2; nx++) {
|
||||||
for (int nz = 0; nz < 2; nz++) {
|
for (int nz = 0; nz < 2; nz++) {
|
||||||
for (int px = 0; px < 2; px++) {
|
for (int px = 0; px < 2; px++) {
|
||||||
|
@ -20,8 +20,9 @@
|
|||||||
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
||||||
|
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
||||||
|
import de.steamwar.bausystem.features.slaves.laufbau.BoundingBoxLoader;
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
||||||
import de.steamwar.bausystem.linkage.Enable;
|
import de.steamwar.linkage.Linked;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.data.type.Lantern;
|
import org.bukkit.block.data.type.Lantern;
|
||||||
|
|
||||||
@ -31,10 +32,11 @@ import java.util.List;
|
|||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
||||||
|
|
||||||
public class LanternBoundingBox implements Enable {
|
@Linked
|
||||||
|
public class LanternBoundingBox implements BoundingBoxLoader {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void enable() {
|
public void load() {
|
||||||
lantern();
|
lantern();
|
||||||
hangingLantern();
|
hangingLantern();
|
||||||
}
|
}
|
||||||
|
@ -20,8 +20,9 @@
|
|||||||
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
||||||
|
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
||||||
|
import de.steamwar.bausystem.features.slaves.laufbau.BoundingBoxLoader;
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
||||||
import de.steamwar.bausystem.linkage.Enable;
|
import de.steamwar.linkage.Linked;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.data.BlockData;
|
import org.bukkit.block.data.BlockData;
|
||||||
|
|
||||||
@ -31,10 +32,11 @@ import java.util.List;
|
|||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
||||||
|
|
||||||
public class LecternBoundingBox implements Enable {
|
@Linked
|
||||||
|
public class LecternBoundingBox implements BoundingBoxLoader {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void enable() {
|
public void load() {
|
||||||
BlockData blockData = Material.LECTERN.createBlockData();
|
BlockData blockData = Material.LECTERN.createBlockData();
|
||||||
List<Cuboid> cuboidList = new ArrayList<>();
|
List<Cuboid> cuboidList = new ArrayList<>();
|
||||||
cuboidList.add(pixelCuboid(0, 0, 0, 16, 2, 16));
|
cuboidList.add(pixelCuboid(0, 0, 0, 16, 2, 16));
|
||||||
|
@ -20,8 +20,9 @@
|
|||||||
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
||||||
|
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
||||||
|
import de.steamwar.bausystem.features.slaves.laufbau.BoundingBoxLoader;
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
||||||
import de.steamwar.bausystem.linkage.Enable;
|
import de.steamwar.linkage.Linked;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.BlockFace;
|
import org.bukkit.block.BlockFace;
|
||||||
import org.bukkit.block.data.type.Stairs;
|
import org.bukkit.block.data.type.Stairs;
|
||||||
@ -32,10 +33,11 @@ import java.util.List;
|
|||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
||||||
|
|
||||||
public class StairBoundingBox implements Enable {
|
@Linked
|
||||||
|
public class StairBoundingBox implements BoundingBoxLoader {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void enable() {
|
public void load() {
|
||||||
straightBottomNorthStair();
|
straightBottomNorthStair();
|
||||||
straightBottomSouthStair();
|
straightBottomSouthStair();
|
||||||
straightBottomEastStair();
|
straightBottomEastStair();
|
||||||
|
@ -20,9 +20,10 @@
|
|||||||
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
package de.steamwar.bausystem.features.slaves.laufbau.boundingboxes;
|
||||||
|
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
import de.steamwar.bausystem.features.slaves.laufbau.BlockBoundingBox;
|
||||||
|
import de.steamwar.bausystem.features.slaves.laufbau.BoundingBoxLoader;
|
||||||
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
||||||
import de.steamwar.bausystem.linkage.Enable;
|
|
||||||
import de.steamwar.core.Core;
|
import de.steamwar.core.Core;
|
||||||
|
import de.steamwar.linkage.Linked;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.BlockFace;
|
import org.bukkit.block.BlockFace;
|
||||||
import org.bukkit.block.data.type.Fence;
|
import org.bukkit.block.data.type.Fence;
|
||||||
@ -34,10 +35,11 @@ import java.util.List;
|
|||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.createItem;
|
||||||
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
import static de.steamwar.bausystem.features.slaves.laufbau.LaufbauUtils.pixelCuboid;
|
||||||
|
|
||||||
public class WallBoundingBox implements Enable {
|
@Linked
|
||||||
|
public class WallBoundingBox implements BoundingBoxLoader {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void enable() {
|
public void load() {
|
||||||
if (Core.getVersion() > 15) {
|
if (Core.getVersion() > 15) {
|
||||||
v18();
|
v18();
|
||||||
} else {
|
} else {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren