Search in sources :

Example 16 with Block

use of io.anuke.mindustry.world.Block in project Mindustry by Anuken.

the class BlockPart method handleLiquid.

@Override
public void handleLiquid(Tile tile, Tile source, Liquid liquid, float amount) {
    Block block = linked(tile);
    ((LiquidAcceptor) block).handleLiquid(tile.getLinked(), source, liquid, amount);
}
Also used : Block(io.anuke.mindustry.world.Block)

Aggregations

Block (io.anuke.mindustry.world.Block)16 Tile (io.anuke.mindustry.world.Tile)6 Enemy (io.anuke.mindustry.entities.enemies.Enemy)5 Array (com.badlogic.gdx.utils.Array)3 Item (io.anuke.mindustry.resource.Item)3 BlockPair (io.anuke.mindustry.world.ColorMapper.BlockPair)3 IOException (java.io.IOException)3 GridPoint2 (com.badlogic.gdx.math.GridPoint2)2 IntMap (com.badlogic.gdx.utils.IntMap)2 BlockPart (io.anuke.mindustry.world.blocks.types.BlockPart)2 Rock (io.anuke.mindustry.world.blocks.types.Rock)2 StaticBlock (io.anuke.mindustry.world.blocks.types.StaticBlock)2 Pixmap (com.badlogic.gdx.graphics.Pixmap)1 Rectangle (com.badlogic.gdx.math.Rectangle)1 SpawnPoint (io.anuke.mindustry.game.SpawnPoint)1 Layer (io.anuke.mindustry.world.Layer)1 Floor (io.anuke.mindustry.world.blocks.types.Floor)1 SolidEntity (io.anuke.ucore.entities.SolidEntity)1 Table (io.anuke.ucore.scene.ui.layout.Table)1