Java Code Examples for org.bukkit.Material#NETHER_STAR
The following examples show how to use
org.bukkit.Material#NETHER_STAR .
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: TestCategories.java From Slimefun4 with GNU General Public License v3.0 | 6 votes |
@Test public void testSeasonalCategories() { // Category with current Month Month month = LocalDate.now().getMonth(); SeasonalCategory category = new SeasonalCategory(new NamespacedKey(plugin, "seasonal"), month, 1, new CustomItem(Material.NETHER_STAR, "&cSeasonal Test")); SlimefunItem item = TestUtilities.mockSlimefunItem(plugin, "SEASONAL_ITEM", new CustomItem(Material.NETHER_STAR, "&dSeasonal Test Star")); item.setCategory(category); item.register(plugin); item.load(); Player player = server.addPlayer(); Assertions.assertEquals(month, category.getMonth()); Assertions.assertFalse(category.isHidden(player)); // Category with future Month SeasonalCategory category2 = new SeasonalCategory(category.getKey(), month.plus(6), 1, new CustomItem(Material.MILK_BUCKET, "&dSeasonal Test")); Assertions.assertTrue(category2.isHidden(player)); }
Example 2
Source File: Scorpio.java From AnnihilationPro with MIT License | 4 votes |
@Override protected ItemStack getIcon() { return new ItemStack(Material.NETHER_STAR); }
Example 3
Source File: NetherStarReactor.java From Slimefun4 with GNU General Public License v3.0 | 4 votes |
@Override public ItemStack getFuelIcon() { return new ItemStack(Material.NETHER_STAR); }
Example 4
Source File: NetherStarReactor.java From Slimefun4 with GNU General Public License v3.0 | 4 votes |
@Override public ItemStack getProgressBar() { return new ItemStack(Material.NETHER_STAR); }
Example 5
Source File: TestUtilities.java From Slimefun4 with GNU General Public License v3.0 | 4 votes |
public static Category getCategory(Plugin plugin, String name) { return new Category(new NamespacedKey(plugin, name), new CustomItem(Material.NETHER_STAR, "&4Test Category")); }