Class McItem
java.lang.Object
com.shanebeestudios.nms.api.world.item.McItem
Wrapper for Minecraft Item
Provides easy-to-use mapped methods for Items
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemgetItem()Get the Minecraft Item of this wrapper@Nullable McTiergetTier()Get theTierfrom a Tiered ItembooleanCheck if Item is complexbooleanCheck if this item is fire-resistantstatic McItemwrap(net.minecraft.world.item.Item item) Wrap an Item for easy to use methods
-
Method Details
-
wrap
Wrap an Item for easy to use methods- Parameters:
item- Item to wrap- Returns:
- Wrapped item
-
getItem
public net.minecraft.world.item.Item getItem()Get the Minecraft Item of this wrapper- Returns:
- Minecraft Item
-
getTier
Get theTierfrom a Tiered Item- Returns:
- Tier of Item
-
isFireResistant
public boolean isFireResistant()Check if this item is fire-resistant- Returns:
- True if fire-resistant else false
-
isComplex
public boolean isComplex()Check if Item is complex- Returns:
- True if complex else false
-