Class ConglomerateOfItems

java.lang.Object
net.mcexpanded.fancytabsections.creativetab.ConglomerateOfItems

public class ConglomerateOfItems extends Object
Stores several objects which represent ItemStacks in some way
Since:
2.0
  • Field Details

    • conglomerate

      public final List<Object> conglomerate
  • Constructor Details

    • ConglomerateOfItems

      public ConglomerateOfItems()
  • Method Details

    • create

      public static ConglomerateOfItems create()
    • getStacks

      public List<net.minecraft.world.item.ItemStack> getStacks()
      Since:
      4.0
    • resolveStacks

      public void resolveStacks(net.minecraft.core.RegistryAccess registryAccess)
      Since:
      4.0
    • add

      public ConglomerateOfItems add(net.minecraft.world.item.Item item)
      Add an Item to the conglomerate. The item is later resolved into an ItemStack using Item.getDefaultInstance()}
      Since:
      2.0
    • add

      public ConglomerateOfItems add(net.minecraft.world.item.ItemStack stack)
      Add an ItemStack to the conglomerate. The ItemStack is not resolved and is directly passed.
      Since:
      2.0
    • add

      public ConglomerateOfItems add(net.neoforged.neoforge.registries.DeferredItem<net.minecraft.world.item.Item> deferredItem)
      Add a DeferredItem to the conglomerate. You may call this even before registration happens. The DeferredItem is later resolved into an ItemStack using DeferredItem.toStack()
      Since:
      2.0
    • add

      public ConglomerateOfItems add(net.minecraft.world.level.ItemLike itemLike)
      Add a ItemLike to the conglomerate. The ItemLike is later resolved into an ItemStack using ItemLike.asItem() and Item.getDefaultInstance()
      Since:
      2.0
    • add

      public ConglomerateOfItems add(net.neoforged.neoforge.registries.DeferredRegister.Items deferredRegister)
      Add a DeferredRegister.Items to the conglomerate. The DeferredRegister is later resolved, adding every entry as an Itemstack using Item.getDefaultInstance()
      Since:
      2.0
    • add

      public ConglomerateOfItems add(Supplier<net.minecraft.world.item.ItemStack> itemStackSupplier)
      Add a Supplier of ItemStack to the conglomerate. The Supplier is later resolved, adding the ItemStack
      Since:
      2.0
    • add

      public ConglomerateOfItems add(List<net.minecraft.world.item.ItemStack> listofStacks)
      Add a List of ItemStacks to the conglomerate.
      Since:
      4.0
    • add

      Add a RegistryDependentEntry to the conglomerate. This entry has RegistryAccess The entry is later resolved, adding all the ItemStacks returned
      Since:
      4.0