I am creating an addition to the operating system, namely Tesla update for the robot , but for some - I do not know the reasons why it does not work , when I change the map type , or other things work , but as soon as I put all Slot. Updating nothing works .
Driver
public class DriverTeslaUpgrade implements HostAware {
@Override
public boolean worksWith(ItemStack stack, Class<? extends EnvironmentHost> host) {
return true;
}
@Override
public boolean worksWith(ItemStack stack) {
return stack.getItem() == Items.tesla;
}
@Override
public ManagedEnvironment createEnvironment(ItemStack stack, EnvironmentHost host) {
return null;
}
@Override
public String slot(ItemStack stack) {
return Slot.Upgrade;
}
@Override
public int tier(ItemStack stack) {
return 0;
}
@Override
public NBTTagCompound dataTag(ItemStack stack) {
return null;
}
}
Register Driver
public class Drivers {
public static Item driverTeslaUpgrade;
public static void init(){
driverTeslaUpgrade = new DriverTeslaUpgrade();
Driver.add(driverTeslaUpgrade);
}
}
Item
public class ItemUpgradeTesla extends Item {
public ItemUpgradeTesla() {
setCreativeTab(OpenTechnology.tab);
}
}
I would be grateful if you help
P.S
ManagedEnvironment I came return , the result did not change.
I am creating an addition to the operating system, namely Tesla update for the robot , but for some - I do not know the reasons why it does not work , when I change the map type , or other things work , but as soon as I put all Slot. Updating nothing works .
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
I am creating an addition to the operating system, namely Tesla update for the robot , but for some - I do not know the reasons why it does not work , when I change the map type , or other things work , but as soon as I put all Slot. Updating nothing works .
Driver
public class DriverTeslaUpgrade implements HostAware {
@Override
public boolean worksWith(ItemStack stack, Class<? extends EnvironmentHost> host) {
return true;
}
@Override
public boolean worksWith(ItemStack stack) {
return stack.getItem() == Items.tesla;
}
@Override
public ManagedEnvironment createEnvironment(ItemStack stack, EnvironmentHost host) {
return null;
}
@Override
public String slot(ItemStack stack) {
return Slot.Upgrade;
}
@Override
public int tier(ItemStack stack) {
return 0;
}
@Override
public NBTTagCompound dataTag(ItemStack stack) {
return null;
}
}
Register Driver
public class Drivers {
public static Item driverTeslaUpgrade;
public static void init(){
driverTeslaUpgrade = new DriverTeslaUpgrade();
Driver.add(driverTeslaUpgrade);
}
}
Item
public class ItemUpgradeTesla extends Item {
public ItemUpgradeTesla() {
setCreativeTab(OpenTechnology.tab);
}
}
I am creating an addition to the operating system, namely Tesla update for the robot , but for some - I do not know the reasons why it does not work , when I change the map type , or other things work , but as soon as I put all Slot. Updating nothing works .
Link to post
Share on other sites