Teutonic Knights didn't have any state, and Bohemia didn't have control of Silesia.
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.