Record Class CreativeTabCallbackForge
java.lang.Object
java.lang.Record
dev.latvian.mods.kubejs.item.creativetab.CreativeTabCallbackForge
- All Implemented Interfaces:
CreativeTabCallback
public record CreativeTabCallbackForge(net.neoforged.neoforge.event.BuildCreativeModeTabContentsEvent event)
extends Record
implements CreativeTabCallback
-
Constructor Summary
ConstructorsConstructorDescriptionCreativeTabCallbackForge(net.neoforged.neoforge.event.BuildCreativeModeTabContentsEvent event) Creates an instance of aCreativeTabCallbackForgerecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAfter(net.minecraft.world.item.ItemStack order, net.minecraft.world.item.ItemStack[] items, net.minecraft.world.item.CreativeModeTab.TabVisibility visibility) voidaddBefore(net.minecraft.world.item.ItemStack order, net.minecraft.world.item.ItemStack[] items, net.minecraft.world.item.CreativeModeTab.TabVisibility visibility) final booleanIndicates whether some other object is "equal to" this one.net.neoforged.neoforge.event.BuildCreativeModeTabContentsEventevent()Returns the value of theeventrecord component.final inthashCode()Returns a hash code value for this object.voidremove(ItemPredicate filter, boolean removeParent, boolean removeSearch) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CreativeTabCallbackForge
public CreativeTabCallbackForge(net.neoforged.neoforge.event.BuildCreativeModeTabContentsEvent event) Creates an instance of aCreativeTabCallbackForgerecord class.- Parameters:
event- the value for theeventrecord component
-
-
Method Details
-
addAfter
public void addAfter(net.minecraft.world.item.ItemStack order, net.minecraft.world.item.ItemStack[] items, net.minecraft.world.item.CreativeModeTab.TabVisibility visibility) - Specified by:
addAfterin interfaceCreativeTabCallback
-
addBefore
public void addBefore(net.minecraft.world.item.ItemStack order, net.minecraft.world.item.ItemStack[] items, net.minecraft.world.item.CreativeModeTab.TabVisibility visibility) - Specified by:
addBeforein interfaceCreativeTabCallback
-
remove
- Specified by:
removein interfaceCreativeTabCallback
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
event
public net.neoforged.neoforge.event.BuildCreativeModeTabContentsEvent event()Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-