Fixed imports

This commit is contained in:
drcrazy 2019-07-15 10:59:08 +03:00
parent 5d93843a1e
commit 4f1593771e
12 changed files with 3 additions and 28 deletions

View file

@ -24,8 +24,6 @@
package techreborn.items.armor;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EquipmentSlot;
import net.minecraft.entity.player.PlayerEntity;
@ -68,7 +66,7 @@ public class ItemLapotronicOrbpack extends ArmorItem implements IEnergyItemInfo,
@Override
public void inventoryTick(ItemStack stack, World worldIn, Entity entityIn, int itemSlot, boolean isSelected) {
if (entityIn instanceof PlayerEntity) {
ItemLithiumIonBatpack.EnvTypeributePowerToInventory(worldIn, (PlayerEntity) entityIn, stack,
ItemLithiumIonBatpack.distributePowerToInventory(worldIn, (PlayerEntity) entityIn, stack,
(int) transferLimit);
}
}

View file

@ -52,7 +52,7 @@ public class ItemLithiumIonBatpack extends ArmorItem implements IEnergyItemInfo,
super(ArmorMaterials.DIAMOND, EquipmentSlot.CHEST, new Item.Settings().group(TechReborn.ITEMGROUP).maxCount(1));
}
public static void EnvTypeributePowerToInventory(World world, PlayerEntity player, ItemStack itemStack, int maxSend) {
public static void distributePowerToInventory(World world, PlayerEntity player, ItemStack itemStack, int maxSend) {
if (world.isClient) {
return;
}
@ -71,7 +71,7 @@ public class ItemLithiumIonBatpack extends ArmorItem implements IEnergyItemInfo,
@Override
public void inventoryTick(ItemStack stack, World worldIn, Entity entityIn, int itemSlot, boolean isSelected) {
if (entityIn instanceof PlayerEntity) {
EnvTypeributePowerToInventory(worldIn, (PlayerEntity) entityIn, stack, (int) transferLimit);
distributePowerToInventory(worldIn, (PlayerEntity) entityIn, stack, (int) transferLimit);
}
}