Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package neg2013.acsension.infrastructure;
- 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 BlockAC extends Block implements IAc{
- protected BlockAC(Material material) {
- super(material);
- this.blockHardness = 2f;
- }
- //done
- @Override
- public int MaxEnergyStored() {
- int maxEnergyStored = MaxEnergyStored();
- return 0;
- }
- //done
- @Override
- public int EnergyStored(IBlockAccess access, int x, int y, int z, World world) {
- int tick = tickRate(Minecraft.getMinecraft().theWorld);
- int energyStored = tick * EnergyGenerating() - EnergyConsuming();
- return energyStored;
- }
- //done
- @Override
- public int EnergyGenerating() {
- int energyGenerating = EnergyGenerating();
- return energyGenerating;
- }
- //done
- @Override
- public boolean CanGenerateEnergy(int x, int y, int z) {
- boolean canGenerateEnergy = CanGenerateEnergy(x, y, z);
- return canGenerateEnergy;
- }
- //done
- @Override
- public boolean CanConsumeEnergy() {
- boolean canConsumeEnergy = CanConsumeEnergy();
- return canConsumeEnergy;
- }
- //done
- @Override
- public boolean canAcceptEnergy() {
- boolean canacceptEnergy = canAcceptEnergy();
- return canacceptEnergy;
- }
- //done
- @Override
- public boolean canConnectToAc() {
- boolean canconnectToAc = canConnectToAc();
- canconnectToAc = true;
- return canconnectToAc;
- }
- //done
- @Override
- public int EnergyIn(IBlockAccess access, int x, int y, int z, World world) {
- int energyIn = EnergyIn(access, x, y, z, world);
- energyIn = EnergyDraw(access, x, y, z, world);
- return energyIn;
- }
- //done
- @Override
- public int EnergyOut(IBlockAccess access, int x, int y, int z, World world) {
- int energyOut = EnergyOut(access, x, y, z, world);
- energyOut = EnergyPush(access, x, energyOut, z, world);
- return energyOut;
- }
- //done
- @Override
- public int EnergyDraw(IBlockAccess access, int x, int y, int z, World world) {
- int energyDraw = EnergyDraw(access, x, y, z, world);
- return energyDraw;
- }
- //done
- @Override
- public int EnergyPush(IBlockAccess access, int x, int y, int z, World world) {
- int energyPush = EnergyPush(access, x, y, z, world);
- return energyPush;
- }
- //done
- @Override
- public int NeighborDraw(IBlockAccess access, int x, int y, int z, World world) {
- int neighborDraw = NeighborDraw(access, x, y, z, world);
- return neighborDraw;
- }
- //done
- @Override
- public int NeighborPush(IBlockAccess access, int x, int y, int z, World world) {
- int neighborPush = NeighborPush(access, x, y, z, world);
- return neighborPush;
- }
- //done
- @Override
- public int EnergyConsuming() {
- int energyConsuming = EnergyConsuming();
- return energyConsuming;
- }
- @Override
- public boolean IsPowered(IBlockAccess access, int x, int y, int z, World world) {
- if(NeighborPush(access, x, y, z, world) >=1 ){
- return true;
- }
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment