public abstract class DriverItem extends java.lang.Object implements DriverItem
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.CompoundNBT |
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)
DriverItem
worksWith
in interface DriverItem
stack
- the item to check.public int tier(net.minecraft.item.ItemStack stack)
DriverItem
DriverItem.worksWith(net.minecraft.item.ItemStack)
with the same stack returned true.
tier
in interface DriverItem
stack
- the item stack to get the tier for.public net.minecraft.nbt.CompoundNBT dataTag(net.minecraft.item.ItemStack stack)
DriverItem
dataTag
in interface DriverItem
stack
- the item to get the child tag from.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)