public static TBlockEntity GetNearestBlockEntity <TBlockEntity>(this IWorldAccessor world, BlockPos pos, float horRange, float vertRange) where TBlockEntity : BlockEntity { return(world.GetNearestBlockEntity <TBlockEntity>(pos, horRange, vertRange, _ => true)); }