Search in sources :

Example 1 with SemiBlockBasic

use of pneumaticCraft.common.semiblock.SemiBlockBasic in project PneumaticCraft by MineMaarten.

the class WailaSemiBlockHandler method getWailaBody.

@Override
public List<String> getWailaBody(ItemStack itemStack, List<String> currenttip, IWailaDataAccessor accessor, IWailaConfigHandler config) {
    int x = accessor.getPosition().blockX;
    int y = accessor.getPosition().blockY;
    int z = accessor.getPosition().blockZ;
    ISemiBlock semiBlock = SemiBlockManager.getInstance(accessor.getWorld()).getSemiBlock(accessor.getWorld(), x, y, z);
    if (semiBlock instanceof SemiBlockBasic) {
        ((SemiBlockBasic) semiBlock).addWailaTooltip(currenttip, accessor.getNBTData());
    }
    return currenttip;
}
Also used : SemiBlockBasic(pneumaticCraft.common.semiblock.SemiBlockBasic) ISemiBlock(pneumaticCraft.common.semiblock.ISemiBlock)

Aggregations

ISemiBlock (pneumaticCraft.common.semiblock.ISemiBlock)1 SemiBlockBasic (pneumaticCraft.common.semiblock.SemiBlockBasic)1