public class DemoBlock extends BlockWithEntity { [...] @Override public BlockEntityTicker getTicker(World world, BlockState state, BlockEntityType type) { // Make sure to check world.isClient if you only want to tick only on serverside. return validateTicker(type, ExampleMod.DEMO_BLOCK_ENTITY, DemoBlockEntity::tick); } }