Class RaccoonRegistryUtil.CreativeTabs

java.lang.Object
net.kamkeyke.raccooncore.util.RaccoonRegistryUtil.CreativeTabs
Enclosing class:
RaccoonRegistryUtil

public static class RaccoonRegistryUtil.CreativeTabs extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Collection<net.minecraft.world.item.Item>
    getFilteredItems(net.minecraftforge.registries.DeferredRegister<net.minecraft.world.item.Item> register, Set<net.minecraftforge.registries.RegistryObject<?>> excluded)
    Filters a DeferredRegister of items based on a set of exceptions.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CreativeTabs

      public CreativeTabs()
  • Method Details

    • getFilteredItems

      public static Collection<net.minecraft.world.item.Item> getFilteredItems(net.minecraftforge.registries.DeferredRegister<net.minecraft.world.item.Item> register, Set<net.minecraftforge.registries.RegistryObject<?>> excluded)
      Filters a DeferredRegister of items based on a set of exceptions. Use this during Tab initialization to cache the items and avoid re-filtering every time the tab is opened.
      Parameters:
      register - The mod's Item DeferredRegister.
      excluded - A Set of RegistryObjects to be skipped.
      Returns:
      A collection of items ready to be added to a tab.