int x = MathHelper.floor_double(entity.posX);
int z = MathHelper.floor_double(entity.posZ);
boolean periodicUpdate = forcedUpdateCount++ % 32 == 0;
Boolean isForced_ = entity.isForced;
if (isForced_ == null || periodicUpdate) {
entity.isForced = isForced_ = getPersistentChunks().containsKey(new ChunkCoordIntPair(x >> 4, z >> 4));
}
boolean isForced = isForced_;
Boolean canUpdate_ = entity.canUpdate;
if (canUpdate_ == null || periodicUpdate) {
byte range = isForced ? (byte) 0 : 48;