Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package neg2013.acsension.infrastructure;
- import neg2013.acsension.Acsension;
- import neg2013.acsension.interfaces.IAc;
- import net.minecraft.block.Block;
- import net.minecraft.block.material.Material;
- import net.minecraft.client.Minecraft;
- import net.minecraft.world.IBlockAccess;
- import net.minecraft.world.World;
- public class BlockRedstoneConverter extends BlockAC{
- public BlockRedstoneConverter(Material material) {
- super(material);
- }
- @Override
- public int MaxEnergyStored() {
- // TODO Auto-generated method stub
- return 2;
- }
- @Override
- public boolean CanGenerateEnergy(int x, int y, int z) {
- // TODO Auto-generated method stub
- return false;
- }
- @Override
- public boolean CanConsumeEnergy() {
- // TODO Auto-generated method stub
- return true;
- }
- @Override
- public boolean canAcceptEnergy() {
- // TODO Auto-generated method stub
- return true;
- }
- //done
- @Override
- public boolean canConnectToAc() {
- return true;
- }
- //done
- @Override
- public int EnergyOut(IBlockAccess access, int x, int y, int z, World world) {
- return 0;
- }
- //done
- @Override
- public int EnergyDraw(IBlockAccess access, int x, int y, int z, World world) {
- return 1;
- }
- //done
- @Override
- public int EnergyPush(IBlockAccess access, int x, int y, int z, World world) {
- return 0;
- }
- /*@Override
- public int EnergyIn (IBlockAccess access, int x, int y, int z, World world) {
- Block block = access.getBlock(x, y, z);
- if(block == Acsension.blockDuct){
- }
- return 0;
- }*/
- @Override
- public int EnergyConsuming() {
- return 1;
- }
- @Override
- public int EnergyStored(IBlockAccess access, int x, int y, int z, World world) {
- int energyStored = EnergyStored( access, x, y, z, world);
- return super.EnergyStored( access, x, y, z, world);
- }
- @Override
- public boolean IsPowered(IBlockAccess access, int x, int y, int z, World world) {
- this.isProvidingStrongPower(access, x, y, z, 6);
- if(IsPowered(access, x, y, z, world)){
- this.setLightLevel(15f);
- this.lightValue = 15;
- }
- return super.IsPowered(access, x, y, z, world);
- }
- @Override
- public boolean canConnectRedstone(IBlockAccess world, int x, int y, int z, int side) {
- return true;
- }
- public boolean canProvidePower()
- {
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment