package org.bukkit.support; import com.google.common.collect.ImmutableList; import java.util.List; import net.minecraft.server.DispenserRegistry; import org.bukkit.Material; import org.junit.BeforeClass; /** * If you are getting: java.lang.ExceptionInInitializerError * at net.minecraft.server.StatisticList.(SourceFile:58) * at net.minecraft.server.Item.(SourceFile:252) * at net.minecraft.server.Block.(Block.java:577) * * extend this class to solve it. */ public abstract class AbstractTestingBase { public static final List INVALIDATED_MATERIALS = ImmutableList.builder() .add( Material.BREWING_STAND, Material.BED_BLOCK, Material.NETHER_WARTS, Material.CAULDRON, Material.FLOWER_POT, Material.CROPS, Material.SUGAR_CANE_BLOCK, Material.CAKE_BLOCK, Material.SKULL, Material.PISTON_EXTENSION, Material.PISTON_MOVING_PIECE, Material.GLOWING_REDSTONE_ORE, Material.DIODE_BLOCK_ON, Material.PUMPKIN_STEM, Material.SIGN_POST, Material.REDSTONE_COMPARATOR_ON, Material.TRIPWIRE, Material.REDSTONE_LAMP_ON, Material.MELON_STEM, Material.REDSTONE_TORCH_OFF, Material.REDSTONE_COMPARATOR_OFF, Material.REDSTONE_WIRE, Material.WALL_SIGN, Material.DIODE_BLOCK_OFF, Material.IRON_DOOR_BLOCK, Material.WOODEN_DOOR, Material.LOCKED_CHEST, Material.WATER, Material.STATIONARY_WATER, Material.LAVA, Material.STATIONARY_LAVA, Material.DOUBLE_STEP, Material.DOUBLE_STEP, Material.FIRE, Material.PORTAL, Material.ENDER_PORTAL, Material.WOOD_DOUBLE_STEP, Material.COCOA, Material.CARROT, Material.POTATO, Material.STANDING_BANNER, Material.WALL_BANNER, Material.DAYLIGHT_DETECTOR_INVERTED, Material.DOUBLE_STONE_SLAB2, Material.SPRUCE_DOOR, Material.BIRCH_DOOR, Material.JUNGLE_DOOR, Material.ACACIA_DOOR, Material.DARK_OAK_DOOR ).build(); @BeforeClass public static void setup() { DispenserRegistry.c(); DummyServer.setup(); DummyPotions.setup(); DummyEnchantments.setup(); } }