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.
|
protected boolean |
isAdapter(java.lang.Class<? extends EnvironmentHost> host) |
protected boolean |
isComputer(java.lang.Class<? extends EnvironmentHost> host) |
protected boolean |
isRobot(java.lang.Class<? extends EnvironmentHost> host) |
protected boolean |
isRotatable(java.lang.Class<? extends EnvironmentHost> host) |
protected boolean |
isServer(java.lang.Class<? extends EnvironmentHost> host) |
protected boolean |
isTablet(java.lang.Class<? extends EnvironmentHost> host) |
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, wait
createEnvironment, slot
public boolean worksWith(net.minecraft.item.ItemStack stack)
Item
public int tier(net.minecraft.item.ItemStack stack)
Item
Item.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
protected boolean isAdapter(java.lang.Class<? extends EnvironmentHost> host)
protected boolean isComputer(java.lang.Class<? extends EnvironmentHost> host)
protected boolean isRobot(java.lang.Class<? extends EnvironmentHost> host)
protected boolean isRotatable(java.lang.Class<? extends EnvironmentHost> host)
protected boolean isServer(java.lang.Class<? extends EnvironmentHost> host)
protected boolean isTablet(java.lang.Class<? extends EnvironmentHost> host)