Class TItemUtils
java.lang.Object
com.thecsdev.commonmc.api.world.item.TItemUtils
Utility methods related to
Items.-
Method Summary
Modifier and TypeMethodDescriptionstatic final @Nullable net.minecraft.world.item.CreativeModeTabgetCreativeModeTab(@NotNull net.minecraft.world.item.Item item) Returns theCreativeModeTaba givenItemlikely belongs to.static final voidApiStatus.Internalmethod that keeps track ofItems and their correspondingCreativeModeTabs.
-
Method Details
-
rebuildI2TMap
@Internal public static final void rebuildI2TMap()ApiStatus.Internalmethod that keeps track ofItems and their correspondingCreativeModeTabs.Automatically called by
CreativeModeTabEvent.REBUILD_CONTENTS.Do not call this yourself!
-
getCreativeModeTab
@Nullable public static final @Nullable net.minecraft.world.item.CreativeModeTab getCreativeModeTab(@NotNull @NotNull net.minecraft.world.item.Item item) Returns theCreativeModeTaba givenItemlikely belongs to.- Parameters:
item- The targetItem.
-