55import org .bukkit .plugin .java .JavaPlugin ;
66
77import io .github .thebusybiscuit .slimefun4 .api .SlimefunAddon ;
8+ import io .github .thebusybiscuit .slimefun4 .api .items .ItemGroup ;
9+ import io .github .thebusybiscuit .slimefun4 .api .recipes .RecipeType ;
810import io .github .thebusybiscuit .slimefun4 .implementation .SlimefunItems ;
9- import me .mrCookieSlime .Slimefun .Lists .RecipeType ;
10- import me .mrCookieSlime .Slimefun .Objects .Category ;
11- import me .mrCookieSlime .Slimefun .cscorelib2 .config .Config ;
12- import me .mrCookieSlime .Slimefun .cscorelib2 .item .CustomItem ;
13- import me .mrCookieSlime .Slimefun .cscorelib2 .skull .SkullItem ;
14- import me .mrCookieSlime .Slimefun .cscorelib2 .updater .GitHubBuildsUpdater ;
11+ import io .github .thebusybiscuit .slimefun4 .libraries .dough .items .CustomItemStack ;
12+ import io .github .thebusybiscuit .slimefun4 .libraries .dough .skins .PlayerHead ;
13+ import io .github .thebusybiscuit .slimefun4 .libraries .dough .skins .PlayerSkin ;
14+ import io .github .thebusybiscuit .slimefun4 .libraries .dough .config .Config ;
15+ import io .github .thebusybiscuit .slimefun4 .libraries .dough .updater .GitHubBuildsUpdater ;
1516
1617public class OreChunks extends JavaPlugin implements SlimefunAddon {
17-
18+
1819 @ Override
1920 public void onEnable () {
2021 Config cfg = new Config (this );
@@ -24,39 +25,39 @@ public void onEnable() {
2425 new GitHubBuildsUpdater (this , getFile (), "TheBusyBiscuit/SlimefunOreChunks/master" ).start ();
2526 }
2627
27- Category category = new Category (new NamespacedKey (this , "ore_chunks" ), new CustomItem ( SkullItem . fromHash ( "dde8f949bbf3a42782c531fbf8de9dc2d8cd84dd7cb8f5d5328eeda83956aac8" ), "&6Ore Chunks" ));
28+ ItemGroup itemGroup = new ItemGroup (new NamespacedKey (this , "ore_chunks" ), new CustomItemStack ( PlayerHead . getItemStack ( PlayerSkin . fromHashCode ( "dde8f949bbf3a42782c531fbf8de9dc2d8cd84dd7cb8f5d5328eeda83956aac8" ) ), "&6Ore Chunks" ));
2829
29- new OreChunk (this , category , "IRON_ORE_CHUNK" , "Iron Ore Chunk" , 4 , "44cc1ccc75d0f724af8a5fe273edaf4c6d5951f9e4d038f9f16e4f2673ce3833" ,
30+ new OreChunk (this , itemGroup , "IRON_ORE_CHUNK" , "Iron Ore Chunk" , 4 , "44cc1ccc75d0f724af8a5fe273edaf4c6d5951f9e4d038f9f16e4f2673ce3833" ,
3031 SlimefunItems .IRON_DUST ).register (this );
3132
32- new OreChunk (this , category , "GOLD_ORE_CHUNK" , "Gold Ore Chunk" , 2 , "3184478b211439f3e2c509c3424ea5ff2fce73825c8bebf96cfccd103e4922eb" ,
33+ new OreChunk (this , itemGroup , "GOLD_ORE_CHUNK" , "Gold Ore Chunk" , 2 , "3184478b211439f3e2c509c3424ea5ff2fce73825c8bebf96cfccd103e4922eb" ,
3334 SlimefunItems .GOLD_DUST ).register (this );
3435
35- new OreChunk (this , category , "COPPER_ORE_CHUNK" , "Copper Ore Chunk" , 5 , "60d748757d6efddde852e0a4a1a9b92f2e4c58b1ea9a1731a32f6cedf2c23b36" ,
36+ new OreChunk (this , itemGroup , "COPPER_ORE_CHUNK" , "Copper Ore Chunk" , 5 , "60d748757d6efddde852e0a4a1a9b92f2e4c58b1ea9a1731a32f6cedf2c23b36" ,
3637 SlimefunItems .COPPER_DUST ).register (this );
3738
38- new OreChunk (this , category , "TIN_ORE_CHUNK" , "Tin Ore Chunk" , 3 , "de2c955177ff65a2d55af17743755090a5a6b68b3586ccbc31a342dad9ef7799" ,
39+ new OreChunk (this , itemGroup , "TIN_ORE_CHUNK" , "Tin Ore Chunk" , 3 , "de2c955177ff65a2d55af17743755090a5a6b68b3586ccbc31a342dad9ef7799" ,
3940 SlimefunItems .TIN_DUST ).register (this );
4041
41- new OreChunk (this , category , "SILVER_ORE_CHUNK" , "Silver Ore Chunk" , 2 , "dde8f949bbf3a42782c531fbf8de9dc2d8cd84dd7cb8f5d5328eeda83956aac8" ,
42+ new OreChunk (this , itemGroup , "SILVER_ORE_CHUNK" , "Silver Ore Chunk" , 2 , "dde8f949bbf3a42782c531fbf8de9dc2d8cd84dd7cb8f5d5328eeda83956aac8" ,
4243 SlimefunItems .SILVER_DUST ).register (this );
4344
44- new OreChunk (this , category , "ALUMINUM_ORE_CHUNK" , "Aluminum Ore Chunk" , 4 , "46732368c980b4c27495664bd50b5820cc37c573fb37a88f34c5d3a0dec66219" ,
45+ new OreChunk (this , itemGroup , "ALUMINUM_ORE_CHUNK" , "Aluminum Ore Chunk" , 4 , "46732368c980b4c27495664bd50b5820cc37c573fb37a88f34c5d3a0dec66219" ,
4546 SlimefunItems .ALUMINUM_DUST ).register (this );
4647
47- new OreChunk (this , category , "LEAD_ORE_CHUNK" , "Lead Ore Chunk" , 2 , "2333fcec07c89c5fdb886caf5e3ebf8c6a536dd662b31f91c1a6dbd913bc3db0" ,
48+ new OreChunk (this , itemGroup , "LEAD_ORE_CHUNK" , "Lead Ore Chunk" , 2 , "2333fcec07c89c5fdb886caf5e3ebf8c6a536dd662b31f91c1a6dbd913bc3db0" ,
4849 SlimefunItems .LEAD_DUST ).register (this );
4950
50- new OreChunk (this , category , "ZINC_ORE_CHUNK" , "Zinc Ore Chunk" , 3 , "63f82f20266b4b8e0456110379f941fca16413846e231e8ac202dc2caf7ffb41" ,
51+ new OreChunk (this , itemGroup , "ZINC_ORE_CHUNK" , "Zinc Ore Chunk" , 3 , "63f82f20266b4b8e0456110379f941fca16413846e231e8ac202dc2caf7ffb41" ,
5152 SlimefunItems .ZINC_DUST ).register (this );
5253
53- new OreChunk (this , category , "MAGNESIUM_ORE_CHUNK" , "Magnesium Ore Chunk" , 4 , "e8c99d857a5b34331699ce6b5449d8d75f6c50b294ea1a29108f66ca086528bb" ,
54+ new OreChunk (this , itemGroup , "MAGNESIUM_ORE_CHUNK" , "Magnesium Ore Chunk" , 4 , "e8c99d857a5b34331699ce6b5449d8d75f6c50b294ea1a29108f66ca086528bb" ,
5455 SlimefunItems .MAGNESIUM_DUST ).register (this );
5556
56- new OreChunk (this , category , "NICKEL_ORE_CHUNK" , "Nickel Ore Chunk" , "&7You can smelt this into an Ingot in a Smeltery" , 2 , "3ba30df8316cdfe3c5b1ad7aa9775c94c3ad5e502ea1254efeb41344f7962381" ,
57+ new OreChunk (this , itemGroup , "NICKEL_ORE_CHUNK" , "Nickel Ore Chunk" , "&7You can smelt this into an Ingot in a Smeltery" , 2 , "3ba30df8316cdfe3c5b1ad7aa9775c94c3ad5e502ea1254efeb41344f7962381" ,
5758 RecipeType .SMELTERY , SlimefunItems .NICKEL_INGOT ).register (this );
5859
59- new OreChunk (this , category , "COBALT_ORE_CHUNK" , "Cobalt Ore Chunk" , "&7You can smelt this into an Ingot in a Smeltery" , 1 , "ec54a54b1a49c29686be1c6e3e05dd068f85e994c8c893838cc5878b5446bc8a" ,
60+ new OreChunk (this , itemGroup , "COBALT_ORE_CHUNK" , "Cobalt Ore Chunk" , "&7You can smelt this into an Ingot in a Smeltery" , 1 , "ec54a54b1a49c29686be1c6e3e05dd068f85e994c8c893838cc5878b5446bc8a" ,
6061 RecipeType .SMELTERY , SlimefunItems .COBALT_INGOT ).register (this );
6162 }
6263
0 commit comments