Dieser Commit ist enthalten in:
Ursprung
418b122f02
Commit
ed57eaec1a
@ -245,6 +245,8 @@ public class BlockBoundingBox {
|
|||||||
eastTrapDoor.setFacing(BlockFace.EAST);
|
eastTrapDoor.setFacing(BlockFace.EAST);
|
||||||
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
|
@ -0,0 +1,22 @@
|
|||||||
|
package de.steamwar.bausystem.features.slaves.laufbau;
|
||||||
|
|
||||||
|
import de.steamwar.bausystem.features.slaves.laufbau.boundingboxes.*;
|
||||||
|
|
||||||
|
public class LaufbauLazyInit {
|
||||||
|
|
||||||
|
public static void init() {
|
||||||
|
}
|
||||||
|
|
||||||
|
static {
|
||||||
|
new BellBoundingBox();
|
||||||
|
new BrewingStandBoundingBox();
|
||||||
|
new ChorusPlantBoundingBox();
|
||||||
|
new FencesBoundingBox();
|
||||||
|
new GrindstoneBoundingBox();
|
||||||
|
new HopperBoundingBox();
|
||||||
|
new IronBarBoundingBox();
|
||||||
|
new LanternBoundingBox();
|
||||||
|
new StairBoundingBox();
|
||||||
|
new WallBoundingBox();
|
||||||
|
}
|
||||||
|
}
|
@ -22,8 +22,6 @@ 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.Cuboid;
|
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
||||||
import de.steamwar.bausystem.linkage.Enable;
|
import de.steamwar.bausystem.linkage.Enable;
|
||||||
import de.steamwar.bausystem.linkage.LinkageType;
|
|
||||||
import de.steamwar.bausystem.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;
|
||||||
@ -34,7 +32,6 @@ 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;
|
||||||
|
|
||||||
@Linked(LinkageType.ENABLE_LINK)
|
|
||||||
public class BellBoundingBox implements Enable {
|
public class BellBoundingBox implements Enable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -22,8 +22,6 @@ 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.Cuboid;
|
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
||||||
import de.steamwar.bausystem.linkage.Enable;
|
import de.steamwar.bausystem.linkage.Enable;
|
||||||
import de.steamwar.bausystem.linkage.LinkageType;
|
|
||||||
import de.steamwar.bausystem.linkage.Linked;
|
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.data.type.BrewingStand;
|
import org.bukkit.block.data.type.BrewingStand;
|
||||||
|
|
||||||
@ -33,7 +31,6 @@ 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;
|
||||||
|
|
||||||
@Linked(LinkageType.ENABLE_LINK)
|
|
||||||
public class BrewingStandBoundingBox implements Enable {
|
public class BrewingStandBoundingBox implements Enable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -22,8 +22,6 @@ 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.Cuboid;
|
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
||||||
import de.steamwar.bausystem.linkage.Enable;
|
import de.steamwar.bausystem.linkage.Enable;
|
||||||
import de.steamwar.bausystem.linkage.LinkageType;
|
|
||||||
import de.steamwar.bausystem.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;
|
||||||
@ -34,7 +32,6 @@ 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;
|
||||||
|
|
||||||
@Linked(LinkageType.ENABLE_LINK)
|
|
||||||
public class ChorusPlantBoundingBox implements Enable {
|
public class ChorusPlantBoundingBox implements Enable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -22,8 +22,6 @@ 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.Cuboid;
|
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
||||||
import de.steamwar.bausystem.linkage.Enable;
|
import de.steamwar.bausystem.linkage.Enable;
|
||||||
import de.steamwar.bausystem.linkage.LinkageType;
|
|
||||||
import de.steamwar.bausystem.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,7 +32,6 @@ 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;
|
||||||
|
|
||||||
@Linked(LinkageType.ENABLE_LINK)
|
|
||||||
public class FencesBoundingBox implements Enable {
|
public class FencesBoundingBox implements Enable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -22,8 +22,6 @@ 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.Cuboid;
|
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
||||||
import de.steamwar.bausystem.linkage.Enable;
|
import de.steamwar.bausystem.linkage.Enable;
|
||||||
import de.steamwar.bausystem.linkage.LinkageType;
|
|
||||||
import de.steamwar.bausystem.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;
|
||||||
@ -35,7 +33,6 @@ 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;
|
||||||
|
|
||||||
@Linked(LinkageType.ENABLE_LINK)
|
|
||||||
public class GrindstoneBoundingBox implements Enable {
|
public class GrindstoneBoundingBox implements Enable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -22,8 +22,6 @@ 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.Cuboid;
|
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
||||||
import de.steamwar.bausystem.linkage.Enable;
|
import de.steamwar.bausystem.linkage.Enable;
|
||||||
import de.steamwar.bausystem.linkage.LinkageType;
|
|
||||||
import de.steamwar.bausystem.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;
|
||||||
@ -34,7 +32,6 @@ 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;
|
||||||
|
|
||||||
@Linked(LinkageType.ENABLE_LINK)
|
|
||||||
public class HopperBoundingBox implements Enable {
|
public class HopperBoundingBox implements Enable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -22,8 +22,6 @@ 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.Cuboid;
|
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
||||||
import de.steamwar.bausystem.linkage.Enable;
|
import de.steamwar.bausystem.linkage.Enable;
|
||||||
import de.steamwar.bausystem.linkage.LinkageType;
|
|
||||||
import de.steamwar.bausystem.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,7 +32,6 @@ 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;
|
||||||
|
|
||||||
@Linked(LinkageType.ENABLE_LINK)
|
|
||||||
public class IronBarBoundingBox implements Enable {
|
public class IronBarBoundingBox implements Enable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -22,8 +22,6 @@ 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.Cuboid;
|
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
||||||
import de.steamwar.bausystem.linkage.Enable;
|
import de.steamwar.bausystem.linkage.Enable;
|
||||||
import de.steamwar.bausystem.linkage.LinkageType;
|
|
||||||
import de.steamwar.bausystem.linkage.Linked;
|
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.data.type.Lantern;
|
import org.bukkit.block.data.type.Lantern;
|
||||||
|
|
||||||
@ -33,7 +31,6 @@ 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;
|
||||||
|
|
||||||
@Linked(LinkageType.ENABLE_LINK)
|
|
||||||
public class LanternBoundingBox implements Enable {
|
public class LanternBoundingBox implements Enable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -22,8 +22,6 @@ 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.Cuboid;
|
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
||||||
import de.steamwar.bausystem.linkage.Enable;
|
import de.steamwar.bausystem.linkage.Enable;
|
||||||
import de.steamwar.bausystem.linkage.LinkageType;
|
|
||||||
import de.steamwar.bausystem.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;
|
||||||
@ -34,7 +32,6 @@ 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;
|
||||||
|
|
||||||
@Linked(LinkageType.ENABLE_LINK)
|
|
||||||
public class StairBoundingBox implements Enable {
|
public class StairBoundingBox implements Enable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -22,8 +22,6 @@ 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.Cuboid;
|
import de.steamwar.bausystem.features.slaves.laufbau.Cuboid;
|
||||||
import de.steamwar.bausystem.linkage.Enable;
|
import de.steamwar.bausystem.linkage.Enable;
|
||||||
import de.steamwar.bausystem.linkage.LinkageType;
|
|
||||||
import de.steamwar.bausystem.linkage.Linked;
|
|
||||||
import de.steamwar.core.Core;
|
import de.steamwar.core.Core;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.BlockFace;
|
import org.bukkit.block.BlockFace;
|
||||||
@ -36,7 +34,6 @@ 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;
|
||||||
|
|
||||||
@Linked(LinkageType.ENABLE_LINK)
|
|
||||||
public class WallBoundingBox implements Enable {
|
public class WallBoundingBox implements Enable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren