li.cil.oc.api.prefab
public abstract class DriverItem extends java.lang.Object implements Item
ManagedEnvironment| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.item.ItemStack[] |
items |
| Modifier | Constructor and Description |
|---|---|
protected |
DriverItem(net.minecraft.item.ItemStack... items) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.nbt.NBTTagCompound |
dataTag(net.minecraft.item.ItemStack stack)
Get the tag compound based on the item stack to use for persisting the
environment associated with the specified item stack.
|
int |
tier(net.minecraft.item.ItemStack stack)
The tier of the specified item this driver supports.
|
boolean |
worksWith(net.minecraft.item.ItemStack stack)
Used to determine the item types this driver handles.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateEnvironment, slotpublic boolean worksWith(net.minecraft.item.ItemStack stack)
Itempublic int tier(net.minecraft.item.ItemStack stack)
ItemItem.worksWith(net.minecraft.item.ItemStack) with the same stack returned true.
Important: tiers are zero-indexed.public net.minecraft.nbt.NBTTagCompound dataTag(net.minecraft.item.ItemStack stack)
Item