Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void update() {
- // Generate ions whenever loaded
- if (force_lasers_ions<100)
- {
- if (coal_left==0)
- if (getStackInSlot(0)!=null) {
- decrStackSize(0, 1);
- coal_left=20;
- }
- else
- force_lasers_ions+=1;
- coal_left-=1;
- }
- }
- if (do_detect_tanks== true) {
- if(worldObj.getTileEntity(getPos().down()) != null) {
- if(worldObj.getTileEntity(this.getPos().down()) instanceof ion_Tank_Tile_Entity) {
- tank1=((ion_Tank_Tile_Entity)worldObj.getTileEntity(this.getPos().down()));
- // MainFile.logger.info(worldObj.getTileEntity(this.getPos().down()).getBlockType().getUnlocalizedName());
- }
- else {
- // MainFile.logger.info(worldObj.getTileEntity(this.getPos().down()).getBlockType().getUnlocalizedName());
- }
- }
- do_detect_tanks=false;
- }
- if (tank1 != null) {
- tank1.pushIons(1);
- }
- }
- public int getIons() {
- return force_lasers_ions;
- }
- public void setIons(int ions) {
- force_lasers_ions=ions;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment