Kazimierz, a pragmatist, did not try to wrest control of Silesia, in the hands of Bohemia, or the territory seized by the independent state of the Teutonic Knights.
Teutonic Knights didn't have any state, and Bohemia didn't have control of Silesia.