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;
}
Aggregations