Registering tileentity of the filter
Adding flag works
Working on flag rendering
Changed code so it does not throw a null poitner