Java Code Examples for org.bukkit.Material#GOLD_BLOCK
The following examples show how to use
org.bukkit.Material#GOLD_BLOCK .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestRecipeService.java From Slimefun4 with GNU General Public License v3.0 | 6 votes |
@Test public void testFurnaceOutput() { MinecraftRecipeService service = new MinecraftRecipeService(plugin); NamespacedKey key = new NamespacedKey(plugin, "furnace_recipe_test2"); ItemStack result = new ItemStack(Material.GOLD_BLOCK); MaterialChoice materials = new MaterialChoice(Material.DIRT, Material.COBBLESTONE); FurnaceRecipe recipe = new FurnaceRecipe(key, result, materials, 1, 2); server.addRecipe(recipe); // The Snapshot has not been taken, so it should fallback to an empty Optional Assertions.assertFalse(service.getFurnaceOutput(new ItemStack(Material.DIRT)).isPresent()); service.refresh(); Assertions.assertFalse(service.getFurnaceOutput(null).isPresent()); Assertions.assertFalse(service.getFurnaceOutput(new ItemStack(Material.BEDROCK)).isPresent()); Optional<ItemStack> optional = service.getFurnaceOutput(new ItemStack(Material.DIRT)); Assertions.assertTrue(optional.isPresent()); Assertions.assertEquals(result, optional.get()); Optional<ItemStack> optional2 = service.getFurnaceOutput(new ItemStack(Material.COBBLESTONE)); Assertions.assertTrue(optional2.isPresent()); Assertions.assertEquals(result, optional2.get()); }
Example 2
Source File: CoreConvertMonitor.java From PGM with GNU Affero General Public License v3.0 | 5 votes |
public static Material getNext(Material old) { switch (old) { case OBSIDIAN: return Material.GOLD_BLOCK; case GOLD_BLOCK: return Material.GLASS; default: return null; } }
Example 3
Source File: CoreConvertMonitor.java From ProjectAres with GNU Affero General Public License v3.0 | 5 votes |
public static Material getNext(Material old) { switch(old) { case OBSIDIAN: return Material.GOLD_BLOCK; case GOLD_BLOCK: return Material.GLASS; default: return null; } }
Example 4
Source File: GoldenPipe.java From Transport-Pipes with MIT License | 4 votes |
@Override public Material getBreakParticleData() { return Material.GOLD_BLOCK; }