Last active
September 27, 2019 08:41
-
-
Save SoRA-X7/9e96d5a9496243515fd5d042b65411c4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package warpdrive.luminousexpansion.items.prototype; | |
import cofh.redstoneflux.api.IEnergyContainerItem; | |
import net.minecraft.item.Item; | |
import net.minecraft.item.ItemStack; | |
import warpdrive.luminousexpansion.LuminousExpansion; | |
public class TestChargeItem extends Item implements IEnergyContainerItem { | |
public TestChargeItem() { | |
super(); | |
setRegistryName(LuminousExpansion.MODID,"TestChargeItem"); | |
setUnlocalizedName("testchargeitem"); | |
setCreativeTab(LuminousExpansion.luminousTab); | |
} | |
@Override | |
public int receiveEnergy(ItemStack container, int maxReceive, boolean simulate) { | |
return 10; | |
} | |
@Override | |
public int extractEnergy(ItemStack container, int maxExtract, boolean simulate) { | |
return 0; | |
} | |
@Override | |
public int getEnergyStored(ItemStack container) { | |
return 0; | |
} | |
@Override | |
public int getMaxEnergyStored(ItemStack container) { | |
return 100; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment