Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyTile {
- Fluid fluid = null;
- int famount = 0;
- int tick = 0;
- @Override
- public void update() {
- tick++;
- if(tick % 40 == 0) tick = 0;
- if(tick % 20 == 0) {
- if(this.getWorld().getTileEntity(this.pos.add(0, 2, 0) != null && this.getWorld().getTileEntity(this.pos.add(0, 2, 0)) instanceof TileFountain) {
- fluid = (TileFountain)this.getWorld.getTileEntity(this.pos.add(0, 2, 0)).tank.getFluid.getFluid;
- famount = (TileFountain)this.getWorld.getTileEntity(this.pos.add(0, 2, 0)).tank.getFluidAmount;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement