Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. class MyTile {
  2.  
  3. Fluid fluid = null;
  4. int famount = 0;
  5. int tick = 0;
  6. @Override
  7. public void update() {
  8. tick++;
  9. if(tick % 40 == 0) tick = 0;
  10. if(tick % 20 == 0) {
  11. if(this.getWorld().getTileEntity(this.pos.add(0, 2, 0) != null && this.getWorld().getTileEntity(this.pos.add(0, 2, 0)) instanceof TileFountain) {
  12. fluid = (TileFountain)this.getWorld.getTileEntity(this.pos.add(0, 2, 0)).tank.getFluid.getFluid;
  13. famount = (TileFountain)this.getWorld.getTileEntity(this.pos.add(0, 2, 0)).tank.getFluidAmount;
  14. }
  15.  
  16. }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement