Class ConglomerateOfItems
java.lang.Object
net.mcexpanded.fancytabsections.creativetab.ConglomerateOfItems
Stores several objects which represent ItemStacks in some way
- Since:
- 2.0
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd a Supplier of ItemStack to the conglomerate.Add a List of ItemStacks to the conglomerate.Add a RegistryDependentEntry to the conglomerate.add(net.minecraft.world.item.Item item) Add an Item to the conglomerate.add(net.minecraft.world.item.ItemStack stack) Add an ItemStack to the conglomerate.add(net.minecraft.world.level.ItemLike itemLike) Add aItemLiketo the conglomerate.add(net.neoforged.neoforge.registries.DeferredItem<net.minecraft.world.item.Item> deferredItem) Add aDeferredItemto the conglomerate.add(net.neoforged.neoforge.registries.DeferredRegister.Items deferredRegister) Add aDeferredRegister.Itemsto the conglomerate.static ConglomerateOfItemscreate()List<net.minecraft.world.item.ItemStack> voidresolveStacks(net.minecraft.core.RegistryAccess registryAccess)
-
Field Details
-
conglomerate
-
-
Constructor Details
-
ConglomerateOfItems
public ConglomerateOfItems()
-
-
Method Details
-
create
-
getStacks
- Since:
- 4.0
-
resolveStacks
public void resolveStacks(net.minecraft.core.RegistryAccess registryAccess) - Since:
- 4.0
-
add
Add an Item to the conglomerate. The item is later resolved into an ItemStack usingItem.getDefaultInstance()}- Since:
- 2.0
-
add
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 aDeferredItemto the conglomerate. You may call this even before registration happens. The DeferredItem is later resolved into an ItemStack usingDeferredItem.toStack()- Since:
- 2.0
-
add
Add aItemLiketo the conglomerate. The ItemLike is later resolved into an ItemStack usingItemLike.asItem()andItem.getDefaultInstance()- Since:
- 2.0
-
add
public ConglomerateOfItems add(net.neoforged.neoforge.registries.DeferredRegister.Items deferredRegister) Add aDeferredRegister.Itemsto the conglomerate. The DeferredRegister is later resolved, adding every entry as an Itemstack usingItem.getDefaultInstance()- Since:
- 2.0
-
add
Add a Supplier of ItemStack to the conglomerate. The Supplier is later resolved, adding the ItemStack- Since:
- 2.0
-
add
Add a List of ItemStacks to the conglomerate.- Since:
- 4.0
-
add
Add a RegistryDependentEntry to the conglomerate. This entry hasRegistryAccessThe entry is later resolved, adding all the ItemStacks returned- Since:
- 4.0
-